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