@kl1/contracts 1.0.79 → 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 +21 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +240 -240
- package/dist/src/chat/schema.d.ts +96 -96
- package/dist/src/chat/validation.d.ts +120 -120
- package/dist/src/contract.d.ts +3759 -1797
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +106 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +82 -0
- package/dist/src/cx-log/schema.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/instagram/index.d.ts +120 -120
- package/dist/src/line/index.d.ts +120 -120
- package/dist/src/messenger/index.d.ts +120 -120
- 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/dist/src/telephony-cdr/index.d.ts +246 -0
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +58 -0
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +120 -120
- 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
|
});
|
@@ -998,6 +999,7 @@ var TelephonyCdrSchema = DefaultEntitySchema.extend({
|
|
998
999
|
agentRingTime: import_zod23.default.number().nullable(),
|
999
1000
|
uploadId: import_zod23.default.string().nullable(),
|
1000
1001
|
serialNumber: import_zod23.default.string().nullable(),
|
1002
|
+
upload: UploadSchema.optional().nullable(),
|
1001
1003
|
callParticipants: import_zod23.default.object({
|
1002
1004
|
callTo: CallUserSchema,
|
1003
1005
|
callFrom: CallUserSchema
|
@@ -6492,15 +6494,29 @@ var import_zod95 = __toESM(require("zod"));
|
|
6492
6494
|
|
6493
6495
|
// src/notification/schema.ts
|
6494
6496
|
var import_zod94 = __toESM(require("zod"));
|
6495
|
-
var NotificationObjectSchema = import_zod94.default.object({
|
6496
|
-
data: import_zod94.default.string()
|
6497
|
-
});
|
6498
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(),
|
6499
6502
|
actorId: import_zod94.default.string().uuid(),
|
6503
|
+
actor: UserSchema,
|
6500
6504
|
notificationObjectId: import_zod94.default.string().uuid(),
|
6501
6505
|
readAt: import_zod94.default.date()
|
6502
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
|
+
});
|
6503
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(),
|
6504
6520
|
notificationObjectId: import_zod94.default.string().uuid(),
|
6505
6521
|
notifierId: import_zod94.default.string().uuid(),
|
6506
6522
|
notificationObject: NotificationObjectSchema,
|
@@ -6543,7 +6559,7 @@ var userNotificationContract = (0, import_core37.initContract)().router(
|
|
6543
6559
|
query: GetNotificationsRequestSchema,
|
6544
6560
|
responses: {
|
6545
6561
|
201: DefaultSuccessResponseSchema.extend({
|
6546
|
-
GetNotificationsResponseSchema
|
6562
|
+
data: GetNotificationsResponseSchema
|
6547
6563
|
}),
|
6548
6564
|
400: import_zod96.default.object({
|
6549
6565
|
message: import_zod96.default.string()
|
@@ -6692,6 +6708,7 @@ var notificationContract = (0, import_core38.initContract)().router({
|
|
6692
6708
|
ticketContract,
|
6693
6709
|
uploadContract,
|
6694
6710
|
userContract,
|
6711
|
+
userNotificationContract,
|
6695
6712
|
userPresenceStatusLogContract,
|
6696
6713
|
wrapUpFormContract
|
6697
6714
|
});
|