@framebreak/types 0.1.8 → 0.1.9
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 +110 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ interface Comment {
|
|
|
24
24
|
isLiked: boolean;
|
|
25
25
|
replies?: Comment[];
|
|
26
26
|
}
|
|
27
|
+
interface Reaction {
|
|
28
|
+
type: string;
|
|
29
|
+
count: number;
|
|
30
|
+
isReacted: boolean;
|
|
31
|
+
}
|
|
27
32
|
interface CommunityComment {
|
|
28
33
|
id: string;
|
|
29
34
|
communityPostId: string;
|
|
@@ -35,6 +40,7 @@ interface CommunityComment {
|
|
|
35
40
|
author: CommentAuthor;
|
|
36
41
|
likesCount: number;
|
|
37
42
|
isLiked: boolean;
|
|
43
|
+
reactions: Reaction[];
|
|
38
44
|
replies?: CommunityComment[];
|
|
39
45
|
}
|
|
40
46
|
|
|
@@ -1252,6 +1258,11 @@ declare const v1Router: {
|
|
|
1252
1258
|
likesCount: number;
|
|
1253
1259
|
commentsCount: number;
|
|
1254
1260
|
isLiked: boolean;
|
|
1261
|
+
reactions: {
|
|
1262
|
+
type: string;
|
|
1263
|
+
count: number;
|
|
1264
|
+
isReacted: boolean;
|
|
1265
|
+
}[];
|
|
1255
1266
|
};
|
|
1256
1267
|
replyAvatars: string[];
|
|
1257
1268
|
}[];
|
|
@@ -1286,6 +1297,11 @@ declare const v1Router: {
|
|
|
1286
1297
|
likesCount: number;
|
|
1287
1298
|
commentsCount: number;
|
|
1288
1299
|
isLiked: boolean;
|
|
1300
|
+
reactions: {
|
|
1301
|
+
type: string;
|
|
1302
|
+
count: number;
|
|
1303
|
+
isReacted: boolean;
|
|
1304
|
+
}[];
|
|
1289
1305
|
};
|
|
1290
1306
|
replyAvatars: string[];
|
|
1291
1307
|
}[];
|
|
@@ -1350,6 +1366,11 @@ declare const v1Router: {
|
|
|
1350
1366
|
likesCount: number;
|
|
1351
1367
|
commentsCount: number;
|
|
1352
1368
|
isLiked: boolean;
|
|
1369
|
+
reactions: {
|
|
1370
|
+
type: string;
|
|
1371
|
+
count: number;
|
|
1372
|
+
isReacted: boolean;
|
|
1373
|
+
}[];
|
|
1353
1374
|
};
|
|
1354
1375
|
};
|
|
1355
1376
|
}, {
|
|
@@ -1379,6 +1400,11 @@ declare const v1Router: {
|
|
|
1379
1400
|
likesCount: number;
|
|
1380
1401
|
commentsCount: number;
|
|
1381
1402
|
isLiked: boolean;
|
|
1403
|
+
reactions: {
|
|
1404
|
+
type: string;
|
|
1405
|
+
count: number;
|
|
1406
|
+
isReacted: boolean;
|
|
1407
|
+
}[];
|
|
1382
1408
|
};
|
|
1383
1409
|
};
|
|
1384
1410
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -1440,6 +1466,7 @@ declare const v1Router: {
|
|
|
1440
1466
|
likesCount: number;
|
|
1441
1467
|
commentsCount: number;
|
|
1442
1468
|
isLiked: boolean;
|
|
1469
|
+
reactions: never[];
|
|
1443
1470
|
};
|
|
1444
1471
|
replyAvatars: never[];
|
|
1445
1472
|
};
|
|
@@ -1470,6 +1497,7 @@ declare const v1Router: {
|
|
|
1470
1497
|
likesCount: number;
|
|
1471
1498
|
commentsCount: number;
|
|
1472
1499
|
isLiked: boolean;
|
|
1500
|
+
reactions: never[];
|
|
1473
1501
|
};
|
|
1474
1502
|
replyAvatars: never[];
|
|
1475
1503
|
};
|
|
@@ -1749,6 +1777,47 @@ declare const v1Router: {
|
|
|
1749
1777
|
};
|
|
1750
1778
|
}>, Record<never, never>, Record<never, never>>;
|
|
1751
1779
|
};
|
|
1780
|
+
reactions: {
|
|
1781
|
+
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1782
|
+
session: {
|
|
1783
|
+
id: string;
|
|
1784
|
+
createdAt: Date;
|
|
1785
|
+
updatedAt: Date;
|
|
1786
|
+
userId: string;
|
|
1787
|
+
expiresAt: Date;
|
|
1788
|
+
token: string;
|
|
1789
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1790
|
+
userAgent?: string | null | undefined | undefined;
|
|
1791
|
+
};
|
|
1792
|
+
user: {
|
|
1793
|
+
id: string;
|
|
1794
|
+
createdAt: Date;
|
|
1795
|
+
updatedAt: Date;
|
|
1796
|
+
email: string;
|
|
1797
|
+
emailVerified: boolean;
|
|
1798
|
+
name: string;
|
|
1799
|
+
image?: string | null | undefined | undefined;
|
|
1800
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1801
|
+
linkedinVerified: boolean | null | undefined;
|
|
1802
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1803
|
+
linkedinId?: string | null | undefined;
|
|
1804
|
+
linkedinName?: string | null | undefined;
|
|
1805
|
+
username?: string | null | undefined;
|
|
1806
|
+
displayUsername?: string | null | undefined;
|
|
1807
|
+
};
|
|
1808
|
+
}>, zod.ZodObject<{
|
|
1809
|
+
communityPostId: zod.ZodString;
|
|
1810
|
+
type: zod.ZodString;
|
|
1811
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1812
|
+
data: {
|
|
1813
|
+
reactions: Reaction[];
|
|
1814
|
+
};
|
|
1815
|
+
}, {
|
|
1816
|
+
data: {
|
|
1817
|
+
reactions: Reaction[];
|
|
1818
|
+
};
|
|
1819
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1820
|
+
};
|
|
1752
1821
|
comments: {
|
|
1753
1822
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1754
1823
|
session: {
|
|
@@ -1974,6 +2043,47 @@ declare const v1Router: {
|
|
|
1974
2043
|
};
|
|
1975
2044
|
}>, Record<never, never>, Record<never, never>>;
|
|
1976
2045
|
};
|
|
2046
|
+
reactions: {
|
|
2047
|
+
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2048
|
+
session: {
|
|
2049
|
+
id: string;
|
|
2050
|
+
createdAt: Date;
|
|
2051
|
+
updatedAt: Date;
|
|
2052
|
+
userId: string;
|
|
2053
|
+
expiresAt: Date;
|
|
2054
|
+
token: string;
|
|
2055
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2056
|
+
userAgent?: string | null | undefined | undefined;
|
|
2057
|
+
};
|
|
2058
|
+
user: {
|
|
2059
|
+
id: string;
|
|
2060
|
+
createdAt: Date;
|
|
2061
|
+
updatedAt: Date;
|
|
2062
|
+
email: string;
|
|
2063
|
+
emailVerified: boolean;
|
|
2064
|
+
name: string;
|
|
2065
|
+
image?: string | null | undefined | undefined;
|
|
2066
|
+
onboardingCompleted: boolean | null | undefined;
|
|
2067
|
+
linkedinVerified: boolean | null | undefined;
|
|
2068
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
2069
|
+
linkedinId?: string | null | undefined;
|
|
2070
|
+
linkedinName?: string | null | undefined;
|
|
2071
|
+
username?: string | null | undefined;
|
|
2072
|
+
displayUsername?: string | null | undefined;
|
|
2073
|
+
};
|
|
2074
|
+
}>, zod.ZodObject<{
|
|
2075
|
+
commentId: zod.ZodString;
|
|
2076
|
+
type: zod.ZodString;
|
|
2077
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2078
|
+
data: {
|
|
2079
|
+
reactions: Reaction[];
|
|
2080
|
+
};
|
|
2081
|
+
}, {
|
|
2082
|
+
data: {
|
|
2083
|
+
reactions: Reaction[];
|
|
2084
|
+
};
|
|
2085
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2086
|
+
};
|
|
1977
2087
|
};
|
|
1978
2088
|
};
|
|
1979
2089
|
};
|