@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.
@@ -0,0 +1,115 @@
1
+ import z from 'zod';
2
+ export declare const cxIntelligenceContract: {
3
+ toggle: {
4
+ body: z.ZodObject<{
5
+ enabled: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ enabled: boolean;
8
+ }, {
9
+ enabled: boolean;
10
+ }>;
11
+ summary: "Toggle Cx Intelligence";
12
+ method: "POST";
13
+ responses: {
14
+ 200: z.ZodObject<{
15
+ requestId: z.ZodString;
16
+ message: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ message: string;
19
+ requestId: string;
20
+ }, {
21
+ message: string;
22
+ requestId: string;
23
+ }>;
24
+ 500: z.ZodObject<{
25
+ message: z.ZodString;
26
+ error: z.ZodAny;
27
+ }, "strip", z.ZodTypeAny, {
28
+ message: string;
29
+ error?: any;
30
+ }, {
31
+ message: string;
32
+ error?: any;
33
+ }>;
34
+ };
35
+ path: "cx-intelligence/toggle";
36
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
37
+ 'x-tenant': z.ZodString;
38
+ authorization: z.ZodString;
39
+ 'x-code': z.ZodOptional<z.ZodString>;
40
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ 'x-tenant': string;
43
+ authorization: string;
44
+ 'x-client-timezone': string;
45
+ 'x-code'?: string | undefined;
46
+ }, {
47
+ 'x-tenant': string;
48
+ authorization: string;
49
+ 'x-code'?: string | undefined;
50
+ 'x-client-timezone'?: string | undefined;
51
+ }>>>;
52
+ };
53
+ };
54
+ export declare const settingCxIntelligenceContract: {
55
+ checkStatus: {
56
+ summary: "Check Cx Intelligence status";
57
+ method: "GET";
58
+ responses: {
59
+ 200: z.ZodObject<{
60
+ requestId: z.ZodString;
61
+ message: z.ZodString;
62
+ status: z.ZodBoolean;
63
+ }, "strip", z.ZodTypeAny, {
64
+ message: string;
65
+ status: boolean;
66
+ requestId: string;
67
+ }, {
68
+ message: string;
69
+ status: boolean;
70
+ requestId: string;
71
+ }>;
72
+ 422: z.ZodObject<{
73
+ requestId: z.ZodString;
74
+ message: z.ZodString;
75
+ status: z.ZodBoolean;
76
+ }, "strip", z.ZodTypeAny, {
77
+ message: string;
78
+ status: boolean;
79
+ requestId: string;
80
+ }, {
81
+ message: string;
82
+ status: boolean;
83
+ requestId: string;
84
+ }>;
85
+ 500: z.ZodObject<{
86
+ message: z.ZodString;
87
+ error: z.ZodAny;
88
+ }, "strip", z.ZodTypeAny, {
89
+ message: string;
90
+ error?: any;
91
+ }, {
92
+ message: string;
93
+ error?: any;
94
+ }>;
95
+ };
96
+ path: "settings/cx-intelligence/status";
97
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
98
+ 'x-tenant': z.ZodString;
99
+ authorization: z.ZodString;
100
+ 'x-code': z.ZodOptional<z.ZodString>;
101
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ 'x-tenant': string;
104
+ authorization: string;
105
+ 'x-client-timezone': string;
106
+ 'x-code'?: string | undefined;
107
+ }, {
108
+ 'x-tenant': string;
109
+ authorization: string;
110
+ 'x-code'?: string | undefined;
111
+ 'x-client-timezone'?: string | undefined;
112
+ }>>>;
113
+ };
114
+ };
115
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cx-intelligence/index.ts"],"names":[],"mappings":"AAMA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBzC,CAAC"}
@@ -30,4 +30,5 @@ export * from './hold-label';
30
30
  export * from './subscription';
31
31
  export * from './subscription';
32
32
  export * from './botpress';
33
+ export * from './cx-intelligence';
33
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -53,6 +53,7 @@ __export(src_exports, {
53
53
  contactContract: () => contactContract2,
54
54
  contactLabelSettingContract: () => contactLabelSettingContract,
55
55
  contactSettingContract: () => contactSettingContract,
56
+ cxIntelligenceContract: () => cxIntelligenceContract,
56
57
  cxLogContract: () => cxLogContract,
57
58
  dashboardContract: () => dashboardContract,
58
59
  evaluateFormContract: () => evaluateFormContract,
@@ -84,6 +85,7 @@ __export(src_exports, {
84
85
  publicApiContract: () => publicApiContract2,
85
86
  receiveMessageContract: () => receiveMessageContract,
86
87
  roleSettingContract: () => roleSettingContract,
88
+ settingCxIntelligenceContract: () => settingCxIntelligenceContract,
87
89
  smsSettingContract: () => smsSettingContract,
88
90
  snippetContract: () => snippetContract,
89
91
  snippetSettingContract: () => snippetSettingContract,
@@ -10158,6 +10160,53 @@ var subscriptionContract = (0, import_core53.initContract)().router(
10158
10160
  pathPrefix: "subscriptions"
10159
10161
  }
10160
10162
  );
10163
+
10164
+ // src/cx-intelligence/index.ts
10165
+ var import_core54 = require("@ts-rest/core");
10166
+ var import_zod139 = __toESM(require("zod"));
10167
+ var cxIntelligenceContract = (0, import_core54.initContract)().router(
10168
+ {
10169
+ toggle: {
10170
+ method: "POST",
10171
+ path: "/toggle",
10172
+ headers: DefaultHeaderSchema,
10173
+ body: import_zod139.default.object({
10174
+ enabled: import_zod139.default.union([import_zod139.default.literal(true), import_zod139.default.literal(false)])
10175
+ }),
10176
+ responses: {
10177
+ 200: DefaultSuccessResponseSchema.extend({
10178
+ message: import_zod139.default.string()
10179
+ }),
10180
+ 500: DefaultErrorResponseSchema
10181
+ },
10182
+ summary: "Toggle Cx Intelligence"
10183
+ }
10184
+ },
10185
+ { pathPrefix: "cx-intelligence" }
10186
+ );
10187
+ var settingCxIntelligenceContract = (0, import_core54.initContract)().router(
10188
+ {
10189
+ checkStatus: {
10190
+ method: "GET",
10191
+ path: "/status",
10192
+ headers: DefaultHeaderSchema,
10193
+ responses: {
10194
+ 200: DefaultSuccessResponseSchema.extend({
10195
+ message: import_zod139.default.string(),
10196
+ status: import_zod139.default.boolean()
10197
+ }),
10198
+ 422: import_zod139.default.object({
10199
+ requestId: import_zod139.default.string(),
10200
+ message: import_zod139.default.string(),
10201
+ status: import_zod139.default.boolean()
10202
+ }),
10203
+ 500: DefaultErrorResponseSchema
10204
+ },
10205
+ summary: "Check Cx Intelligence status"
10206
+ }
10207
+ },
10208
+ { pathPrefix: "settings/cx-intelligence" }
10209
+ );
10161
10210
  // Annotate the CommonJS export names for ESM import in node:
10162
10211
  0 && (module.exports = {
10163
10212
  activityLogContract,
@@ -10183,6 +10232,7 @@ var subscriptionContract = (0, import_core53.initContract)().router(
10183
10232
  contactContract,
10184
10233
  contactLabelSettingContract,
10185
10234
  contactSettingContract,
10235
+ cxIntelligenceContract,
10186
10236
  cxLogContract,
10187
10237
  dashboardContract,
10188
10238
  evaluateFormContract,
@@ -10214,6 +10264,7 @@ var subscriptionContract = (0, import_core53.initContract)().router(
10214
10264
  publicApiContract,
10215
10265
  receiveMessageContract,
10216
10266
  roleSettingContract,
10267
+ settingCxIntelligenceContract,
10217
10268
  smsSettingContract,
10218
10269
  snippetContract,
10219
10270
  snippetSettingContract,