@kl1/contracts 1.3.49 → 1.3.51
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/api-contracts/src/contract.d.ts +76 -30
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +76 -30
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/validation.d.ts +26 -3
- package/dist/api-contracts/src/cx-log/validation.d.ts.map +1 -1
- package/dist/index.js +60 -62
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -62
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -4126,78 +4126,76 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
|
|
4126
4126
|
address: z52.string(),
|
4127
4127
|
company: z52.array(z52.string()),
|
4128
4128
|
// Custom fields
|
4129
|
-
|
4129
|
+
contactCustomFields: z52.array(CustomFieldQueryParamsSchema),
|
4130
|
+
wrapUpFormCustomFields: z52.array(CustomFieldQueryParamsSchema),
|
4130
4131
|
// Date filter
|
4131
4132
|
selectedDate: z52.string(),
|
4132
4133
|
uid: z52.string()
|
4133
4134
|
}).partial();
|
4134
4135
|
|
4135
4136
|
// src/cx-log/index.ts
|
4136
|
-
var cxLogContract = initContract12().router(
|
4137
|
-
{
|
4138
|
-
|
4139
|
-
|
4140
|
-
|
4141
|
-
|
4142
|
-
|
4143
|
-
|
4144
|
-
|
4145
|
-
|
4146
|
-
|
4147
|
-
cxLogs: z53.array(CxLogSchemaWithRelations)
|
4148
|
-
}),
|
4149
|
-
401: DefaultUnauthorizedSchema
|
4150
|
-
},
|
4151
|
-
query: GetAllCxLogQueryParamsSchema,
|
4152
|
-
summary: "Get all cx-logs"
|
4153
|
-
},
|
4154
|
-
export: {
|
4155
|
-
method: "GET",
|
4156
|
-
path: "/cx-logs/export",
|
4157
|
-
headers: DefaultHeaderSchema,
|
4158
|
-
responses: {
|
4159
|
-
200: null,
|
4160
|
-
401: DefaultUnauthorizedSchema
|
4161
|
-
},
|
4162
|
-
query: GetAllCxLogQueryParamsSchema.extend({
|
4163
|
-
fileExtension: ExportFileExtensionSchema
|
4137
|
+
var cxLogContract = initContract12().router({
|
4138
|
+
findAll: {
|
4139
|
+
method: "GET",
|
4140
|
+
path: "/cxs/cx-logs",
|
4141
|
+
headers: DefaultHeaderSchema,
|
4142
|
+
responses: {
|
4143
|
+
200: DefaultSuccessResponseSchema.extend({
|
4144
|
+
total: z53.number(),
|
4145
|
+
page: z53.number(),
|
4146
|
+
pageSize: z53.number(),
|
4147
|
+
cxLogs: z53.array(CxLogSchemaWithRelations)
|
4164
4148
|
}),
|
4165
|
-
|
4149
|
+
401: DefaultUnauthorizedSchema
|
4166
4150
|
},
|
4167
|
-
|
4168
|
-
|
4169
|
-
|
4170
|
-
|
4171
|
-
|
4172
|
-
|
4173
|
-
|
4174
|
-
|
4175
|
-
|
4176
|
-
|
4177
|
-
summary: "Export cx-logs"
|
4151
|
+
query: GetAllCxLogQueryParamsSchema,
|
4152
|
+
summary: "Get all cx-logs"
|
4153
|
+
},
|
4154
|
+
export: {
|
4155
|
+
method: "GET",
|
4156
|
+
path: "/ms/cx-logs/export",
|
4157
|
+
headers: DefaultHeaderSchema,
|
4158
|
+
responses: {
|
4159
|
+
200: null,
|
4160
|
+
401: DefaultUnauthorizedSchema
|
4178
4161
|
},
|
4179
|
-
|
4180
|
-
|
4181
|
-
|
4182
|
-
|
4183
|
-
// biome-ignore lint/style/useNamingConvention: <explanation>
|
4184
|
-
"x-tenant": z53.string({ required_error: "Tenant id is required" }),
|
4185
|
-
"x-code": z53.string().uuid().optional()
|
4186
|
-
}),
|
4187
|
-
responses: {
|
4188
|
-
200: null,
|
4189
|
-
403: DefaultUnauthorizedSchema,
|
4190
|
-
404: DefaultNotFoundSchema,
|
4191
|
-
500: DefaultErrorResponseSchema
|
4192
|
-
},
|
4193
|
-
body: z53.object({
|
4194
|
-
roomId: z53.string().uuid(),
|
4195
|
-
slaStatus: z53.enum(["meet", "unmeet", "-"])
|
4196
|
-
})
|
4197
|
-
}
|
4162
|
+
query: GetAllCxLogQueryParamsSchema.extend({
|
4163
|
+
fileExtension: ExportFileExtensionSchema
|
4164
|
+
}),
|
4165
|
+
summary: "Export cx-logs"
|
4198
4166
|
},
|
4199
|
-
|
4200
|
-
|
4167
|
+
syncSla: {
|
4168
|
+
method: "POST",
|
4169
|
+
path: "/ms/cx-logs/sync-sla",
|
4170
|
+
headers: DefaultHeaderSchema,
|
4171
|
+
responses: {
|
4172
|
+
200: null,
|
4173
|
+
401: DefaultUnauthorizedSchema,
|
4174
|
+
500: DefaultErrorResponseSchema
|
4175
|
+
},
|
4176
|
+
body: null,
|
4177
|
+
summary: "Export cx-logs"
|
4178
|
+
},
|
4179
|
+
updateSla: {
|
4180
|
+
method: "POST",
|
4181
|
+
path: "/ms/cx-logs",
|
4182
|
+
headers: z53.object({
|
4183
|
+
// biome-ignore lint/style/useNamingConvention: <explanation>
|
4184
|
+
"x-tenant": z53.string({ required_error: "Tenant id is required" }),
|
4185
|
+
"x-code": z53.string().uuid().optional()
|
4186
|
+
}),
|
4187
|
+
responses: {
|
4188
|
+
200: null,
|
4189
|
+
403: DefaultUnauthorizedSchema,
|
4190
|
+
404: DefaultNotFoundSchema,
|
4191
|
+
500: DefaultErrorResponseSchema
|
4192
|
+
},
|
4193
|
+
body: z53.object({
|
4194
|
+
roomId: z53.string().uuid(),
|
4195
|
+
slaStatus: z53.enum(["meet", "unmeet", "-"])
|
4196
|
+
})
|
4197
|
+
}
|
4198
|
+
});
|
4201
4199
|
|
4202
4200
|
// src/dashboard/index.ts
|
4203
4201
|
import { initContract as initContract13 } from "@ts-rest/core";
|