@kl1/contracts 1.2.36-uat → 1.2.37-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -10053,6 +10053,53 @@ var subscriptionContract = initContract53().router(
10053
10053
  pathPrefix: "subscriptions"
10054
10054
  }
10055
10055
  );
10056
+
10057
+ // src/cx-intelligence/index.ts
10058
+ import { initContract as initContract54 } from "@ts-rest/core";
10059
+ import z139 from "zod";
10060
+ var cxIntelligenceContract = initContract54().router(
10061
+ {
10062
+ toggle: {
10063
+ method: "POST",
10064
+ path: "/toggle",
10065
+ headers: DefaultHeaderSchema,
10066
+ body: z139.object({
10067
+ enabled: z139.union([z139.literal(true), z139.literal(false)])
10068
+ }),
10069
+ responses: {
10070
+ 200: DefaultSuccessResponseSchema.extend({
10071
+ message: z139.string()
10072
+ }),
10073
+ 500: DefaultErrorResponseSchema
10074
+ },
10075
+ summary: "Toggle Cx Intelligence"
10076
+ }
10077
+ },
10078
+ { pathPrefix: "cx-intelligence" }
10079
+ );
10080
+ var settingCxIntelligenceContract = initContract54().router(
10081
+ {
10082
+ checkStatus: {
10083
+ method: "GET",
10084
+ path: "/status",
10085
+ headers: DefaultHeaderSchema,
10086
+ responses: {
10087
+ 200: DefaultSuccessResponseSchema.extend({
10088
+ message: z139.string(),
10089
+ status: z139.boolean()
10090
+ }),
10091
+ 422: z139.object({
10092
+ requestId: z139.string(),
10093
+ message: z139.string(),
10094
+ status: z139.boolean()
10095
+ }),
10096
+ 500: DefaultErrorResponseSchema
10097
+ },
10098
+ summary: "Check Cx Intelligence status"
10099
+ }
10100
+ },
10101
+ { pathPrefix: "settings/cx-intelligence" }
10102
+ );
10056
10103
  export {
10057
10104
  activityLogContract,
10058
10105
  apiContract,
@@ -10077,6 +10124,7 @@ export {
10077
10124
  contactContract2 as contactContract,
10078
10125
  contactLabelSettingContract,
10079
10126
  contactSettingContract,
10127
+ cxIntelligenceContract,
10080
10128
  cxLogContract,
10081
10129
  dashboardContract,
10082
10130
  evaluateFormContract,
@@ -10108,6 +10156,7 @@ export {
10108
10156
  publicApiContract2 as publicApiContract,
10109
10157
  receiveMessageContract,
10110
10158
  roleSettingContract,
10159
+ settingCxIntelligenceContract,
10111
10160
  smsSettingContract,
10112
10161
  snippetContract,
10113
10162
  snippetSettingContract,