@kl1/contracts 1.0.21 → 1.0.22

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.mjs CHANGED
@@ -817,23 +817,57 @@ var WrapUpFormSchema = DefaultEntitySchema.extend({
817
817
 
818
818
  // src/cx-log/schema.ts
819
819
  var CxLogSchema = DefaultEntitySchema.extend({
820
- caseId: z24.coerce.number(),
820
+ caseId: z24.number(),
821
821
  entityId: z24.string().uuid(),
822
822
  entityName: z24.string(),
823
- channelType: z24.string().nullable(),
823
+ contactId: z24.string().uuid().nullable(),
824
824
  channel: z24.string().nullable(),
825
+ queueId: z24.string().uuid().nullable(),
826
+ agentId: z24.string().uuid().nullable(),
825
827
  direction: z24.string().nullable(),
826
828
  startedDate: z24.date().nullable(),
827
829
  handledTime: z24.number().nullable(),
828
- firstResponseTime: z24.string().nullable(),
830
+ firstResponseTime: z24.number().nullable(),
829
831
  disposition: z24.string().nullable(),
830
- slaMeet: z24.string().nullable().optional()
832
+ wrapUpForm: WrapUpFormSchema.nullable()
831
833
  });
832
- var CxLogSchemaWithRelations = CxLogSchema.extend({
834
+ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
835
+ caseId: z24.number(),
836
+ entityId: z24.string().uuid(),
837
+ entityName: z24.string(),
838
+ channelType: z24.string().nullable(),
839
+ channel: z24.string().nullable(),
840
+ direction: z24.string().nullable(),
841
+ startedDate: z24.string().nullable(),
842
+ handledTime: z24.string().nullable(),
843
+ firstResponseTime: z24.string().nullable(),
844
+ disposition: z24.string().nullable(),
845
+ slaMeet: z24.string().nullable(),
833
846
  evaluateForm: EvaluateFormSchema.nullable(),
834
847
  wrapUpForm: WrapUpFormSchema.nullable(),
835
- room: RoomSchema,
848
+ room: z24.object({
849
+ id: z24.string().uuid(),
850
+ createdAt: z24.date(),
851
+ updatedAt: z24.date(),
852
+ deletedAt: z24.date().nullable(),
853
+ lastMessage: z24.string(),
854
+ handleTime: z24.number(),
855
+ closeAt: z24.date(),
856
+ unreadCount: z24.number(),
857
+ firstResponseAt: z24.date(),
858
+ firstResponseTime: z24.number(),
859
+ isLatest: z24.boolean(),
860
+ direction: MessageDirectionTypeSchema,
861
+ platformContact: PlatformContactSchema,
862
+ actor: UserSchema,
863
+ assignee: UserSchema,
864
+ channel: ChannelSchema,
865
+ cxlog: CxLogSchema
866
+ }).nullable(),
836
867
  telephonyCdr: TelephonyCdrSchema.nullable(),
868
+ queue: z24.object({
869
+ queueName: z24.string().nullable().optional()
870
+ }).nullable(),
837
871
  contact: ContactSchema.nullable(),
838
872
  agent: UserSchema.nullable()
839
873
  });
@@ -4581,6 +4615,7 @@ export {
4581
4615
  tagContract,
4582
4616
  ticketContract,
4583
4617
  userContract,
4618
+ userPresenceStatusLogContract,
4584
4619
  wrapUpFormContract
4585
4620
  };
4586
4621
  //# sourceMappingURL=index.mjs.map