@framebreak/types 0.1.23 → 0.1.25
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 +213 -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";
|
|
54
|
+
data: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
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"];
|
|
61
|
+
enumValues: ["mention", "reply", "new_article", "article_comment", "announcement", "new_thread"];
|
|
62
62
|
baseColumn: never;
|
|
63
63
|
identity: undefined;
|
|
64
64
|
generated: undefined;
|
|
@@ -139,6 +139,7 @@ declare const notification: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
139
139
|
data: {
|
|
140
140
|
postSlug?: string;
|
|
141
141
|
commentId?: string;
|
|
142
|
+
communityPostId?: string;
|
|
142
143
|
};
|
|
143
144
|
driverParam: unknown;
|
|
144
145
|
notNull: false;
|
|
@@ -154,6 +155,7 @@ declare const notification: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
154
155
|
$type: {
|
|
155
156
|
postSlug?: string;
|
|
156
157
|
commentId?: string;
|
|
158
|
+
communityPostId?: string;
|
|
157
159
|
};
|
|
158
160
|
}>;
|
|
159
161
|
read: drizzle_orm_pg_core.PgColumn<{
|
|
@@ -608,6 +610,131 @@ declare const v1Router: {
|
|
|
608
610
|
readonly message: "An internal server error occurred";
|
|
609
611
|
};
|
|
610
612
|
}>, Record<never, never>>;
|
|
613
|
+
search: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
614
|
+
session: {
|
|
615
|
+
id: string;
|
|
616
|
+
createdAt: Date;
|
|
617
|
+
updatedAt: Date;
|
|
618
|
+
userId: string;
|
|
619
|
+
expiresAt: Date;
|
|
620
|
+
token: string;
|
|
621
|
+
ipAddress?: string | null | undefined | undefined;
|
|
622
|
+
userAgent?: string | null | undefined | undefined;
|
|
623
|
+
impersonatedBy?: string | null | undefined;
|
|
624
|
+
};
|
|
625
|
+
user: {
|
|
626
|
+
id: string;
|
|
627
|
+
createdAt: Date;
|
|
628
|
+
updatedAt: Date;
|
|
629
|
+
email: string;
|
|
630
|
+
emailVerified: boolean;
|
|
631
|
+
name: string;
|
|
632
|
+
image?: string | null | undefined | undefined;
|
|
633
|
+
onboardingCompleted: boolean | null | undefined;
|
|
634
|
+
linkedinVerified: boolean | null | undefined;
|
|
635
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
636
|
+
linkedinId?: string | null | undefined;
|
|
637
|
+
linkedinName?: string | null | undefined;
|
|
638
|
+
banned: boolean | null | undefined;
|
|
639
|
+
role?: string | null | undefined;
|
|
640
|
+
banReason?: string | null | undefined;
|
|
641
|
+
banExpires?: Date | null | undefined;
|
|
642
|
+
username?: string | null | undefined;
|
|
643
|
+
displayUsername?: string | null | undefined;
|
|
644
|
+
};
|
|
645
|
+
}>, zod.ZodObject<{
|
|
646
|
+
query: zod.ZodString;
|
|
647
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
648
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
649
|
+
data: {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
username: string | null;
|
|
653
|
+
displayUsername: string | null;
|
|
654
|
+
image: string | null;
|
|
655
|
+
}[];
|
|
656
|
+
}, {
|
|
657
|
+
data: {
|
|
658
|
+
id: string;
|
|
659
|
+
name: string;
|
|
660
|
+
username: string | null;
|
|
661
|
+
displayUsername: string | null;
|
|
662
|
+
image: string | null;
|
|
663
|
+
}[];
|
|
664
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
665
|
+
readonly UNAUTHORIZED: {
|
|
666
|
+
readonly message: "You must be logged in to access this resource";
|
|
667
|
+
};
|
|
668
|
+
readonly FORBIDDEN: {
|
|
669
|
+
readonly message: "You do not have permission to access this resource";
|
|
670
|
+
};
|
|
671
|
+
readonly NOT_FOUND: {
|
|
672
|
+
readonly message: "The requested resource was not found";
|
|
673
|
+
};
|
|
674
|
+
readonly BAD_REQUEST: {
|
|
675
|
+
readonly message: "Invalid request";
|
|
676
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
677
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
678
|
+
code: zod.ZodString;
|
|
679
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
680
|
+
message: zod.ZodString;
|
|
681
|
+
}, better_auth.$loose>>;
|
|
682
|
+
}, better_auth.$strip>>;
|
|
683
|
+
};
|
|
684
|
+
readonly CONFLICT: {
|
|
685
|
+
readonly message: "The request conflicts with existing data";
|
|
686
|
+
};
|
|
687
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
688
|
+
readonly message: "An internal server error occurred";
|
|
689
|
+
};
|
|
690
|
+
}>, Record<never, never>>;
|
|
691
|
+
batchGet: _orpc_server.DecoratedProcedure<BaseContext & Record<never, never>, BaseContext, zod.ZodObject<{
|
|
692
|
+
ids: zod.ZodArray<zod.ZodString>;
|
|
693
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
694
|
+
data: {
|
|
695
|
+
id: string;
|
|
696
|
+
name: string;
|
|
697
|
+
username: string | null;
|
|
698
|
+
displayUsername: string | null;
|
|
699
|
+
image: string | null;
|
|
700
|
+
linkedinVerified: boolean | null;
|
|
701
|
+
}[];
|
|
702
|
+
}, {
|
|
703
|
+
data: {
|
|
704
|
+
id: string;
|
|
705
|
+
name: string;
|
|
706
|
+
username: string | null;
|
|
707
|
+
displayUsername: string | null;
|
|
708
|
+
image: string | null;
|
|
709
|
+
linkedinVerified: boolean | null;
|
|
710
|
+
}[];
|
|
711
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
712
|
+
readonly UNAUTHORIZED: {
|
|
713
|
+
readonly message: "You must be logged in to access this resource";
|
|
714
|
+
};
|
|
715
|
+
readonly FORBIDDEN: {
|
|
716
|
+
readonly message: "You do not have permission to access this resource";
|
|
717
|
+
};
|
|
718
|
+
readonly NOT_FOUND: {
|
|
719
|
+
readonly message: "The requested resource was not found";
|
|
720
|
+
};
|
|
721
|
+
readonly BAD_REQUEST: {
|
|
722
|
+
readonly message: "Invalid request";
|
|
723
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
724
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
725
|
+
code: zod.ZodString;
|
|
726
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
727
|
+
message: zod.ZodString;
|
|
728
|
+
}, better_auth.$loose>>;
|
|
729
|
+
}, better_auth.$strip>>;
|
|
730
|
+
};
|
|
731
|
+
readonly CONFLICT: {
|
|
732
|
+
readonly message: "The request conflicts with existing data";
|
|
733
|
+
};
|
|
734
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
735
|
+
readonly message: "An internal server error occurred";
|
|
736
|
+
};
|
|
737
|
+
}>, Record<never, never>>;
|
|
611
738
|
completeOnboarding: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
612
739
|
session: {
|
|
613
740
|
id: string;
|
|
@@ -3073,6 +3200,86 @@ declare const v1Router: {
|
|
|
3073
3200
|
};
|
|
3074
3201
|
}>, Record<never, never>>;
|
|
3075
3202
|
};
|
|
3203
|
+
members: {
|
|
3204
|
+
search: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3205
|
+
session: {
|
|
3206
|
+
id: string;
|
|
3207
|
+
createdAt: Date;
|
|
3208
|
+
updatedAt: Date;
|
|
3209
|
+
userId: string;
|
|
3210
|
+
expiresAt: Date;
|
|
3211
|
+
token: string;
|
|
3212
|
+
ipAddress?: string | null | undefined | undefined;
|
|
3213
|
+
userAgent?: string | null | undefined | undefined;
|
|
3214
|
+
impersonatedBy?: string | null | undefined;
|
|
3215
|
+
};
|
|
3216
|
+
user: {
|
|
3217
|
+
id: string;
|
|
3218
|
+
createdAt: Date;
|
|
3219
|
+
updatedAt: Date;
|
|
3220
|
+
email: string;
|
|
3221
|
+
emailVerified: boolean;
|
|
3222
|
+
name: string;
|
|
3223
|
+
image?: string | null | undefined | undefined;
|
|
3224
|
+
onboardingCompleted: boolean | null | undefined;
|
|
3225
|
+
linkedinVerified: boolean | null | undefined;
|
|
3226
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
3227
|
+
linkedinId?: string | null | undefined;
|
|
3228
|
+
linkedinName?: string | null | undefined;
|
|
3229
|
+
banned: boolean | null | undefined;
|
|
3230
|
+
role?: string | null | undefined;
|
|
3231
|
+
banReason?: string | null | undefined;
|
|
3232
|
+
banExpires?: Date | null | undefined;
|
|
3233
|
+
username?: string | null | undefined;
|
|
3234
|
+
displayUsername?: string | null | undefined;
|
|
3235
|
+
};
|
|
3236
|
+
}>, zod.ZodObject<{
|
|
3237
|
+
query: zod.ZodString;
|
|
3238
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
3239
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
3240
|
+
data: {
|
|
3241
|
+
id: string;
|
|
3242
|
+
name: string;
|
|
3243
|
+
username: string | null;
|
|
3244
|
+
displayUsername: string | null;
|
|
3245
|
+
image: string | null;
|
|
3246
|
+
}[];
|
|
3247
|
+
}, {
|
|
3248
|
+
data: {
|
|
3249
|
+
id: string;
|
|
3250
|
+
name: string;
|
|
3251
|
+
username: string | null;
|
|
3252
|
+
displayUsername: string | null;
|
|
3253
|
+
image: string | null;
|
|
3254
|
+
}[];
|
|
3255
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3256
|
+
readonly UNAUTHORIZED: {
|
|
3257
|
+
readonly message: "You must be logged in to access this resource";
|
|
3258
|
+
};
|
|
3259
|
+
readonly FORBIDDEN: {
|
|
3260
|
+
readonly message: "You do not have permission to access this resource";
|
|
3261
|
+
};
|
|
3262
|
+
readonly NOT_FOUND: {
|
|
3263
|
+
readonly message: "The requested resource was not found";
|
|
3264
|
+
};
|
|
3265
|
+
readonly BAD_REQUEST: {
|
|
3266
|
+
readonly message: "Invalid request";
|
|
3267
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3268
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3269
|
+
code: zod.ZodString;
|
|
3270
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3271
|
+
message: zod.ZodString;
|
|
3272
|
+
}, better_auth.$loose>>;
|
|
3273
|
+
}, better_auth.$strip>>;
|
|
3274
|
+
};
|
|
3275
|
+
readonly CONFLICT: {
|
|
3276
|
+
readonly message: "The request conflicts with existing data";
|
|
3277
|
+
};
|
|
3278
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3279
|
+
readonly message: "An internal server error occurred";
|
|
3280
|
+
};
|
|
3281
|
+
}>, Record<never, never>>;
|
|
3282
|
+
};
|
|
3076
3283
|
posts: {
|
|
3077
3284
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3078
3285
|
session: {
|
|
@@ -7252,7 +7459,7 @@ declare const v1Router: {
|
|
|
7252
7459
|
id: string;
|
|
7253
7460
|
createdAt: Date;
|
|
7254
7461
|
title: string | null;
|
|
7255
|
-
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement";
|
|
7462
|
+
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
7256
7463
|
recipientId: string;
|
|
7257
7464
|
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
7258
7465
|
sourceId: string;
|
|
@@ -7260,6 +7467,7 @@ declare const v1Router: {
|
|
|
7260
7467
|
metadata: {
|
|
7261
7468
|
postSlug?: string;
|
|
7262
7469
|
commentId?: string;
|
|
7470
|
+
communityPostId?: string;
|
|
7263
7471
|
} | null;
|
|
7264
7472
|
read: boolean;
|
|
7265
7473
|
readAt: Date | null;
|
|
@@ -7275,7 +7483,7 @@ declare const v1Router: {
|
|
|
7275
7483
|
id: string;
|
|
7276
7484
|
createdAt: Date;
|
|
7277
7485
|
title: string | null;
|
|
7278
|
-
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement";
|
|
7486
|
+
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
|
|
7279
7487
|
recipientId: string;
|
|
7280
7488
|
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
7281
7489
|
sourceId: string;
|
|
@@ -7283,6 +7491,7 @@ declare const v1Router: {
|
|
|
7283
7491
|
metadata: {
|
|
7284
7492
|
postSlug?: string;
|
|
7285
7493
|
commentId?: string;
|
|
7494
|
+
communityPostId?: string;
|
|
7286
7495
|
} | null;
|
|
7287
7496
|
read: boolean;
|
|
7288
7497
|
readAt: Date | null;
|