@kl1/contracts 1.1.38-uat → 1.1.40-uat

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
@@ -1040,6 +1040,7 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
1040
1040
  firstResponseDate: z25.string(),
1041
1041
  resolutionTime: z25.string().nullable(),
1042
1042
  resolutionDate: z25.string(),
1043
+ wrapUpDuration: z25.string(),
1043
1044
  slaMeet: z25.string().nullable(),
1044
1045
  evaluateForm: EvaluateFormSchema.nullable(),
1045
1046
  wrapUpForm: WrapUpFormSchema.nullable(),
@@ -3156,6 +3157,26 @@ var cxLogContract = initContract11().router({
3156
3157
  },
3157
3158
  query: GetAllCxLogQueryParamsSchema,
3158
3159
  summary: "Export cx-logs"
3160
+ },
3161
+ updateSla: {
3162
+ method: "POST",
3163
+ path: "/cx-logs",
3164
+ headers: z44.object({
3165
+ "x-tenant": z44.string({ required_error: "Tenant id is required" }),
3166
+ "x-code": z44.string().uuid().optional()
3167
+ }),
3168
+ responses: {
3169
+ 200: null,
3170
+ 403: DefaultUnauthorizedSchema,
3171
+ 404: DefaultNotFoundSchema,
3172
+ 500: DefaultErrorResponseSchema
3173
+ },
3174
+ body: z44.object({
3175
+ roomId: z44.string().uuid(),
3176
+ firstResponseTime: z44.number().nullable(),
3177
+ resolutionTime: z44.number().nullable(),
3178
+ slaStatus: z44.enum(["meet", "unmeet"])
3179
+ })
3159
3180
  }
3160
3181
  });
3161
3182
 
@@ -6484,6 +6505,7 @@ var CreateWrapUpFormSchema = z91.object({
6484
6505
  callTo: z91.string().nullable().optional()
6485
6506
  });
6486
6507
  var UpdateWrapUpFormSchema = CreateWrapUpFormSchema.extend({
6508
+ cxLogId: z91.string().uuid().optional(),
6487
6509
  type: z91.string().optional(),
6488
6510
  tags: z91.array(z91.string()).optional(),
6489
6511
  categoryIds: z91.array(z91.string().uuid()).optional(),
@@ -7212,7 +7234,8 @@ var BusinessHourSchema = DefaultEntitySchema.extend({
7212
7234
  var HolidaySchema = DefaultEntitySchema.extend({
7213
7235
  name: z105.string(),
7214
7236
  date: z105.string(),
7215
- isEnabled: z105.boolean()
7237
+ isEnabled: z105.boolean(),
7238
+ isDefault: z105.boolean()
7216
7239
  });
7217
7240
  var BusinessCalendarSchema = DefaultEntitySchema.extend({
7218
7241
  name: z105.string(),
@@ -7647,8 +7670,8 @@ var chatContract = initContract42().router(
7647
7670
  responses: {
7648
7671
  200: DefaultSuccessResponseSchema.extend({
7649
7672
  data: RoomSchema
7650
- })
7651
- // 403:
7673
+ }),
7674
+ 403: DefaultErrorResponseSchema
7652
7675
  // 404
7653
7676
  },
7654
7677
  summary: "Update room assignee"