@kl1/contracts 1.0.73 → 1.0.75

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 CHANGED
@@ -799,7 +799,7 @@ var ChannelSchema = import_zod17.default.object({
799
799
  telephonySignature: import_zod17.default.string().nullable()
800
800
  })
801
801
  })
802
- }).partial().optional();
802
+ });
803
803
 
804
804
  // src/chat/validation.ts
805
805
  var import_zod29 = __toESM(require("zod"));
@@ -1266,7 +1266,6 @@ var CxLogSchema = DefaultEntitySchema.extend({
1266
1266
  startedDate: import_zod28.default.date().nullable(),
1267
1267
  handledTime: import_zod28.default.number().nullable(),
1268
1268
  firstResponseTime: import_zod28.default.number().nullable(),
1269
- disposition: import_zod28.default.string().nullable(),
1270
1269
  wrapUpForm: WrapUpFormSchema.nullable()
1271
1270
  });
1272
1271
  var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
@@ -1280,7 +1279,6 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
1280
1279
  startedDate: import_zod28.default.string().nullable(),
1281
1280
  handledTime: import_zod28.default.string().nullable(),
1282
1281
  firstResponseTime: import_zod28.default.string().nullable(),
1283
- disposition: import_zod28.default.string().nullable(),
1284
1282
  slaMeet: import_zod28.default.string().nullable(),
1285
1283
  evaluateForm: EvaluateFormSchema.nullable(),
1286
1284
  wrapUpForm: WrapUpFormSchema.nullable(),
@@ -1643,18 +1641,6 @@ var messenger = (0, import_core6.initContract)().router(
1643
1641
  },
1644
1642
  body: ConnectChannelSchema,
1645
1643
  summary: "Connect message channel"
1646
- },
1647
- relogin: {
1648
- method: "POST",
1649
- path: "/relogin",
1650
- responses: {
1651
- 200: DefaultSuccessResponseSchema.extend({
1652
- channel: ChannelSchema
1653
- }),
1654
- 408: DefaultErrorResponseSchema
1655
- },
1656
- body: ConnectChannelSchema,
1657
- summary: "Relogin message channel"
1658
1644
  }
1659
1645
  },
1660
1646
  {
@@ -1789,6 +1775,33 @@ var channelContract = (0, import_core6.initContract)().router(
1789
1775
  }),
1790
1776
  summary: "Rename message channel"
1791
1777
  },
1778
+ reconnect: {
1779
+ method: "POST",
1780
+ path: "/rename/:channelId",
1781
+ pathParams: import_zod31.default.object({
1782
+ channelId: import_zod31.default.string().uuid()
1783
+ }),
1784
+ responses: {
1785
+ 200: DefaultSuccessResponseSchema.extend({
1786
+ channel: ChannelSchema
1787
+ }),
1788
+ 408: DefaultErrorResponseSchema
1789
+ },
1790
+ body: null,
1791
+ summary: "Reconnect message channel"
1792
+ },
1793
+ relogin: {
1794
+ method: "POST",
1795
+ path: "/relogin",
1796
+ responses: {
1797
+ 200: DefaultSuccessResponseSchema.extend({
1798
+ channel: ChannelSchema
1799
+ }),
1800
+ 408: DefaultErrorResponseSchema
1801
+ },
1802
+ body: ConnectChannelSchema,
1803
+ summary: "Relogin message channel"
1804
+ },
1792
1805
  messenger,
1793
1806
  line,
1794
1807
  instagram,
@@ -6050,6 +6063,7 @@ var UpdateWrapUpFormSchema = CreateWrapUpFormSchema.extend({
6050
6063
  });
6051
6064
  var CreateCXLogWrapUpFormSchema = import_zod86.z.object({
6052
6065
  cxLogId: import_zod86.z.string().uuid(),
6066
+ disposition: import_zod86.z.string().optional(),
6053
6067
  tagIds: import_zod86.z.array(import_zod86.z.string().uuid()).optional(),
6054
6068
  note: import_zod86.z.string().optional()
6055
6069
  });