@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.
- package/dist/api-contracts/src/chat/index.d.ts +169 -169
- package/dist/api-contracts/src/chat/schema.d.ts +45 -45
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +56 -56
- package/dist/api-contracts/src/contract.d.ts +369 -296
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +73 -0
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +3 -0
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +43 -43
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
- package/dist/api-contracts/src/instagram/index.d.ts +33 -33
- package/dist/api-contracts/src/line/index.d.ts +38 -38
- package/dist/api-contracts/src/line/validation.d.ts +5 -5
- package/dist/api-contracts/src/messenger/index.d.ts +33 -33
- package/dist/api-contracts/src/sms/index.d.ts +5 -5
- package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telegram/index.d.ts +33 -33
- package/dist/api-contracts/src/viber/index.d.ts +33 -33
- package/dist/api-contracts/src/webchat/index.d.ts +38 -38
- package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/index.d.ts +33 -33
- package/dist/api-contracts/src/workflow-rule/index.d.ts +12 -12
- package/dist/index.js +91 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +91 -59
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -762,7 +762,8 @@ var MessageTypeSchema = import_zod18.default.enum([
|
|
|
762
762
|
"deleted",
|
|
763
763
|
"unsupported",
|
|
764
764
|
// lazada specific
|
|
765
|
-
"item"
|
|
765
|
+
"item",
|
|
766
|
+
"lazada_sys_msg"
|
|
766
767
|
]);
|
|
767
768
|
var FeedPostTypeSchema = import_zod18.default.enum([
|
|
768
769
|
"text",
|
|
@@ -4275,6 +4276,7 @@ var GetMessageChannelQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
|
|
|
4275
4276
|
channelIds: import_zod53.default.array(import_zod53.default.string()).optional()
|
|
4276
4277
|
});
|
|
4277
4278
|
var DashboardQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
|
|
4279
|
+
automationQueueId: import_zod53.default.string().uuid().optional(),
|
|
4278
4280
|
channelIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional(),
|
|
4279
4281
|
agentIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional()
|
|
4280
4282
|
});
|
|
@@ -4741,6 +4743,18 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4741
4743
|
401: DefaultUnauthorizedSchema
|
|
4742
4744
|
}
|
|
4743
4745
|
},
|
|
4746
|
+
exportMessageAverageData: {
|
|
4747
|
+
method: "GET",
|
|
4748
|
+
path: "/export-message-average-data",
|
|
4749
|
+
query: import_zod55.default.object({
|
|
4750
|
+
selectedDate: import_zod55.default.string().min(1),
|
|
4751
|
+
automationQueueId: import_zod55.default.string().uuid().optional(),
|
|
4752
|
+
channelIds: import_zod55.default.array(import_zod55.default.string().uuid()).optional()
|
|
4753
|
+
}),
|
|
4754
|
+
responses: {
|
|
4755
|
+
200: DefaultSuccessResponseSchema
|
|
4756
|
+
}
|
|
4757
|
+
},
|
|
4744
4758
|
getChannelIncomingMessageCounts: {
|
|
4745
4759
|
method: "GET",
|
|
4746
4760
|
path: "/message/platform",
|
|
@@ -4869,6 +4883,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4869
4883
|
path: "/user-check-in-logs-with-days",
|
|
4870
4884
|
query: import_zod55.default.object({
|
|
4871
4885
|
automationQueueId: import_zod55.default.string().uuid().optional(),
|
|
4886
|
+
selectedDate: import_zod55.default.string().min(1),
|
|
4872
4887
|
keyword: import_zod55.default.string().optional(),
|
|
4873
4888
|
page: import_zod55.default.coerce.number().positive(),
|
|
4874
4889
|
pageSize: import_zod55.default.coerce.number().positive()
|
|
@@ -4881,6 +4896,18 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4881
4896
|
})
|
|
4882
4897
|
}
|
|
4883
4898
|
},
|
|
4899
|
+
exportUserCheckInLogs: {
|
|
4900
|
+
method: "GET",
|
|
4901
|
+
path: "/export-user-check-in-logs",
|
|
4902
|
+
query: import_zod55.default.object({
|
|
4903
|
+
automationQueueId: import_zod55.default.string().uuid().optional(),
|
|
4904
|
+
selectedDate: import_zod55.default.string().min(1),
|
|
4905
|
+
keyword: import_zod55.default.string().optional()
|
|
4906
|
+
}),
|
|
4907
|
+
responses: {
|
|
4908
|
+
200: DefaultSuccessResponseSchema
|
|
4909
|
+
}
|
|
4910
|
+
},
|
|
4884
4911
|
getRoomStatusCountsByUserId: {
|
|
4885
4912
|
method: "GET",
|
|
4886
4913
|
path: "/room-status-counts-by-user-id",
|
|
@@ -10187,69 +10214,74 @@ var ConnectWebChatChannelSchema = import_zod130.default.object({
|
|
|
10187
10214
|
});
|
|
10188
10215
|
|
|
10189
10216
|
// src/webchat/index.ts
|
|
10190
|
-
var platformWebchatContract = (0, import_core51.initContract)().router(
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10217
|
+
var platformWebchatContract = (0, import_core51.initContract)().router(
|
|
10218
|
+
{
|
|
10219
|
+
sendMessage: {
|
|
10220
|
+
method: "POST",
|
|
10221
|
+
path: "/message",
|
|
10222
|
+
body: SendMessageToPlatformSchema,
|
|
10223
|
+
responses: {
|
|
10224
|
+
200: SendMessageResponseSchema,
|
|
10225
|
+
400: DefaultErrorResponseSchema,
|
|
10226
|
+
500: DefaultErrorResponseSchema
|
|
10227
|
+
}
|
|
10228
|
+
},
|
|
10229
|
+
connect: {
|
|
10230
|
+
method: "POST",
|
|
10231
|
+
path: "/connect",
|
|
10232
|
+
summary: "Connect to a webchat channel",
|
|
10233
|
+
responses: {
|
|
10234
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
10235
|
+
channel: ChannelSchema
|
|
10236
|
+
}),
|
|
10237
|
+
400: DefaultErrorResponseSchema,
|
|
10238
|
+
500: DefaultErrorResponseSchema
|
|
10239
|
+
},
|
|
10240
|
+
body: ConnectWebChatChannelSchema
|
|
10241
|
+
},
|
|
10242
|
+
disconnectToService: {
|
|
10243
|
+
method: "POST",
|
|
10244
|
+
path: "/disconnect",
|
|
10245
|
+
body: import_zod131.default.object({
|
|
10246
|
+
id: import_zod131.default.string().uuid()
|
|
10208
10247
|
}),
|
|
10209
|
-
|
|
10210
|
-
|
|
10248
|
+
responses: {
|
|
10249
|
+
200: ChannelServiceResponseSchema,
|
|
10250
|
+
500: DefaultErrorResponseSchema,
|
|
10251
|
+
400: DefaultErrorResponseSchema
|
|
10252
|
+
}
|
|
10211
10253
|
},
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
}
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10254
|
+
reconnect: {
|
|
10255
|
+
method: "POST",
|
|
10256
|
+
path: "/reconnect/:channelId",
|
|
10257
|
+
pathParams: import_zod131.default.object({
|
|
10258
|
+
channelId: import_zod131.default.string().uuid()
|
|
10259
|
+
}),
|
|
10260
|
+
body: null,
|
|
10261
|
+
responses: {
|
|
10262
|
+
200: ChannelServiceResponseSchema,
|
|
10263
|
+
500: DefaultErrorResponseSchema,
|
|
10264
|
+
400: DefaultErrorResponseSchema
|
|
10265
|
+
}
|
|
10266
|
+
},
|
|
10267
|
+
delete: {
|
|
10268
|
+
method: "DELETE",
|
|
10269
|
+
path: "/delete/:channelId",
|
|
10270
|
+
pathParams: import_zod131.default.object({
|
|
10271
|
+
channelId: import_zod131.default.string().uuid()
|
|
10272
|
+
}),
|
|
10273
|
+
body: null,
|
|
10274
|
+
responses: {
|
|
10275
|
+
200: ChannelServiceResponseSchema,
|
|
10276
|
+
500: DefaultErrorResponseSchema,
|
|
10277
|
+
400: DefaultErrorResponseSchema
|
|
10278
|
+
}
|
|
10237
10279
|
}
|
|
10238
10280
|
},
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
path: "/delete/:channelId",
|
|
10242
|
-
pathParams: import_zod131.default.object({
|
|
10243
|
-
channelId: import_zod131.default.string().uuid()
|
|
10244
|
-
}),
|
|
10245
|
-
body: null,
|
|
10246
|
-
responses: {
|
|
10247
|
-
200: ChannelServiceResponseSchema,
|
|
10248
|
-
500: DefaultErrorResponseSchema,
|
|
10249
|
-
400: DefaultErrorResponseSchema
|
|
10250
|
-
}
|
|
10281
|
+
{
|
|
10282
|
+
pathPrefix: "wcs"
|
|
10251
10283
|
}
|
|
10252
|
-
|
|
10284
|
+
);
|
|
10253
10285
|
|
|
10254
10286
|
// src/hold-label/index.ts
|
|
10255
10287
|
var import_core52 = require("@ts-rest/core");
|