@framebreak/types 0.1.34 → 0.1.36
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 +91 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,14 +51,14 @@ declare const notification: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
51
51
|
tableName: "notification";
|
|
52
52
|
dataType: "string";
|
|
53
53
|
columnType: "PgEnumColumn";
|
|
54
|
-
data: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
54
|
+
data: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
|
|
55
55
|
driverParam: string;
|
|
56
56
|
notNull: true;
|
|
57
57
|
hasDefault: false;
|
|
58
58
|
isPrimaryKey: false;
|
|
59
59
|
isAutoincrement: false;
|
|
60
60
|
hasRuntimeDefault: false;
|
|
61
|
-
enumValues: ["mention", "reply", "new_article", "article_comment", "announcement", "new_thread"];
|
|
61
|
+
enumValues: ["mention", "reply", "new_article", "article_comment", "announcement", "new_thread", "post_like", "community_post_comment", "reaction"];
|
|
62
62
|
baseColumn: never;
|
|
63
63
|
identity: undefined;
|
|
64
64
|
generated: undefined;
|
|
@@ -248,6 +248,8 @@ interface NotificationWithActor extends Notification {
|
|
|
248
248
|
actor: NotificationActor | null;
|
|
249
249
|
post: NotificationPost | null;
|
|
250
250
|
thread: NotificationThread | null;
|
|
251
|
+
groupKey?: string | null;
|
|
252
|
+
groupCount?: number | null;
|
|
251
253
|
}
|
|
252
254
|
|
|
253
255
|
/**
|
|
@@ -7874,6 +7876,87 @@ declare const v1Router: {
|
|
|
7874
7876
|
readonly message: "An internal server error occurred";
|
|
7875
7877
|
};
|
|
7876
7878
|
}>, Record<never, never>>;
|
|
7879
|
+
markGroupRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7880
|
+
session: {
|
|
7881
|
+
id: string;
|
|
7882
|
+
createdAt: Date;
|
|
7883
|
+
updatedAt: Date;
|
|
7884
|
+
userId: string;
|
|
7885
|
+
expiresAt: Date;
|
|
7886
|
+
token: string;
|
|
7887
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7888
|
+
userAgent?: string | null | undefined | undefined;
|
|
7889
|
+
impersonatedBy?: string | null | undefined;
|
|
7890
|
+
};
|
|
7891
|
+
user: {
|
|
7892
|
+
id: string;
|
|
7893
|
+
createdAt: Date;
|
|
7894
|
+
updatedAt: Date;
|
|
7895
|
+
email: string;
|
|
7896
|
+
emailVerified: boolean;
|
|
7897
|
+
name: string;
|
|
7898
|
+
image?: string | null | undefined | undefined;
|
|
7899
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7900
|
+
linkedinVerified: boolean | null | undefined;
|
|
7901
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7902
|
+
linkedinId?: string | null | undefined;
|
|
7903
|
+
linkedinName?: string | null | undefined;
|
|
7904
|
+
banned: boolean | null | undefined;
|
|
7905
|
+
role?: string | null | undefined;
|
|
7906
|
+
banReason?: string | null | undefined;
|
|
7907
|
+
banExpires?: Date | null | undefined;
|
|
7908
|
+
username?: string | null | undefined;
|
|
7909
|
+
displayUsername?: string | null | undefined;
|
|
7910
|
+
};
|
|
7911
|
+
}>, zod.ZodObject<{
|
|
7912
|
+
type: zod.ZodEnum<{
|
|
7913
|
+
post_like: "post_like";
|
|
7914
|
+
reaction: "reaction";
|
|
7915
|
+
}>;
|
|
7916
|
+
sourceType: zod.ZodEnum<{
|
|
7917
|
+
post: "post";
|
|
7918
|
+
comment: "comment";
|
|
7919
|
+
community_post: "community_post";
|
|
7920
|
+
note: "note";
|
|
7921
|
+
note_comment: "note_comment";
|
|
7922
|
+
community_comment: "community_comment";
|
|
7923
|
+
}>;
|
|
7924
|
+
sourceId: zod.ZodString;
|
|
7925
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
7926
|
+
data: {
|
|
7927
|
+
markedCount: number;
|
|
7928
|
+
};
|
|
7929
|
+
}, {
|
|
7930
|
+
data: {
|
|
7931
|
+
markedCount: number;
|
|
7932
|
+
};
|
|
7933
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7934
|
+
readonly UNAUTHORIZED: {
|
|
7935
|
+
readonly message: "You must be logged in to access this resource";
|
|
7936
|
+
};
|
|
7937
|
+
readonly FORBIDDEN: {
|
|
7938
|
+
readonly message: "You do not have permission to access this resource";
|
|
7939
|
+
};
|
|
7940
|
+
readonly NOT_FOUND: {
|
|
7941
|
+
readonly message: "The requested resource was not found";
|
|
7942
|
+
};
|
|
7943
|
+
readonly BAD_REQUEST: {
|
|
7944
|
+
readonly message: "Invalid request";
|
|
7945
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7946
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7947
|
+
code: zod.ZodString;
|
|
7948
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7949
|
+
message: zod.ZodString;
|
|
7950
|
+
}, better_auth.$loose>>;
|
|
7951
|
+
}, better_auth.$strip>>;
|
|
7952
|
+
};
|
|
7953
|
+
readonly CONFLICT: {
|
|
7954
|
+
readonly message: "The request conflicts with existing data";
|
|
7955
|
+
};
|
|
7956
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7957
|
+
readonly message: "An internal server error occurred";
|
|
7958
|
+
};
|
|
7959
|
+
}>, Record<never, never>>;
|
|
7877
7960
|
markAllRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7878
7961
|
session: {
|
|
7879
7962
|
id: string;
|
|
@@ -7977,7 +8060,7 @@ declare const v1Router: {
|
|
|
7977
8060
|
id: string;
|
|
7978
8061
|
createdAt: Date;
|
|
7979
8062
|
title: string | null;
|
|
7980
|
-
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
8063
|
+
type: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
|
|
7981
8064
|
recipientId: string;
|
|
7982
8065
|
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
7983
8066
|
sourceId: string;
|
|
@@ -8007,11 +8090,13 @@ declare const v1Router: {
|
|
|
8007
8090
|
id: string;
|
|
8008
8091
|
contentPreview: string;
|
|
8009
8092
|
} | null;
|
|
8093
|
+
groupKey?: string | null;
|
|
8094
|
+
groupCount?: number | null;
|
|
8010
8095
|
}, void, unknown>, AsyncGenerator<{
|
|
8011
8096
|
id: string;
|
|
8012
8097
|
createdAt: Date;
|
|
8013
8098
|
title: string | null;
|
|
8014
|
-
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
8099
|
+
type: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
|
|
8015
8100
|
recipientId: string;
|
|
8016
8101
|
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
8017
8102
|
sourceId: string;
|
|
@@ -8041,6 +8126,8 @@ declare const v1Router: {
|
|
|
8041
8126
|
id: string;
|
|
8042
8127
|
contentPreview: string;
|
|
8043
8128
|
} | null;
|
|
8129
|
+
groupKey?: string | null;
|
|
8130
|
+
groupCount?: number | null;
|
|
8044
8131
|
}, void, unknown>>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
8045
8132
|
readonly UNAUTHORIZED: {
|
|
8046
8133
|
readonly message: "You must be logged in to access this resource";
|