@kl1/contracts 1.0.80 → 1.0.81
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.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +1795 -185
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/notification/index.d.ts +1619 -5
- package/dist/src/notification/index.d.ts.map +1 -1
- package/dist/src/notification/schema.d.ts +1307 -7
- package/dist/src/notification/schema.d.ts.map +1 -1
- package/dist/src/notification/validation.d.ts +805 -0
- package/dist/src/notification/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -6431,15 +6431,29 @@ import z95 from "zod";
|
|
6431
6431
|
|
6432
6432
|
// src/notification/schema.ts
|
6433
6433
|
import z94 from "zod";
|
6434
|
-
var NotificationObjectSchema = z94.object({
|
6435
|
-
data: z94.string()
|
6436
|
-
});
|
6437
6434
|
var NotificationChangeSchema = z94.object({
|
6435
|
+
id: z94.string().uuid(),
|
6436
|
+
createdAt: z94.date(),
|
6437
|
+
updatedAt: z94.date(),
|
6438
|
+
deletedAt: z94.date().nullable(),
|
6438
6439
|
actorId: z94.string().uuid(),
|
6440
|
+
actor: UserSchema,
|
6439
6441
|
notificationObjectId: z94.string().uuid(),
|
6440
6442
|
readAt: z94.date()
|
6441
6443
|
});
|
6444
|
+
var NotificationObjectSchema = z94.object({
|
6445
|
+
id: z94.string().uuid(),
|
6446
|
+
createdAt: z94.date(),
|
6447
|
+
updatedAt: z94.date(),
|
6448
|
+
deletedAt: z94.date().nullable(),
|
6449
|
+
data: z94.string(),
|
6450
|
+
notificationChange: NotificationChangeSchema
|
6451
|
+
});
|
6442
6452
|
var NotificationSchema = z94.object({
|
6453
|
+
id: z94.string().uuid(),
|
6454
|
+
createdAt: z94.date(),
|
6455
|
+
updatedAt: z94.date(),
|
6456
|
+
deletedAt: z94.date().nullable(),
|
6443
6457
|
notificationObjectId: z94.string().uuid(),
|
6444
6458
|
notifierId: z94.string().uuid(),
|
6445
6459
|
notificationObject: NotificationObjectSchema,
|
@@ -6482,7 +6496,7 @@ var userNotificationContract = initContract37().router(
|
|
6482
6496
|
query: GetNotificationsRequestSchema,
|
6483
6497
|
responses: {
|
6484
6498
|
201: DefaultSuccessResponseSchema.extend({
|
6485
|
-
GetNotificationsResponseSchema
|
6499
|
+
data: GetNotificationsResponseSchema
|
6486
6500
|
}),
|
6487
6501
|
400: z96.object({
|
6488
6502
|
message: z96.string()
|
@@ -6630,6 +6644,7 @@ export {
|
|
6630
6644
|
ticketContract2 as ticketContract,
|
6631
6645
|
uploadContract,
|
6632
6646
|
userContract,
|
6647
|
+
userNotificationContract,
|
6633
6648
|
userPresenceStatusLogContract,
|
6634
6649
|
wrapUpFormContract
|
6635
6650
|
};
|