@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.js
CHANGED
@@ -55,6 +55,7 @@ __export(src_exports, {
|
|
55
55
|
ticketContract: () => ticketContract2,
|
56
56
|
uploadContract: () => uploadContract,
|
57
57
|
userContract: () => userContract,
|
58
|
+
userNotificationContract: () => userNotificationContract,
|
58
59
|
userPresenceStatusLogContract: () => userPresenceStatusLogContract,
|
59
60
|
wrapUpFormContract: () => wrapUpFormContract
|
60
61
|
});
|
@@ -6493,15 +6494,29 @@ var import_zod95 = __toESM(require("zod"));
|
|
6493
6494
|
|
6494
6495
|
// src/notification/schema.ts
|
6495
6496
|
var import_zod94 = __toESM(require("zod"));
|
6496
|
-
var NotificationObjectSchema = import_zod94.default.object({
|
6497
|
-
data: import_zod94.default.string()
|
6498
|
-
});
|
6499
6497
|
var NotificationChangeSchema = import_zod94.default.object({
|
6498
|
+
id: import_zod94.default.string().uuid(),
|
6499
|
+
createdAt: import_zod94.default.date(),
|
6500
|
+
updatedAt: import_zod94.default.date(),
|
6501
|
+
deletedAt: import_zod94.default.date().nullable(),
|
6500
6502
|
actorId: import_zod94.default.string().uuid(),
|
6503
|
+
actor: UserSchema,
|
6501
6504
|
notificationObjectId: import_zod94.default.string().uuid(),
|
6502
6505
|
readAt: import_zod94.default.date()
|
6503
6506
|
});
|
6507
|
+
var NotificationObjectSchema = import_zod94.default.object({
|
6508
|
+
id: import_zod94.default.string().uuid(),
|
6509
|
+
createdAt: import_zod94.default.date(),
|
6510
|
+
updatedAt: import_zod94.default.date(),
|
6511
|
+
deletedAt: import_zod94.default.date().nullable(),
|
6512
|
+
data: import_zod94.default.string(),
|
6513
|
+
notificationChange: NotificationChangeSchema
|
6514
|
+
});
|
6504
6515
|
var NotificationSchema = import_zod94.default.object({
|
6516
|
+
id: import_zod94.default.string().uuid(),
|
6517
|
+
createdAt: import_zod94.default.date(),
|
6518
|
+
updatedAt: import_zod94.default.date(),
|
6519
|
+
deletedAt: import_zod94.default.date().nullable(),
|
6505
6520
|
notificationObjectId: import_zod94.default.string().uuid(),
|
6506
6521
|
notifierId: import_zod94.default.string().uuid(),
|
6507
6522
|
notificationObject: NotificationObjectSchema,
|
@@ -6544,7 +6559,7 @@ var userNotificationContract = (0, import_core37.initContract)().router(
|
|
6544
6559
|
query: GetNotificationsRequestSchema,
|
6545
6560
|
responses: {
|
6546
6561
|
201: DefaultSuccessResponseSchema.extend({
|
6547
|
-
GetNotificationsResponseSchema
|
6562
|
+
data: GetNotificationsResponseSchema
|
6548
6563
|
}),
|
6549
6564
|
400: import_zod96.default.object({
|
6550
6565
|
message: import_zod96.default.string()
|
@@ -6693,6 +6708,7 @@ var notificationContract = (0, import_core38.initContract)().router({
|
|
6693
6708
|
ticketContract,
|
6694
6709
|
uploadContract,
|
6695
6710
|
userContract,
|
6711
|
+
userNotificationContract,
|
6696
6712
|
userPresenceStatusLogContract,
|
6697
6713
|
wrapUpFormContract
|
6698
6714
|
});
|