@kl1/contracts 1.3.49 → 1.3.51

Sign up to get free protection for your applications and to get access to all the features.
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
- customFields: z52.array(CustomFieldQueryParamsSchema),
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
- 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
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
- summary: "Export cx-logs"
4149
+ 401: DefaultUnauthorizedSchema
4166
4150
  },
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"
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
- 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
- }
4162
+ query: GetAllCxLogQueryParamsSchema.extend({
4163
+ fileExtension: ExportFileExtensionSchema
4164
+ }),
4165
+ summary: "Export cx-logs"
4198
4166
  },
4199
- { pathPrefix: "ms" }
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";