@kl1/contracts 1.3.49 → 1.3.50

Sign up to get free protection for your applications and to get access to all the features.
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
- 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)
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
- summary: "Export cx-logs"
4148
+ 401: DefaultUnauthorizedSchema
4166
4149
  },
4167
- syncSla: {
4168
- method: "POST",
4169
- path: "/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"
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
- updateSla: {
4180
- method: "POST",
4181
- path: "/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
- }
4161
+ query: GetAllCxLogQueryParamsSchema.extend({
4162
+ fileExtension: ExportFileExtensionSchema
4163
+ }),
4164
+ summary: "Export cx-logs"
4198
4165
  },
4199
- { pathPrefix: "ms" }
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";