@kl1/contracts 1.0.43 → 1.0.44
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/index.js +265 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +265 -21
- package/dist/index.mjs.map +1 -1
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/chat/index.d.ts +10 -0
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/contract.d.ts +4405 -286
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +556 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +468 -0
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/platform-contact/schema.d.ts +30 -0
- package/dist/src/platform-contact/schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/call-report.schema.d.ts +1420 -0
- package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +3692 -138
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +380 -0
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +56 -0
- package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -961,7 +961,9 @@ var TelephonyCdrSchema = DefaultEntitySchema.extend({
|
|
|
961
961
|
upload: UploadSchema.optional().nullable(),
|
|
962
962
|
serialNumber: import_zod24.default.string().nullable(),
|
|
963
963
|
extensionId: import_zod24.default.string().uuid().nullable(),
|
|
964
|
-
extension: ExtensionSchema.
|
|
964
|
+
extension: ExtensionSchema.extend({
|
|
965
|
+
user: UserSchema.optional().nullable()
|
|
966
|
+
}).optional().nullable(),
|
|
965
967
|
telephonyQueueId: import_zod24.default.string().uuid().nullable(),
|
|
966
968
|
contactId: import_zod24.default.string().nullable()
|
|
967
969
|
});
|
|
@@ -1377,6 +1379,7 @@ var mainChatContract = (0, import_core6.initContract)().router(
|
|
|
1377
1379
|
path: "/message",
|
|
1378
1380
|
body: SendMessageSchema,
|
|
1379
1381
|
responses: {
|
|
1382
|
+
422: DefaultErrorResponseSchema,
|
|
1380
1383
|
500: DefaultErrorResponseSchema
|
|
1381
1384
|
},
|
|
1382
1385
|
summary: "Send message to room"
|
|
@@ -5032,7 +5035,7 @@ var activityLogContract = (0, import_core31.initContract)().router(
|
|
|
5032
5035
|
);
|
|
5033
5036
|
|
|
5034
5037
|
// src/telephony-cdr/index.ts
|
|
5035
|
-
var
|
|
5038
|
+
var import_zod85 = __toESM(require("zod"));
|
|
5036
5039
|
|
|
5037
5040
|
// src/telephony-cdr/validation.ts
|
|
5038
5041
|
var import_zod83 = __toESM(require("zod"));
|
|
@@ -5075,9 +5078,239 @@ var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
|
|
|
5075
5078
|
notes: import_zod83.default.string().optional()
|
|
5076
5079
|
});
|
|
5077
5080
|
var GetExportTelephonyCdrSchema = GetRecentTelephonyCdrSchema;
|
|
5081
|
+
var GetYeastarCallReportSchema = DefaultQueryParamsSchema.extend({
|
|
5082
|
+
reportType: import_zod83.default.enum([
|
|
5083
|
+
"extcallstatistics",
|
|
5084
|
+
"extcallactivity",
|
|
5085
|
+
"trunkactivity",
|
|
5086
|
+
"queuesatisfaction",
|
|
5087
|
+
"queueavgwaittalktime",
|
|
5088
|
+
"queueperformance",
|
|
5089
|
+
"queueagentmisscalls",
|
|
5090
|
+
"queueagentinoutcalls"
|
|
5091
|
+
]),
|
|
5092
|
+
selectedDate: import_zod83.default.string().optional(),
|
|
5093
|
+
communicationType: import_zod83.default.enum(["Inbound", "Outbound", "Internal"]).optional(),
|
|
5094
|
+
time: import_zod83.default.string().optional(),
|
|
5095
|
+
queueList: import_zod83.default.array(import_zod83.default.string()).optional(),
|
|
5096
|
+
queueId: import_zod83.default.string().optional(),
|
|
5097
|
+
trunkList: import_zod83.default.array(import_zod83.default.string()).optional(),
|
|
5098
|
+
extensionList: import_zod83.default.array(import_zod83.default.string()).optional()
|
|
5099
|
+
}).superRefine((input, ctx) => {
|
|
5100
|
+
var _a, _b, _c;
|
|
5101
|
+
if ((input.reportType === "extcallstatistics" || input.reportType === "queuesatisfaction" || input.reportType === "queueperformance") && (input.selectedDate === null || input.selectedDate === "")) {
|
|
5102
|
+
ctx.addIssue({
|
|
5103
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5104
|
+
path: ["selectedDate"],
|
|
5105
|
+
message: "selectedDate is required."
|
|
5106
|
+
});
|
|
5107
|
+
}
|
|
5108
|
+
if (input.reportType === "extcallstatistics" && (input.communicationType === null || input.selectedDate === "")) {
|
|
5109
|
+
ctx.addIssue({
|
|
5110
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5111
|
+
path: ["communicationType"],
|
|
5112
|
+
message: "communicationType is required."
|
|
5113
|
+
});
|
|
5114
|
+
}
|
|
5115
|
+
if ((input.reportType === "extcallactivity" || input.reportType === "queueavgwaittalktime" || input.reportType === "trunkactivity") && (input.time === null || input.time === "")) {
|
|
5116
|
+
ctx.addIssue({
|
|
5117
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5118
|
+
path: ["time"],
|
|
5119
|
+
message: "time is required."
|
|
5120
|
+
});
|
|
5121
|
+
}
|
|
5122
|
+
if ((input.reportType === "queueavgwaittalktime" || input.reportType === "queueperformance") && (((_a = input.queueList) == null ? void 0 : _a.length) || 0) < 0) {
|
|
5123
|
+
ctx.addIssue({
|
|
5124
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5125
|
+
path: ["queueList"],
|
|
5126
|
+
message: "queueList is required."
|
|
5127
|
+
});
|
|
5128
|
+
}
|
|
5129
|
+
if ((input.reportType === "queuesatisfaction" || input.reportType === "queueagentmisscalls") && (input.queueId === null || input.queueId === "")) {
|
|
5130
|
+
ctx.addIssue({
|
|
5131
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5132
|
+
path: ["queueId"],
|
|
5133
|
+
message: "queueId is required."
|
|
5134
|
+
});
|
|
5135
|
+
}
|
|
5136
|
+
if (input.reportType === "trunkactivity" && (((_b = input.trunkList) == null ? void 0 : _b.length) || 0) < 0) {
|
|
5137
|
+
ctx.addIssue({
|
|
5138
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5139
|
+
path: ["trunkList"],
|
|
5140
|
+
message: "trunkList is required."
|
|
5141
|
+
});
|
|
5142
|
+
}
|
|
5143
|
+
if ((input.reportType === "extcallstatistics" || input.reportType === "extcallactivity") && (((_c = input.extensionList) == null ? void 0 : _c.length) || 0) < 0) {
|
|
5144
|
+
ctx.addIssue({
|
|
5145
|
+
code: import_zod83.default.ZodIssueCode.custom,
|
|
5146
|
+
path: ["extensionList"],
|
|
5147
|
+
message: "extensionList is required."
|
|
5148
|
+
});
|
|
5149
|
+
}
|
|
5150
|
+
});
|
|
5078
5151
|
|
|
5079
5152
|
// src/telephony-cdr/index.ts
|
|
5080
5153
|
var import_core32 = require("@ts-rest/core");
|
|
5154
|
+
|
|
5155
|
+
// src/telephony-cdr/call-report.schema.ts
|
|
5156
|
+
var import_zod84 = __toESM(require("zod"));
|
|
5157
|
+
var ExtCallStatisticsList = import_zod84.default.object({
|
|
5158
|
+
/** @example "ext_num" */
|
|
5159
|
+
ext_num: import_zod84.default.string(),
|
|
5160
|
+
/** @example "ext_name" */
|
|
5161
|
+
ext_name: import_zod84.default.string(),
|
|
5162
|
+
/** @example 0 */
|
|
5163
|
+
answered_calls: import_zod84.default.number(),
|
|
5164
|
+
/** @example 0 */
|
|
5165
|
+
no_answer_calls: import_zod84.default.number(),
|
|
5166
|
+
/** @example 0 */
|
|
5167
|
+
busy_calls: import_zod84.default.number(),
|
|
5168
|
+
/** @example 0 */
|
|
5169
|
+
failed_calls: import_zod84.default.number(),
|
|
5170
|
+
/** @example 0 */
|
|
5171
|
+
voicemail_calls: import_zod84.default.number(),
|
|
5172
|
+
/** @example 0 */
|
|
5173
|
+
total_holding_time: import_zod84.default.number(),
|
|
5174
|
+
/** @example 0 */
|
|
5175
|
+
total_talking_time: import_zod84.default.number(),
|
|
5176
|
+
/** @example "src_name" */
|
|
5177
|
+
src_name: import_zod84.default.string(),
|
|
5178
|
+
/** @example 0 */
|
|
5179
|
+
total_call_count: import_zod84.default.number(),
|
|
5180
|
+
/** @example "mobile" */
|
|
5181
|
+
mobile: import_zod84.default.string()
|
|
5182
|
+
});
|
|
5183
|
+
var ExtStatistic = import_zod84.default.object({
|
|
5184
|
+
ext_num: import_zod84.default.string(),
|
|
5185
|
+
ext_name: import_zod84.default.string(),
|
|
5186
|
+
answered_calls: import_zod84.default.number(),
|
|
5187
|
+
no_answer_calls: import_zod84.default.number(),
|
|
5188
|
+
busy_calls: import_zod84.default.number(),
|
|
5189
|
+
failed_calls: import_zod84.default.number(),
|
|
5190
|
+
voicemail_calls: import_zod84.default.number(),
|
|
5191
|
+
total_holding_time: import_zod84.default.number(),
|
|
5192
|
+
total_talking_time: import_zod84.default.number(),
|
|
5193
|
+
time: import_zod84.default.number(),
|
|
5194
|
+
mobile: import_zod84.default.string()
|
|
5195
|
+
});
|
|
5196
|
+
var ExtCallActivityList = import_zod84.default.object({
|
|
5197
|
+
time: import_zod84.default.number(),
|
|
5198
|
+
answered_calls: import_zod84.default.number(),
|
|
5199
|
+
no_answer_calls: import_zod84.default.number(),
|
|
5200
|
+
busy_calls: import_zod84.default.number(),
|
|
5201
|
+
failed_calls: import_zod84.default.number(),
|
|
5202
|
+
voicemail_calls: import_zod84.default.number(),
|
|
5203
|
+
total_holding_time: import_zod84.default.number(),
|
|
5204
|
+
total_talking_time: import_zod84.default.number(),
|
|
5205
|
+
ext_statistics: import_zod84.default.array(ExtStatistic)
|
|
5206
|
+
});
|
|
5207
|
+
var TrunkList = import_zod84.default.object({
|
|
5208
|
+
trunk_name: import_zod84.default.string(),
|
|
5209
|
+
total_calls: import_zod84.default.number()
|
|
5210
|
+
});
|
|
5211
|
+
var TrunkActivityList = import_zod84.default.object({
|
|
5212
|
+
time: import_zod84.default.number(),
|
|
5213
|
+
trunk_list: import_zod84.default.array(TrunkList)
|
|
5214
|
+
});
|
|
5215
|
+
var QueueAvgWaitTalkTimeList = import_zod84.default.object({
|
|
5216
|
+
time: import_zod84.default.number(),
|
|
5217
|
+
avg_wait_time: import_zod84.default.number(),
|
|
5218
|
+
avg_talk_time: import_zod84.default.number()
|
|
5219
|
+
});
|
|
5220
|
+
var SatisfactionList = import_zod84.default.object({
|
|
5221
|
+
press_key: import_zod84.default.string(),
|
|
5222
|
+
total: import_zod84.default.number(),
|
|
5223
|
+
key_point: import_zod84.default.number().optional()
|
|
5224
|
+
});
|
|
5225
|
+
var agentListSchema = import_zod84.default.object({
|
|
5226
|
+
agent_name: import_zod84.default.string(),
|
|
5227
|
+
agent_num: import_zod84.default.string(),
|
|
5228
|
+
satisfaction_list: import_zod84.default.array(SatisfactionList).optional(),
|
|
5229
|
+
total_key: import_zod84.default.number().optional(),
|
|
5230
|
+
total_point: import_zod84.default.number().optional(),
|
|
5231
|
+
average_point: import_zod84.default.number().optional()
|
|
5232
|
+
});
|
|
5233
|
+
var QueueSatisfaction = import_zod84.default.object({
|
|
5234
|
+
queue_name: import_zod84.default.string(),
|
|
5235
|
+
queue_num: import_zod84.default.string(),
|
|
5236
|
+
satisfaction_list: import_zod84.default.array(SatisfactionList).optional(),
|
|
5237
|
+
agent_list: import_zod84.default.array(agentListSchema).optional(),
|
|
5238
|
+
total_key: import_zod84.default.number().optional(),
|
|
5239
|
+
total_point: import_zod84.default.number().optional(),
|
|
5240
|
+
average_point: import_zod84.default.number().optional()
|
|
5241
|
+
});
|
|
5242
|
+
var QueuePerformanceList = import_zod84.default.object({
|
|
5243
|
+
queue: import_zod84.default.string(),
|
|
5244
|
+
total_calls: import_zod84.default.number(),
|
|
5245
|
+
answered_calls: import_zod84.default.number(),
|
|
5246
|
+
missed_calls: import_zod84.default.number(),
|
|
5247
|
+
abandoned_calls: import_zod84.default.number(),
|
|
5248
|
+
average_waiting_time: import_zod84.default.number(),
|
|
5249
|
+
average_talking_time: import_zod84.default.number(),
|
|
5250
|
+
max_waiting_time: import_zod84.default.number(),
|
|
5251
|
+
answered_rate: import_zod84.default.number(),
|
|
5252
|
+
missed_rate: import_zod84.default.number(),
|
|
5253
|
+
abandoned_rate: import_zod84.default.number(),
|
|
5254
|
+
sla: import_zod84.default.number()
|
|
5255
|
+
});
|
|
5256
|
+
var QueueAgentMissCallsList = import_zod84.default.object({
|
|
5257
|
+
agent_name: import_zod84.default.string(),
|
|
5258
|
+
agent_num: import_zod84.default.string(),
|
|
5259
|
+
time: import_zod84.default.string(),
|
|
5260
|
+
total_wait_time: import_zod84.default.number(),
|
|
5261
|
+
src_name: import_zod84.default.string(),
|
|
5262
|
+
src_num: import_zod84.default.string(),
|
|
5263
|
+
queue_status: import_zod84.default.string(),
|
|
5264
|
+
polling_attempts: import_zod84.default.number(),
|
|
5265
|
+
missed_reason: import_zod84.default.string()
|
|
5266
|
+
});
|
|
5267
|
+
var QueueAgentInOutCallsList = import_zod84.default.object({
|
|
5268
|
+
agent_name: import_zod84.default.string(),
|
|
5269
|
+
agent_num: import_zod84.default.string(),
|
|
5270
|
+
inbound_calls: import_zod84.default.number(),
|
|
5271
|
+
inbound_duration: import_zod84.default.number(),
|
|
5272
|
+
outbound_calls: import_zod84.default.number(),
|
|
5273
|
+
outbound_duration: import_zod84.default.number(),
|
|
5274
|
+
total_calls: import_zod84.default.number(),
|
|
5275
|
+
total_duration: import_zod84.default.number(),
|
|
5276
|
+
average_talk_duration: import_zod84.default.number()
|
|
5277
|
+
});
|
|
5278
|
+
var CallReportModel = import_zod84.default.object({
|
|
5279
|
+
errcode: import_zod84.default.number(),
|
|
5280
|
+
errmsg: import_zod84.default.string(),
|
|
5281
|
+
total_number: import_zod84.default.number(),
|
|
5282
|
+
is_12hour: import_zod84.default.number().optional(),
|
|
5283
|
+
ext_call_statistics_list: import_zod84.default.array(ExtCallStatisticsList).optional(),
|
|
5284
|
+
ext_call_activity_list: import_zod84.default.array(ExtCallActivityList).optional(),
|
|
5285
|
+
trunk_activity_list: import_zod84.default.array(TrunkActivityList).optional(),
|
|
5286
|
+
queue_avg_wait_talk_time_list: import_zod84.default.array(QueueAvgWaitTalkTimeList).optional(),
|
|
5287
|
+
queue_satisfaction: QueueSatisfaction.optional(),
|
|
5288
|
+
queue_performance_list: import_zod84.default.array(QueuePerformanceList).optional(),
|
|
5289
|
+
queue_agent_miss_calls_list: import_zod84.default.array(QueueAgentMissCallsList).optional(),
|
|
5290
|
+
queue_agent_in_out_calls_list: import_zod84.default.array(QueueAgentInOutCallsList).optional(),
|
|
5291
|
+
callback_result: import_zod84.default.string(),
|
|
5292
|
+
page: import_zod84.default.number().optional(),
|
|
5293
|
+
pageSize: import_zod84.default.number().optional()
|
|
5294
|
+
});
|
|
5295
|
+
var CallReportSchema = import_zod84.default.object({
|
|
5296
|
+
errcode: import_zod84.default.number(),
|
|
5297
|
+
errmsg: import_zod84.default.string(),
|
|
5298
|
+
total_number: import_zod84.default.number(),
|
|
5299
|
+
is_12hour: import_zod84.default.number().optional(),
|
|
5300
|
+
ext_call_statistics_list: import_zod84.default.array(ExtCallStatisticsList).optional(),
|
|
5301
|
+
ext_call_activity_list: import_zod84.default.array(ExtCallActivityList).optional(),
|
|
5302
|
+
trunk_activity_list: import_zod84.default.array(TrunkActivityList).optional(),
|
|
5303
|
+
queue_avg_wait_talk_time_list: import_zod84.default.array(QueueAvgWaitTalkTimeList).optional(),
|
|
5304
|
+
queue_satisfaction: QueueSatisfaction.optional(),
|
|
5305
|
+
queue_performance_list: import_zod84.default.array(QueuePerformanceList).optional(),
|
|
5306
|
+
queue_agent_miss_calls_list: import_zod84.default.array(QueueAgentMissCallsList).optional(),
|
|
5307
|
+
queue_agent_in_out_calls_list: import_zod84.default.array(QueueAgentInOutCallsList).optional(),
|
|
5308
|
+
callback_result: import_zod84.default.string(),
|
|
5309
|
+
page: import_zod84.default.number().optional(),
|
|
5310
|
+
pageSize: import_zod84.default.number().optional()
|
|
5311
|
+
});
|
|
5312
|
+
|
|
5313
|
+
// src/telephony-cdr/index.ts
|
|
5081
5314
|
var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
5082
5315
|
{
|
|
5083
5316
|
findAll: {
|
|
@@ -5087,10 +5320,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
|
5087
5320
|
query: GetAllTelephonyCdrSchema,
|
|
5088
5321
|
responses: {
|
|
5089
5322
|
200: DefaultSuccessResponseSchema.extend({
|
|
5090
|
-
total:
|
|
5091
|
-
page:
|
|
5092
|
-
pageSize:
|
|
5093
|
-
telephonyCdrs:
|
|
5323
|
+
total: import_zod85.default.number(),
|
|
5324
|
+
page: import_zod85.default.number(),
|
|
5325
|
+
pageSize: import_zod85.default.number(),
|
|
5326
|
+
telephonyCdrs: import_zod85.default.array(TelephonyCdrSchema)
|
|
5094
5327
|
}),
|
|
5095
5328
|
401: DefaultUnauthorizedSchema
|
|
5096
5329
|
},
|
|
@@ -5103,10 +5336,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
|
5103
5336
|
query: GetAllTelephonyCdrSchema,
|
|
5104
5337
|
responses: {
|
|
5105
5338
|
200: DefaultSuccessResponseSchema.extend({
|
|
5106
|
-
total:
|
|
5107
|
-
page:
|
|
5108
|
-
pageSize:
|
|
5109
|
-
telephonyCdrs:
|
|
5339
|
+
total: import_zod85.default.number(),
|
|
5340
|
+
page: import_zod85.default.number(),
|
|
5341
|
+
pageSize: import_zod85.default.number(),
|
|
5342
|
+
telephonyCdrs: import_zod85.default.array(TelephonyCdrSchema)
|
|
5110
5343
|
}),
|
|
5111
5344
|
401: DefaultUnauthorizedSchema
|
|
5112
5345
|
},
|
|
@@ -5119,10 +5352,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
|
5119
5352
|
query: GetRecentTelephonyCdrSchema,
|
|
5120
5353
|
responses: {
|
|
5121
5354
|
200: DefaultSuccessResponseSchema.extend({
|
|
5122
|
-
total:
|
|
5123
|
-
page:
|
|
5124
|
-
pageSize:
|
|
5125
|
-
telephonyCdrs:
|
|
5355
|
+
total: import_zod85.default.number(),
|
|
5356
|
+
page: import_zod85.default.number(),
|
|
5357
|
+
pageSize: import_zod85.default.number(),
|
|
5358
|
+
telephonyCdrs: import_zod85.default.array(TelephonyCdrSchema)
|
|
5126
5359
|
}),
|
|
5127
5360
|
401: DefaultUnauthorizedSchema
|
|
5128
5361
|
},
|
|
@@ -5138,20 +5371,31 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
|
5138
5371
|
401: DefaultUnauthorizedSchema
|
|
5139
5372
|
},
|
|
5140
5373
|
summary: "Get recent telephony cdr."
|
|
5374
|
+
},
|
|
5375
|
+
yeastarCallReport: {
|
|
5376
|
+
method: "POST",
|
|
5377
|
+
path: "/yeastar_call_report",
|
|
5378
|
+
headers: DefaultHeaderSchema,
|
|
5379
|
+
body: GetYeastarCallReportSchema,
|
|
5380
|
+
responses: {
|
|
5381
|
+
200: CallReportSchema,
|
|
5382
|
+
401: DefaultUnauthorizedSchema
|
|
5383
|
+
},
|
|
5384
|
+
summary: "Get yeastar call report."
|
|
5141
5385
|
}
|
|
5142
5386
|
},
|
|
5143
5387
|
{ pathPrefix: "telephony-cdr" }
|
|
5144
5388
|
);
|
|
5145
5389
|
|
|
5146
5390
|
// src/evaluate-form/index.ts
|
|
5147
|
-
var
|
|
5391
|
+
var import_zod87 = __toESM(require("zod"));
|
|
5148
5392
|
|
|
5149
5393
|
// src/evaluate-form/validation.ts
|
|
5150
|
-
var
|
|
5151
|
-
var CreateEvaluateFormSchema =
|
|
5152
|
-
cxLogId:
|
|
5153
|
-
sentimentScore:
|
|
5154
|
-
csatScore:
|
|
5394
|
+
var import_zod86 = __toESM(require("zod"));
|
|
5395
|
+
var CreateEvaluateFormSchema = import_zod86.default.object({
|
|
5396
|
+
cxLogId: import_zod86.default.string().uuid(),
|
|
5397
|
+
sentimentScore: import_zod86.default.string().nullable().optional(),
|
|
5398
|
+
csatScore: import_zod86.default.string().nullable().optional()
|
|
5155
5399
|
});
|
|
5156
5400
|
var UpdateEvaluateFormSchema = CreateEvaluateFormSchema.partial();
|
|
5157
5401
|
|
|
@@ -5165,7 +5409,7 @@ var evaluateFormContract = (0, import_core33.initContract)().router(
|
|
|
5165
5409
|
body: CreateEvaluateFormSchema,
|
|
5166
5410
|
responses: {
|
|
5167
5411
|
201: DefaultSuccessResponseSchema.extend({
|
|
5168
|
-
message:
|
|
5412
|
+
message: import_zod87.default.string()
|
|
5169
5413
|
}),
|
|
5170
5414
|
401: DefaultUnauthorizedSchema
|
|
5171
5415
|
},
|