@kl1/contracts 1.2.31-uat → 1.2.32-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -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,