@framebreak/types 0.1.7 → 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 +112 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,16 +24,23 @@ 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;
|
|
30
35
|
parentId: string | null;
|
|
31
36
|
content: string;
|
|
37
|
+
images: string[];
|
|
32
38
|
createdAt: Date;
|
|
33
39
|
updatedAt: Date;
|
|
34
40
|
author: CommentAuthor;
|
|
35
41
|
likesCount: number;
|
|
36
42
|
isLiked: boolean;
|
|
43
|
+
reactions: Reaction[];
|
|
37
44
|
replies?: CommunityComment[];
|
|
38
45
|
}
|
|
39
46
|
|
|
@@ -1251,6 +1258,11 @@ declare const v1Router: {
|
|
|
1251
1258
|
likesCount: number;
|
|
1252
1259
|
commentsCount: number;
|
|
1253
1260
|
isLiked: boolean;
|
|
1261
|
+
reactions: {
|
|
1262
|
+
type: string;
|
|
1263
|
+
count: number;
|
|
1264
|
+
isReacted: boolean;
|
|
1265
|
+
}[];
|
|
1254
1266
|
};
|
|
1255
1267
|
replyAvatars: string[];
|
|
1256
1268
|
}[];
|
|
@@ -1285,6 +1297,11 @@ declare const v1Router: {
|
|
|
1285
1297
|
likesCount: number;
|
|
1286
1298
|
commentsCount: number;
|
|
1287
1299
|
isLiked: boolean;
|
|
1300
|
+
reactions: {
|
|
1301
|
+
type: string;
|
|
1302
|
+
count: number;
|
|
1303
|
+
isReacted: boolean;
|
|
1304
|
+
}[];
|
|
1288
1305
|
};
|
|
1289
1306
|
replyAvatars: string[];
|
|
1290
1307
|
}[];
|
|
@@ -1349,6 +1366,11 @@ declare const v1Router: {
|
|
|
1349
1366
|
likesCount: number;
|
|
1350
1367
|
commentsCount: number;
|
|
1351
1368
|
isLiked: boolean;
|
|
1369
|
+
reactions: {
|
|
1370
|
+
type: string;
|
|
1371
|
+
count: number;
|
|
1372
|
+
isReacted: boolean;
|
|
1373
|
+
}[];
|
|
1352
1374
|
};
|
|
1353
1375
|
};
|
|
1354
1376
|
}, {
|
|
@@ -1378,6 +1400,11 @@ declare const v1Router: {
|
|
|
1378
1400
|
likesCount: number;
|
|
1379
1401
|
commentsCount: number;
|
|
1380
1402
|
isLiked: boolean;
|
|
1403
|
+
reactions: {
|
|
1404
|
+
type: string;
|
|
1405
|
+
count: number;
|
|
1406
|
+
isReacted: boolean;
|
|
1407
|
+
}[];
|
|
1381
1408
|
};
|
|
1382
1409
|
};
|
|
1383
1410
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -1439,6 +1466,7 @@ declare const v1Router: {
|
|
|
1439
1466
|
likesCount: number;
|
|
1440
1467
|
commentsCount: number;
|
|
1441
1468
|
isLiked: boolean;
|
|
1469
|
+
reactions: never[];
|
|
1442
1470
|
};
|
|
1443
1471
|
replyAvatars: never[];
|
|
1444
1472
|
};
|
|
@@ -1469,6 +1497,7 @@ declare const v1Router: {
|
|
|
1469
1497
|
likesCount: number;
|
|
1470
1498
|
commentsCount: number;
|
|
1471
1499
|
isLiked: boolean;
|
|
1500
|
+
reactions: never[];
|
|
1472
1501
|
};
|
|
1473
1502
|
replyAvatars: never[];
|
|
1474
1503
|
};
|
|
@@ -1748,6 +1777,47 @@ declare const v1Router: {
|
|
|
1748
1777
|
};
|
|
1749
1778
|
}>, Record<never, never>, Record<never, never>>;
|
|
1750
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
|
+
};
|
|
1751
1821
|
comments: {
|
|
1752
1822
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1753
1823
|
session: {
|
|
@@ -1816,6 +1886,7 @@ declare const v1Router: {
|
|
|
1816
1886
|
communityPostId: zod.ZodString;
|
|
1817
1887
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
1818
1888
|
content: zod.ZodString;
|
|
1889
|
+
imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1819
1890
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1820
1891
|
data: CommunityComment;
|
|
1821
1892
|
}, {
|
|
@@ -1972,6 +2043,47 @@ declare const v1Router: {
|
|
|
1972
2043
|
};
|
|
1973
2044
|
}>, Record<never, never>, Record<never, never>>;
|
|
1974
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
|
+
};
|
|
1975
2087
|
};
|
|
1976
2088
|
};
|
|
1977
2089
|
};
|