@kl1/contracts 1.0.42 → 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 +273 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +273 -24
- 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 +25 -15
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +18 -53
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +4321 -237
- 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/messenger/index.d.ts +0 -35
- package/dist/src/messenger/index.d.ts.map +1 -1
- 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
|
});
|
@@ -1163,7 +1165,7 @@ var MessageAttachmentSchema = import_zod29.default.object({
|
|
1163
1165
|
fileKey: import_zod29.default.string(),
|
1164
1166
|
fileName: import_zod29.default.string(),
|
1165
1167
|
fileSize: import_zod29.default.number(),
|
1166
|
-
url: import_zod29.default.string(),
|
1168
|
+
url: import_zod29.default.string().nullable(),
|
1167
1169
|
fileType: import_zod29.default.string(),
|
1168
1170
|
thumbnailUrl: import_zod29.default.string().optional()
|
1169
1171
|
});
|
@@ -1177,7 +1179,7 @@ var SendMessageSchema = import_zod29.default.object({
|
|
1177
1179
|
message: import_zod29.default.string().optional(),
|
1178
1180
|
messageAttachments: MessageAttachmentSchema.optional(),
|
1179
1181
|
user: UserSchema.optional(),
|
1180
|
-
sticker: StickerSchema
|
1182
|
+
sticker: StickerSchema.optional()
|
1181
1183
|
});
|
1182
1184
|
var SolveRoomSchema = import_zod29.default.object({
|
1183
1185
|
roomId: import_zod29.default.string(),
|
@@ -1250,7 +1252,12 @@ var SendMessageToPlatformSchema = import_zod29.default.object({
|
|
1250
1252
|
url: import_zod29.default.string().optional(),
|
1251
1253
|
previewUrl: import_zod29.default.string().optional(),
|
1252
1254
|
imageSetId: import_zod29.default.string().optional(),
|
1253
|
-
upload:
|
1255
|
+
upload: import_zod29.default.object({
|
1256
|
+
bucketName: import_zod29.default.string(),
|
1257
|
+
fileName: import_zod29.default.string(),
|
1258
|
+
fileSize: import_zod29.default.number(),
|
1259
|
+
fileKey: import_zod29.default.string()
|
1260
|
+
}).optional(),
|
1254
1261
|
sender: import_zod29.default.object({
|
1255
1262
|
name: import_zod29.default.string(),
|
1256
1263
|
email: import_zod29.default.string().email(),
|
@@ -1372,6 +1379,7 @@ var mainChatContract = (0, import_core6.initContract)().router(
|
|
1372
1379
|
path: "/message",
|
1373
1380
|
body: SendMessageSchema,
|
1374
1381
|
responses: {
|
1382
|
+
422: DefaultErrorResponseSchema,
|
1375
1383
|
500: DefaultErrorResponseSchema
|
1376
1384
|
},
|
1377
1385
|
summary: "Send message to room"
|
@@ -5027,7 +5035,7 @@ var activityLogContract = (0, import_core31.initContract)().router(
|
|
5027
5035
|
);
|
5028
5036
|
|
5029
5037
|
// src/telephony-cdr/index.ts
|
5030
|
-
var
|
5038
|
+
var import_zod85 = __toESM(require("zod"));
|
5031
5039
|
|
5032
5040
|
// src/telephony-cdr/validation.ts
|
5033
5041
|
var import_zod83 = __toESM(require("zod"));
|
@@ -5070,9 +5078,239 @@ var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
|
|
5070
5078
|
notes: import_zod83.default.string().optional()
|
5071
5079
|
});
|
5072
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
|
+
});
|
5073
5151
|
|
5074
5152
|
// src/telephony-cdr/index.ts
|
5075
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
|
5076
5314
|
var telephonyCdrContract = (0, import_core32.initContract)().router(
|
5077
5315
|
{
|
5078
5316
|
findAll: {
|
@@ -5082,10 +5320,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
5082
5320
|
query: GetAllTelephonyCdrSchema,
|
5083
5321
|
responses: {
|
5084
5322
|
200: DefaultSuccessResponseSchema.extend({
|
5085
|
-
total:
|
5086
|
-
page:
|
5087
|
-
pageSize:
|
5088
|
-
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)
|
5089
5327
|
}),
|
5090
5328
|
401: DefaultUnauthorizedSchema
|
5091
5329
|
},
|
@@ -5098,10 +5336,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
5098
5336
|
query: GetAllTelephonyCdrSchema,
|
5099
5337
|
responses: {
|
5100
5338
|
200: DefaultSuccessResponseSchema.extend({
|
5101
|
-
total:
|
5102
|
-
page:
|
5103
|
-
pageSize:
|
5104
|
-
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)
|
5105
5343
|
}),
|
5106
5344
|
401: DefaultUnauthorizedSchema
|
5107
5345
|
},
|
@@ -5114,10 +5352,10 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
5114
5352
|
query: GetRecentTelephonyCdrSchema,
|
5115
5353
|
responses: {
|
5116
5354
|
200: DefaultSuccessResponseSchema.extend({
|
5117
|
-
total:
|
5118
|
-
page:
|
5119
|
-
pageSize:
|
5120
|
-
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)
|
5121
5359
|
}),
|
5122
5360
|
401: DefaultUnauthorizedSchema
|
5123
5361
|
},
|
@@ -5133,20 +5371,31 @@ var telephonyCdrContract = (0, import_core32.initContract)().router(
|
|
5133
5371
|
401: DefaultUnauthorizedSchema
|
5134
5372
|
},
|
5135
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."
|
5136
5385
|
}
|
5137
5386
|
},
|
5138
5387
|
{ pathPrefix: "telephony-cdr" }
|
5139
5388
|
);
|
5140
5389
|
|
5141
5390
|
// src/evaluate-form/index.ts
|
5142
|
-
var
|
5391
|
+
var import_zod87 = __toESM(require("zod"));
|
5143
5392
|
|
5144
5393
|
// src/evaluate-form/validation.ts
|
5145
|
-
var
|
5146
|
-
var CreateEvaluateFormSchema =
|
5147
|
-
cxLogId:
|
5148
|
-
sentimentScore:
|
5149
|
-
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()
|
5150
5399
|
});
|
5151
5400
|
var UpdateEvaluateFormSchema = CreateEvaluateFormSchema.partial();
|
5152
5401
|
|
@@ -5160,7 +5409,7 @@ var evaluateFormContract = (0, import_core33.initContract)().router(
|
|
5160
5409
|
body: CreateEvaluateFormSchema,
|
5161
5410
|
responses: {
|
5162
5411
|
201: DefaultSuccessResponseSchema.extend({
|
5163
|
-
message:
|
5412
|
+
message: import_zod87.default.string()
|
5164
5413
|
}),
|
5165
5414
|
401: DefaultUnauthorizedSchema
|
5166
5415
|
},
|