@kl1/contracts 1.2.82-uat → 1.2.83-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.
Files changed (29) hide show
  1. package/dist/api-contracts/src/chat/index.d.ts +169 -169
  2. package/dist/api-contracts/src/chat/schema.d.ts +45 -45
  3. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  4. package/dist/api-contracts/src/chat/validation.d.ts +56 -56
  5. package/dist/api-contracts/src/contract.d.ts +369 -296
  6. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  7. package/dist/api-contracts/src/dashboard/index.d.ts +73 -0
  8. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  9. package/dist/api-contracts/src/dashboard/validation.d.ts +3 -0
  10. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  11. package/dist/api-contracts/src/facebook-feed/index.d.ts +43 -43
  12. package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
  13. package/dist/api-contracts/src/instagram/index.d.ts +33 -33
  14. package/dist/api-contracts/src/line/index.d.ts +38 -38
  15. package/dist/api-contracts/src/line/validation.d.ts +5 -5
  16. package/dist/api-contracts/src/messenger/index.d.ts +33 -33
  17. package/dist/api-contracts/src/sms/index.d.ts +5 -5
  18. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  19. package/dist/api-contracts/src/telegram/index.d.ts +33 -33
  20. package/dist/api-contracts/src/viber/index.d.ts +33 -33
  21. package/dist/api-contracts/src/webchat/index.d.ts +38 -38
  22. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  23. package/dist/api-contracts/src/whatsapp/index.d.ts +33 -33
  24. package/dist/api-contracts/src/workflow-rule/index.d.ts +12 -12
  25. package/dist/index.js +91 -59
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +91 -59
  28. package/dist/index.mjs.map +1 -1
  29. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -655,7 +655,8 @@ var MessageTypeSchema = z18.enum([
655
655
  "deleted",
656
656
  "unsupported",
657
657
  // lazada specific
658
- "item"
658
+ "item",
659
+ "lazada_sys_msg"
659
660
  ]);
660
661
  var FeedPostTypeSchema = z18.enum([
661
662
  "text",
@@ -4168,6 +4169,7 @@ var GetMessageChannelQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
4168
4169
  channelIds: z53.array(z53.string()).optional()
4169
4170
  });
4170
4171
  var DashboardQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
4172
+ automationQueueId: z53.string().uuid().optional(),
4171
4173
  channelIds: z53.array(z53.string().uuid()).optional(),
4172
4174
  agentIds: z53.array(z53.string().uuid()).optional()
4173
4175
  });
@@ -4634,6 +4636,18 @@ var dashboardContract = initContract13().router(
4634
4636
  401: DefaultUnauthorizedSchema
4635
4637
  }
4636
4638
  },
4639
+ exportMessageAverageData: {
4640
+ method: "GET",
4641
+ path: "/export-message-average-data",
4642
+ query: z55.object({
4643
+ selectedDate: z55.string().min(1),
4644
+ automationQueueId: z55.string().uuid().optional(),
4645
+ channelIds: z55.array(z55.string().uuid()).optional()
4646
+ }),
4647
+ responses: {
4648
+ 200: DefaultSuccessResponseSchema
4649
+ }
4650
+ },
4637
4651
  getChannelIncomingMessageCounts: {
4638
4652
  method: "GET",
4639
4653
  path: "/message/platform",
@@ -4762,6 +4776,7 @@ var dashboardContract = initContract13().router(
4762
4776
  path: "/user-check-in-logs-with-days",
4763
4777
  query: z55.object({
4764
4778
  automationQueueId: z55.string().uuid().optional(),
4779
+ selectedDate: z55.string().min(1),
4765
4780
  keyword: z55.string().optional(),
4766
4781
  page: z55.coerce.number().positive(),
4767
4782
  pageSize: z55.coerce.number().positive()
@@ -4774,6 +4789,18 @@ var dashboardContract = initContract13().router(
4774
4789
  })
4775
4790
  }
4776
4791
  },
4792
+ exportUserCheckInLogs: {
4793
+ method: "GET",
4794
+ path: "/export-user-check-in-logs",
4795
+ query: z55.object({
4796
+ automationQueueId: z55.string().uuid().optional(),
4797
+ selectedDate: z55.string().min(1),
4798
+ keyword: z55.string().optional()
4799
+ }),
4800
+ responses: {
4801
+ 200: DefaultSuccessResponseSchema
4802
+ }
4803
+ },
4777
4804
  getRoomStatusCountsByUserId: {
4778
4805
  method: "GET",
4779
4806
  path: "/room-status-counts-by-user-id",
@@ -10080,69 +10107,74 @@ var ConnectWebChatChannelSchema = z130.object({
10080
10107
  });
10081
10108
 
10082
10109
  // src/webchat/index.ts
10083
- var platformWebchatContract = initContract51().router({
10084
- sendMessage: {
10085
- method: "POST",
10086
- path: "/message",
10087
- body: SendMessageToPlatformSchema,
10088
- responses: {
10089
- 200: SendMessageResponseSchema,
10090
- 400: DefaultErrorResponseSchema,
10091
- 500: DefaultErrorResponseSchema
10092
- }
10093
- },
10094
- connect: {
10095
- method: "POST",
10096
- path: "/connect",
10097
- summary: "Connect to a webchat channel",
10098
- responses: {
10099
- 200: DefaultSuccessResponseSchema.extend({
10100
- channel: ChannelSchema
10110
+ var platformWebchatContract = initContract51().router(
10111
+ {
10112
+ sendMessage: {
10113
+ method: "POST",
10114
+ path: "/message",
10115
+ body: SendMessageToPlatformSchema,
10116
+ responses: {
10117
+ 200: SendMessageResponseSchema,
10118
+ 400: DefaultErrorResponseSchema,
10119
+ 500: DefaultErrorResponseSchema
10120
+ }
10121
+ },
10122
+ connect: {
10123
+ method: "POST",
10124
+ path: "/connect",
10125
+ summary: "Connect to a webchat channel",
10126
+ responses: {
10127
+ 200: DefaultSuccessResponseSchema.extend({
10128
+ channel: ChannelSchema
10129
+ }),
10130
+ 400: DefaultErrorResponseSchema,
10131
+ 500: DefaultErrorResponseSchema
10132
+ },
10133
+ body: ConnectWebChatChannelSchema
10134
+ },
10135
+ disconnectToService: {
10136
+ method: "POST",
10137
+ path: "/disconnect",
10138
+ body: z131.object({
10139
+ id: z131.string().uuid()
10101
10140
  }),
10102
- 400: DefaultErrorResponseSchema,
10103
- 500: DefaultErrorResponseSchema
10141
+ responses: {
10142
+ 200: ChannelServiceResponseSchema,
10143
+ 500: DefaultErrorResponseSchema,
10144
+ 400: DefaultErrorResponseSchema
10145
+ }
10104
10146
  },
10105
- body: ConnectWebChatChannelSchema
10106
- },
10107
- disconnectToService: {
10108
- method: "POST",
10109
- path: "/disconnect",
10110
- body: z131.object({
10111
- id: z131.string().uuid()
10112
- }),
10113
- responses: {
10114
- 200: ChannelServiceResponseSchema,
10115
- 500: DefaultErrorResponseSchema,
10116
- 400: DefaultErrorResponseSchema
10117
- }
10118
- },
10119
- reconnect: {
10120
- method: "POST",
10121
- path: "/reconnect/:channelId",
10122
- pathParams: z131.object({
10123
- channelId: z131.string().uuid()
10124
- }),
10125
- body: null,
10126
- responses: {
10127
- 200: ChannelServiceResponseSchema,
10128
- 500: DefaultErrorResponseSchema,
10129
- 400: DefaultErrorResponseSchema
10147
+ reconnect: {
10148
+ method: "POST",
10149
+ path: "/reconnect/:channelId",
10150
+ pathParams: z131.object({
10151
+ channelId: z131.string().uuid()
10152
+ }),
10153
+ body: null,
10154
+ responses: {
10155
+ 200: ChannelServiceResponseSchema,
10156
+ 500: DefaultErrorResponseSchema,
10157
+ 400: DefaultErrorResponseSchema
10158
+ }
10159
+ },
10160
+ delete: {
10161
+ method: "DELETE",
10162
+ path: "/delete/:channelId",
10163
+ pathParams: z131.object({
10164
+ channelId: z131.string().uuid()
10165
+ }),
10166
+ body: null,
10167
+ responses: {
10168
+ 200: ChannelServiceResponseSchema,
10169
+ 500: DefaultErrorResponseSchema,
10170
+ 400: DefaultErrorResponseSchema
10171
+ }
10130
10172
  }
10131
10173
  },
10132
- delete: {
10133
- method: "DELETE",
10134
- path: "/delete/:channelId",
10135
- pathParams: z131.object({
10136
- channelId: z131.string().uuid()
10137
- }),
10138
- body: null,
10139
- responses: {
10140
- 200: ChannelServiceResponseSchema,
10141
- 500: DefaultErrorResponseSchema,
10142
- 400: DefaultErrorResponseSchema
10143
- }
10174
+ {
10175
+ pathPrefix: "wcs"
10144
10176
  }
10145
- });
10177
+ );
10146
10178
 
10147
10179
  // src/hold-label/index.ts
10148
10180
  import { initContract as initContract52 } from "@ts-rest/core";