@kl1/contracts 1.2.30-uat → 1.2.32-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 +1470 -1470
- package/dist/api-contracts/src/chat/schema.d.ts +230 -230
- package/dist/api-contracts/src/chat/validation.d.ts +158 -158
- package/dist/api-contracts/src/contract.d.ts +1534 -1534
- package/dist/api-contracts/src/cx-intelligence/index.d.ts +61 -0
- package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +158 -158
- package/dist/api-contracts/src/index.d.ts +1 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +158 -158
- package/dist/api-contracts/src/line/index.d.ts +158 -158
- package/dist/api-contracts/src/messenger/index.d.ts +158 -158
- package/dist/api-contracts/src/telegram/index.d.ts +158 -158
- package/dist/api-contracts/src/viber/index.d.ts +158 -158
- package/dist/api-contracts/src/webchat/index.d.ts +158 -158
- package/dist/api-contracts/src/whatsapp/index.d.ts +158 -158
- package/dist/api-contracts/src/workflow-rule/index.d.ts +96 -96
- package/dist/index.js +52 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -730,7 +730,7 @@ var RoomSchema = DefaultEntitySchema.extend({
|
|
|
730
730
|
})
|
|
731
731
|
}),
|
|
732
732
|
channel: ChannelSchema,
|
|
733
|
-
cxlog: CxLogSchema
|
|
733
|
+
cxlog: CxLogSchema,
|
|
734
734
|
workflowRule: WorkflowRuleSchema,
|
|
735
735
|
automationQueueId: z18.string().uuid().optional().nullable()
|
|
736
736
|
});
|
|
@@ -10027,6 +10027,53 @@ var subscriptionContract = initContract53().router(
|
|
|
10027
10027
|
pathPrefix: "subscriptions"
|
|
10028
10028
|
}
|
|
10029
10029
|
);
|
|
10030
|
+
|
|
10031
|
+
// src/cx-intelligence/index.ts
|
|
10032
|
+
import { initContract as initContract54 } from "@ts-rest/core";
|
|
10033
|
+
import z139 from "zod";
|
|
10034
|
+
var cxIntelligenceContract = initContract54().router(
|
|
10035
|
+
{
|
|
10036
|
+
toggle: {
|
|
10037
|
+
method: "POST",
|
|
10038
|
+
path: "/toggle",
|
|
10039
|
+
headers: DefaultHeaderSchema,
|
|
10040
|
+
body: z139.object({
|
|
10041
|
+
enabled: z139.union([z139.literal(true), z139.literal(false)])
|
|
10042
|
+
}),
|
|
10043
|
+
responses: {
|
|
10044
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
10045
|
+
message: z139.string()
|
|
10046
|
+
}),
|
|
10047
|
+
500: DefaultErrorResponseSchema
|
|
10048
|
+
},
|
|
10049
|
+
summary: "Toggle Cx Intelligence"
|
|
10050
|
+
}
|
|
10051
|
+
},
|
|
10052
|
+
{ pathPrefix: "cx-intelligence" }
|
|
10053
|
+
);
|
|
10054
|
+
var settingCxIntelligenceContract = initContract54().router(
|
|
10055
|
+
{
|
|
10056
|
+
checkStatus: {
|
|
10057
|
+
method: "GET",
|
|
10058
|
+
path: "/status",
|
|
10059
|
+
headers: DefaultHeaderSchema,
|
|
10060
|
+
responses: {
|
|
10061
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
10062
|
+
message: z139.string(),
|
|
10063
|
+
status: z139.boolean()
|
|
10064
|
+
}),
|
|
10065
|
+
422: z139.object({
|
|
10066
|
+
requestId: z139.string(),
|
|
10067
|
+
message: z139.string(),
|
|
10068
|
+
status: z139.boolean()
|
|
10069
|
+
}),
|
|
10070
|
+
500: DefaultErrorResponseSchema
|
|
10071
|
+
},
|
|
10072
|
+
summary: "Check Cx Intelligence status"
|
|
10073
|
+
}
|
|
10074
|
+
},
|
|
10075
|
+
{ pathPrefix: "settings/cx-intelligence" }
|
|
10076
|
+
);
|
|
10030
10077
|
export {
|
|
10031
10078
|
activityLogContract,
|
|
10032
10079
|
apiContract,
|
|
@@ -10051,6 +10098,7 @@ export {
|
|
|
10051
10098
|
contactContract2 as contactContract,
|
|
10052
10099
|
contactLabelSettingContract,
|
|
10053
10100
|
contactSettingContract,
|
|
10101
|
+
cxIntelligenceContract,
|
|
10054
10102
|
cxLogContract,
|
|
10055
10103
|
dashboardContract,
|
|
10056
10104
|
evaluateFormContract,
|
|
@@ -10082,6 +10130,7 @@ export {
|
|
|
10082
10130
|
publicApiContract2 as publicApiContract,
|
|
10083
10131
|
receiveMessageContract,
|
|
10084
10132
|
roleSettingContract,
|
|
10133
|
+
settingCxIntelligenceContract,
|
|
10085
10134
|
smsSettingContract,
|
|
10086
10135
|
snippetContract,
|
|
10087
10136
|
snippetSettingContract,
|