@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.mjs CHANGED
@@ -738,7 +738,7 @@ var ChannelSchema = z17.object({
738
738
  telephonySignature: z17.string().nullable()
739
739
  })
740
740
  })
741
- }).partial().optional();
741
+ });
742
742
 
743
743
  // src/chat/validation.ts
744
744
  import z29 from "zod";
@@ -1205,7 +1205,6 @@ var CxLogSchema = DefaultEntitySchema.extend({
1205
1205
  startedDate: z28.date().nullable(),
1206
1206
  handledTime: z28.number().nullable(),
1207
1207
  firstResponseTime: z28.number().nullable(),
1208
- disposition: z28.string().nullable(),
1209
1208
  wrapUpForm: WrapUpFormSchema.nullable()
1210
1209
  });
1211
1210
  var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
@@ -1219,7 +1218,6 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
1219
1218
  startedDate: z28.string().nullable(),
1220
1219
  handledTime: z28.string().nullable(),
1221
1220
  firstResponseTime: z28.string().nullable(),
1222
- disposition: z28.string().nullable(),
1223
1221
  slaMeet: z28.string().nullable(),
1224
1222
  evaluateForm: EvaluateFormSchema.nullable(),
1225
1223
  wrapUpForm: WrapUpFormSchema.nullable(),
@@ -1582,18 +1580,6 @@ var messenger = initContract6().router(
1582
1580
  },
1583
1581
  body: ConnectChannelSchema,
1584
1582
  summary: "Connect message channel"
1585
- },
1586
- relogin: {
1587
- method: "POST",
1588
- path: "/relogin",
1589
- responses: {
1590
- 200: DefaultSuccessResponseSchema.extend({
1591
- channel: ChannelSchema
1592
- }),
1593
- 408: DefaultErrorResponseSchema
1594
- },
1595
- body: ConnectChannelSchema,
1596
- summary: "Relogin message channel"
1597
1583
  }
1598
1584
  },
1599
1585
  {
@@ -1728,6 +1714,33 @@ var channelContract = initContract6().router(
1728
1714
  }),
1729
1715
  summary: "Rename message channel"
1730
1716
  },
1717
+ reconnect: {
1718
+ method: "POST",
1719
+ path: "/rename/:channelId",
1720
+ pathParams: z31.object({
1721
+ channelId: z31.string().uuid()
1722
+ }),
1723
+ responses: {
1724
+ 200: DefaultSuccessResponseSchema.extend({
1725
+ channel: ChannelSchema
1726
+ }),
1727
+ 408: DefaultErrorResponseSchema
1728
+ },
1729
+ body: null,
1730
+ summary: "Reconnect message channel"
1731
+ },
1732
+ relogin: {
1733
+ method: "POST",
1734
+ path: "/relogin",
1735
+ responses: {
1736
+ 200: DefaultSuccessResponseSchema.extend({
1737
+ channel: ChannelSchema
1738
+ }),
1739
+ 408: DefaultErrorResponseSchema
1740
+ },
1741
+ body: ConnectChannelSchema,
1742
+ summary: "Relogin message channel"
1743
+ },
1731
1744
  messenger,
1732
1745
  line,
1733
1746
  instagram,
@@ -5989,6 +6002,7 @@ var UpdateWrapUpFormSchema = CreateWrapUpFormSchema.extend({
5989
6002
  });
5990
6003
  var CreateCXLogWrapUpFormSchema = z86.object({
5991
6004
  cxLogId: z86.string().uuid(),
6005
+ disposition: z86.string().optional(),
5992
6006
  tagIds: z86.array(z86.string().uuid()).optional(),
5993
6007
  note: z86.string().optional()
5994
6008
  });