@webitel/api-services 26.8.63 → 26.8.65

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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/agents/agents.ts +28 -56
  3. package/src/enums/AgentStatus/AgentStatus.ts +8 -0
  4. package/src/enums/ChannelState/ChannelState.ts +16 -0
  5. package/src/enums/ChannelType/ChannelType.ts +10 -0
  6. package/src/enums/index.ts +6 -0
  7. package/src/scripts/convertDuration/convertDuration.ts +0 -6
  8. package/src/utils/formatDate.ts +2 -1
  9. package/src/validations/agent/__tests__/agent.validations.spec.ts +96 -0
  10. package/src/validations/agent/agent.validations.ts +25 -0
  11. package/src/validations/agentSubordinate/__tests__/agentSubordinate.validations.spec.ts +24 -0
  12. package/src/validations/agentSubordinate/agentSubordinate.validations.ts +7 -0
  13. package/src/validations/case/__tests__/case.validations.spec.ts +73 -0
  14. package/src/validations/case/case.validations.ts +36 -29
  15. package/src/validations/index.ts +2 -0
  16. package/types/.tsbuildinfo +1 -1
  17. package/types/enums/AgentStatus/AgentStatus.d.ts +7 -0
  18. package/types/enums/ChannelState/ChannelState.d.ts +15 -0
  19. package/types/enums/ChannelType/ChannelType.d.ts +9 -0
  20. package/types/enums/index.d.ts +4 -1
  21. package/types/gen-wire/call-service/call-service.zod.d.ts +3 -3
  22. package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +3 -3
  23. package/types/gen-wire/routing-schema-service/routing-schema-service.zod.d.ts +11 -11
  24. package/types/gen-wire/timeline/timeline.zod.d.ts +3 -3
  25. package/types/gen-wire/trigger-service/trigger-service.zod.d.ts +12 -12
  26. package/types/utils/formatDate.d.ts +2 -0
  27. package/types/validations/agent/agent.validations.d.ts +28 -0
  28. package/types/validations/agentSubordinate/agentSubordinate.validations.d.ts +7 -0
  29. package/types/validations/case/case.validations.d.ts +3 -1
  30. package/types/validations/index.d.ts +2 -0
@@ -0,0 +1,7 @@
1
+ export declare const AgentStatus: {
2
+ readonly Online: "online";
3
+ readonly Offline: "offline";
4
+ readonly Pause: "pause";
5
+ readonly BreakOut: "break_out";
6
+ };
7
+ export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
@@ -0,0 +1,15 @@
1
+ export declare const ChannelState: {
2
+ readonly Waiting: "waiting";
3
+ readonly Distribute: "distribute";
4
+ readonly Offering: "offering";
5
+ readonly Answered: "answered";
6
+ readonly Active: "active";
7
+ readonly Bridged: "bridged";
8
+ readonly Hold: "hold";
9
+ readonly Missed: "missed";
10
+ readonly WrapTime: "wrap_time";
11
+ readonly Processing: "processing";
12
+ readonly Transfer: "transfer";
13
+ readonly Form: "form";
14
+ };
15
+ export type ChannelState = (typeof ChannelState)[keyof typeof ChannelState];
@@ -0,0 +1,9 @@
1
+ export declare const ChannelType: {
2
+ readonly Call: "call";
3
+ readonly Email: "email";
4
+ readonly Chat: "chat";
5
+ readonly Job: "task";
6
+ readonly OutCall: "out_call";
7
+ readonly Im: "im";
8
+ };
9
+ export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
@@ -1,4 +1,7 @@
1
+ import { AgentStatus } from './AgentStatus/AgentStatus';
1
2
  import { CallReportingStatus } from './CallReportingStatus/CallReportingStatus';
3
+ import { ChannelState } from './ChannelState/ChannelState';
4
+ import { ChannelType } from './ChannelType/ChannelType';
2
5
  import { ChatGatewayProvider } from './ChatGatewayProvider/ChatGatewayPrivider';
3
6
  import { FormatDateMode } from './FormatDateMode/FormatDateMode';
4
7
  import { MemberStopCause } from './MemberStopCause/MemberStopCause';
@@ -10,4 +13,4 @@ import { TimeBaseScore } from './TimeBaseScore/TimeBaseScore';
10
13
  import { TypesResourceStrategy } from './TypesResourceStrategy/TypesResourceStrategy';
11
14
  import { UrlProtocol } from './UrlProtocol/UrlProtocol';
12
15
  import { UserPresenceStatus } from './UserPresenceStatus/UserPresenceStatus';
13
- export { CallReportingStatus, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
16
+ export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
@@ -489,8 +489,8 @@ export declare const SearchHistoryCallResponse: zod.ZodObject<{
489
489
  id: zod.ZodOptional<zod.ZodString>;
490
490
  state: zod.ZodDefault<zod.ZodEnum<{
491
491
  error: "error";
492
- idle: "idle";
493
492
  active: "active";
493
+ idle: "idle";
494
494
  finished: "finished";
495
495
  }>>;
496
496
  }, zod.z.core.$strip>>>;
@@ -801,8 +801,8 @@ export declare const SearchHistoryCallPostResponse: zod.ZodObject<{
801
801
  id: zod.ZodOptional<zod.ZodString>;
802
802
  state: zod.ZodDefault<zod.ZodEnum<{
803
803
  error: "error";
804
- idle: "idle";
805
804
  active: "active";
805
+ idle: "idle";
806
806
  finished: "finished";
807
807
  }>>;
808
808
  }, zod.z.core.$strip>>>;
@@ -1202,8 +1202,8 @@ export declare const PatchHistoryCallResponse: zod.ZodObject<{
1202
1202
  id: zod.ZodOptional<zod.ZodString>;
1203
1203
  state: zod.ZodDefault<zod.ZodEnum<{
1204
1204
  error: "error";
1205
- idle: "idle";
1206
1205
  active: "active";
1206
+ idle: "idle";
1207
1207
  finished: "finished";
1208
1208
  }>>;
1209
1209
  }, zod.z.core.$strip>>>;
@@ -18,9 +18,9 @@ export declare const GetTimelineQueryParams: zod.ZodObject<{
18
18
  date_from: zod.ZodOptional<zod.ZodString>;
19
19
  date_to: zod.ZodOptional<zod.ZodString>;
20
20
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
21
- chat: "chat";
22
21
  call: "call";
23
22
  email: "email";
23
+ chat: "chat";
24
24
  }>>>;
25
25
  }, zod.z.core.$strip>;
26
26
  export declare const getTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault = "file_type_empty";
@@ -136,9 +136,9 @@ export declare const GetTimelineResponse: zod.ZodObject<{
136
136
  to: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
137
137
  }, zod.z.core.$strip>>;
138
138
  type: zod.ZodDefault<zod.ZodEnum<{
139
- chat: "chat";
140
139
  call: "call";
141
140
  email: "email";
141
+ chat: "chat";
142
142
  }>>;
143
143
  }, zod.z.core.$strip>>>;
144
144
  }, zod.z.core.$strip>>>;
@@ -158,9 +158,9 @@ export declare const GetTimelineCounterResponse: zod.ZodObject<{
158
158
  export declare const GetTimelineItemInfoParams: zod.ZodObject<{
159
159
  case_id: zod.ZodString;
160
160
  type: zod.ZodEnum<{
161
- chat: "chat";
162
161
  call: "call";
163
162
  email: "email";
163
+ chat: "chat";
164
164
  }>;
165
165
  id: zod.ZodString;
166
166
  }, zod.z.core.$strip>;
@@ -17,10 +17,10 @@ export declare const SearchRoutingSchemaQueryParams: zod.ZodObject<{
17
17
  id: zod.ZodOptional<zod.ZodArray<zod.ZodInt>>;
18
18
  name: zod.ZodOptional<zod.ZodString>;
19
19
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
20
+ processing: "processing";
20
21
  chat: "chat";
21
22
  default: "default";
22
23
  voice: "voice";
23
- processing: "processing";
24
24
  service: "service";
25
25
  }>>>;
26
26
  editor: zod.ZodOptional<zod.ZodBoolean>;
@@ -43,10 +43,10 @@ export declare const SearchRoutingSchemaResponse: zod.ZodObject<{
43
43
  id: zod.ZodOptional<zod.ZodString>;
44
44
  name: zod.ZodOptional<zod.ZodString>;
45
45
  type: zod.ZodDefault<zod.ZodEnum<{
46
+ processing: "processing";
46
47
  chat: "chat";
47
48
  default: "default";
48
49
  voice: "voice";
49
- processing: "processing";
50
50
  service: "service";
51
51
  }>>;
52
52
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -70,10 +70,10 @@ export declare const CreateRoutingSchemaBody: zod.ZodObject<{
70
70
  editor: zod.ZodOptional<zod.ZodBoolean>;
71
71
  name: zod.ZodOptional<zod.ZodString>;
72
72
  type: zod.ZodDefault<zod.ZodEnum<{
73
+ processing: "processing";
73
74
  chat: "chat";
74
75
  default: "default";
75
76
  voice: "voice";
76
- processing: "processing";
77
77
  service: "service";
78
78
  }>>;
79
79
  }, zod.z.core.$strip>;
@@ -93,10 +93,10 @@ export declare const CreateRoutingSchemaResponse: zod.ZodObject<{
93
93
  id: zod.ZodOptional<zod.ZodString>;
94
94
  name: zod.ZodOptional<zod.ZodString>;
95
95
  type: zod.ZodDefault<zod.ZodEnum<{
96
+ processing: "processing";
96
97
  chat: "chat";
97
98
  default: "default";
98
99
  voice: "voice";
99
- processing: "processing";
100
100
  service: "service";
101
101
  }>>;
102
102
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -115,10 +115,10 @@ export declare const SearchRoutingSchemaTagsQueryParams: zod.ZodObject<{
115
115
  sort: zod.ZodOptional<zod.ZodString>;
116
116
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
117
117
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
118
+ processing: "processing";
118
119
  chat: "chat";
119
120
  default: "default";
120
121
  voice: "voice";
121
- processing: "processing";
122
122
  service: "service";
123
123
  }>>>;
124
124
  }, zod.z.core.$strip>;
@@ -154,10 +154,10 @@ export declare const DeleteRoutingSchemaResponse: zod.ZodObject<{
154
154
  id: zod.ZodOptional<zod.ZodString>;
155
155
  name: zod.ZodOptional<zod.ZodString>;
156
156
  type: zod.ZodDefault<zod.ZodEnum<{
157
+ processing: "processing";
157
158
  chat: "chat";
158
159
  default: "default";
159
160
  voice: "voice";
160
- processing: "processing";
161
161
  service: "service";
162
162
  }>>;
163
163
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -191,10 +191,10 @@ export declare const ReadRoutingSchemaResponse: zod.ZodObject<{
191
191
  id: zod.ZodOptional<zod.ZodString>;
192
192
  name: zod.ZodOptional<zod.ZodString>;
193
193
  type: zod.ZodDefault<zod.ZodEnum<{
194
+ processing: "processing";
194
195
  chat: "chat";
195
196
  default: "default";
196
197
  voice: "voice";
197
- processing: "processing";
198
198
  service: "service";
199
199
  }>>;
200
200
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -221,10 +221,10 @@ export declare const PatchRoutingSchemaBody: zod.ZodObject<{
221
221
  name: zod.ZodOptional<zod.ZodString>;
222
222
  note: zod.ZodOptional<zod.ZodString>;
223
223
  type: zod.ZodDefault<zod.ZodEnum<{
224
+ processing: "processing";
224
225
  chat: "chat";
225
226
  default: "default";
226
227
  voice: "voice";
227
- processing: "processing";
228
228
  service: "service";
229
229
  }>>;
230
230
  }, zod.z.core.$strip>;
@@ -244,10 +244,10 @@ export declare const PatchRoutingSchemaResponse: zod.ZodObject<{
244
244
  id: zod.ZodOptional<zod.ZodString>;
245
245
  name: zod.ZodOptional<zod.ZodString>;
246
246
  type: zod.ZodDefault<zod.ZodEnum<{
247
+ processing: "processing";
247
248
  chat: "chat";
248
249
  default: "default";
249
250
  voice: "voice";
250
- processing: "processing";
251
251
  service: "service";
252
252
  }>>;
253
253
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -273,10 +273,10 @@ export declare const UpdateRoutingSchemaBody: zod.ZodObject<{
273
273
  name: zod.ZodOptional<zod.ZodString>;
274
274
  note: zod.ZodOptional<zod.ZodString>;
275
275
  type: zod.ZodDefault<zod.ZodEnum<{
276
+ processing: "processing";
276
277
  chat: "chat";
277
278
  default: "default";
278
279
  voice: "voice";
279
- processing: "processing";
280
280
  service: "service";
281
281
  }>>;
282
282
  }, zod.z.core.$strip>;
@@ -296,10 +296,10 @@ export declare const UpdateRoutingSchemaResponse: zod.ZodObject<{
296
296
  id: zod.ZodOptional<zod.ZodString>;
297
297
  name: zod.ZodOptional<zod.ZodString>;
298
298
  type: zod.ZodDefault<zod.ZodEnum<{
299
+ processing: "processing";
299
300
  chat: "chat";
300
301
  default: "default";
301
302
  voice: "voice";
302
- processing: "processing";
303
303
  service: "service";
304
304
  }>>;
305
305
  updated_at: zod.ZodOptional<zod.ZodString>;
@@ -18,9 +18,9 @@ export declare const GetTimelineTimelineQueryParams: zod.ZodObject<{
18
18
  date_from: zod.ZodOptional<zod.ZodString>;
19
19
  date_to: zod.ZodOptional<zod.ZodString>;
20
20
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
21
- chat: "chat";
22
21
  call: "call";
23
22
  email: "email";
23
+ chat: "chat";
24
24
  }>>>;
25
25
  }, zod.z.core.$strip>;
26
26
  export declare const getTimelineTimelineResponseDaysItemItemsItemCallFilesItemTypeDefault = "file_type_empty";
@@ -146,9 +146,9 @@ export declare const GetTimelineTimelineResponse: zod.ZodObject<{
146
146
  to: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
147
147
  }, zod.z.core.$strip>>;
148
148
  type: zod.ZodDefault<zod.ZodEnum<{
149
- chat: "chat";
150
149
  call: "call";
151
150
  email: "email";
151
+ chat: "chat";
152
152
  }>>;
153
153
  }, zod.z.core.$strip>>>;
154
154
  }, zod.z.core.$strip>>>;
@@ -172,9 +172,9 @@ timeline communication (call | chat | email), fetched on-demand.
172
172
  export declare const GetTimelineItemInfoTimelineParams: zod.ZodObject<{
173
173
  contact_id: zod.ZodString;
174
174
  type: zod.ZodEnum<{
175
- chat: "chat";
176
175
  call: "call";
177
176
  email: "email";
177
+ chat: "chat";
178
178
  }>;
179
179
  id: zod.ZodString;
180
180
  }, zod.z.core.$strip>;
@@ -36,9 +36,9 @@ export declare const SearchTriggerResponse: zod.ZodObject<{
36
36
  id: zod.ZodOptional<zod.ZodInt>;
37
37
  name: zod.ZodOptional<zod.ZodString>;
38
38
  object: zod.ZodDefault<zod.ZodEnum<{
39
+ call: "call";
39
40
  cases: "cases";
40
41
  case_comments: "case_comments";
41
- call: "call";
42
42
  empty_trigger_object: "empty_trigger_object";
43
43
  case_files: "case_files";
44
44
  case_links: "case_links";
@@ -82,9 +82,9 @@ export declare const CreateTriggerBody: zod.ZodObject<{
82
82
  expression: zod.ZodOptional<zod.ZodString>;
83
83
  name: zod.ZodOptional<zod.ZodString>;
84
84
  object: zod.ZodDefault<zod.ZodEnum<{
85
+ call: "call";
85
86
  cases: "cases";
86
87
  case_comments: "case_comments";
87
- call: "call";
88
88
  empty_trigger_object: "empty_trigger_object";
89
89
  case_files: "case_files";
90
90
  case_links: "case_links";
@@ -124,9 +124,9 @@ export declare const CreateTriggerResponse: zod.ZodObject<{
124
124
  id: zod.ZodOptional<zod.ZodInt>;
125
125
  name: zod.ZodOptional<zod.ZodString>;
126
126
  object: zod.ZodDefault<zod.ZodEnum<{
127
+ call: "call";
127
128
  cases: "cases";
128
129
  case_comments: "case_comments";
129
- call: "call";
130
130
  empty_trigger_object: "empty_trigger_object";
131
131
  case_files: "case_files";
132
132
  case_links: "case_links";
@@ -172,9 +172,9 @@ export declare const DeleteTriggerResponse: zod.ZodObject<{
172
172
  id: zod.ZodOptional<zod.ZodInt>;
173
173
  name: zod.ZodOptional<zod.ZodString>;
174
174
  object: zod.ZodDefault<zod.ZodEnum<{
175
+ call: "call";
175
176
  cases: "cases";
176
177
  case_comments: "case_comments";
177
- call: "call";
178
178
  empty_trigger_object: "empty_trigger_object";
179
179
  case_files: "case_files";
180
180
  case_links: "case_links";
@@ -220,9 +220,9 @@ export declare const ReadTriggerResponse: zod.ZodObject<{
220
220
  id: zod.ZodOptional<zod.ZodInt>;
221
221
  name: zod.ZodOptional<zod.ZodString>;
222
222
  object: zod.ZodDefault<zod.ZodEnum<{
223
+ call: "call";
223
224
  cases: "cases";
224
225
  case_comments: "case_comments";
225
- call: "call";
226
226
  empty_trigger_object: "empty_trigger_object";
227
227
  case_files: "case_files";
228
228
  case_links: "case_links";
@@ -265,9 +265,9 @@ export declare const PatchTriggerBody: zod.ZodObject<{
265
265
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
266
266
  name: zod.ZodOptional<zod.ZodString>;
267
267
  object: zod.ZodDefault<zod.ZodEnum<{
268
+ call: "call";
268
269
  cases: "cases";
269
270
  case_comments: "case_comments";
270
- call: "call";
271
271
  empty_trigger_object: "empty_trigger_object";
272
272
  case_files: "case_files";
273
273
  case_links: "case_links";
@@ -307,9 +307,9 @@ export declare const PatchTriggerResponse: zod.ZodObject<{
307
307
  id: zod.ZodOptional<zod.ZodInt>;
308
308
  name: zod.ZodOptional<zod.ZodString>;
309
309
  object: zod.ZodDefault<zod.ZodEnum<{
310
+ call: "call";
310
311
  cases: "cases";
311
312
  case_comments: "case_comments";
312
- call: "call";
313
313
  empty_trigger_object: "empty_trigger_object";
314
314
  case_files: "case_files";
315
315
  case_links: "case_links";
@@ -354,9 +354,9 @@ export declare const UpdateTriggerBody: zod.ZodObject<{
354
354
  expression: zod.ZodOptional<zod.ZodString>;
355
355
  name: zod.ZodOptional<zod.ZodString>;
356
356
  object: zod.ZodDefault<zod.ZodEnum<{
357
+ call: "call";
357
358
  cases: "cases";
358
359
  case_comments: "case_comments";
359
- call: "call";
360
360
  empty_trigger_object: "empty_trigger_object";
361
361
  case_files: "case_files";
362
362
  case_links: "case_links";
@@ -396,9 +396,9 @@ export declare const UpdateTriggerResponse: zod.ZodObject<{
396
396
  id: zod.ZodOptional<zod.ZodInt>;
397
397
  name: zod.ZodOptional<zod.ZodString>;
398
398
  object: zod.ZodDefault<zod.ZodEnum<{
399
+ call: "call";
399
400
  cases: "cases";
400
401
  case_comments: "case_comments";
401
- call: "call";
402
402
  empty_trigger_object: "empty_trigger_object";
403
403
  case_files: "case_files";
404
404
  case_links: "case_links";
@@ -437,8 +437,8 @@ export declare const SearchTriggerJobQueryParams: zod.ZodObject<{
437
437
  'duration.to': zod.ZodOptional<zod.ZodString>;
438
438
  state: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
439
439
  error: "error";
440
- idle: "idle";
441
440
  active: "active";
441
+ idle: "idle";
442
442
  done: "done";
443
443
  }>>>;
444
444
  }, zod.z.core.$strip>;
@@ -451,8 +451,8 @@ export declare const SearchTriggerJobResponse: zod.ZodObject<{
451
451
  started_at: zod.ZodOptional<zod.ZodString>;
452
452
  state: zod.ZodDefault<zod.ZodEnum<{
453
453
  error: "error";
454
- idle: "idle";
455
454
  active: "active";
455
+ idle: "idle";
456
456
  done: "done";
457
457
  }>>;
458
458
  stopped_at: zod.ZodOptional<zod.ZodString>;
@@ -477,8 +477,8 @@ export declare const CreateTriggerJobResponse: zod.ZodObject<{
477
477
  started_at: zod.ZodOptional<zod.ZodString>;
478
478
  state: zod.ZodDefault<zod.ZodEnum<{
479
479
  error: "error";
480
- idle: "idle";
481
480
  active: "active";
481
+ idle: "idle";
482
482
  done: "done";
483
483
  }>>;
484
484
  stopped_at: zod.ZodOptional<zod.ZodString>;
@@ -1,4 +1,6 @@
1
1
  import type { FormatDateMode } from '../enums/FormatDateMode/FormatDateMode';
2
+ /** The operator's chosen time zone, falling back to the browser's. */
3
+ export declare function getUserTimeZone(): string;
2
4
  export declare function formatDate(date: string | number | Date | null | undefined, to: (typeof FormatDateMode)[keyof typeof FormatDateMode], { timezone, }?: {
3
5
  timezone?: string;
4
6
  }): string;
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ export declare const agentSchema: z.ZodObject<{
3
+ allowChannels?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
4
+ allowSetScreenControl?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
5
+ auditor?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ channel?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ chatCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ extension?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ extraChatCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ greetingMedia?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
12
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
13
+ isSupervisor?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
14
+ lastStatusChange?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
+ progressiveCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
17
+ region?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
18
+ screenControl?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
+ skills?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
20
+ status?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
21
+ statusDuration?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
22
+ statusType?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
23
+ supervisor?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
24
+ taskCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
25
+ team?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
26
+ user?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
27
+ userPresenceStatus?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
28
+ }, z.core.$strip>;
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const agentSubordinateSchema: z.ZodObject<{
3
+ agent: z.ZodObject<{
4
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ }, z.core.$strip>;
@@ -29,4 +29,6 @@ export declare const caseSchema: z.ZodObject<{
29
29
  }, z.core.$loose>>>;
30
30
  closeResult: z.ZodDefault<z.ZodString>;
31
31
  }, z.core.$strip>;
32
- export declare const refineCaseCloseFields: (data: Pick<z.infer<typeof caseSchema>, "statusCondition" | "closeReason" | "closeResult">, ctx: z.RefinementCtx) => void;
32
+ type CaseCloseFields = Pick<z.infer<typeof caseSchema>, 'statusCondition' | 'closeReason' | 'closeResult'>;
33
+ export declare const caseCloseFieldsChecks: z.core.$ZodCheck<CaseCloseFields>[];
34
+ export {};
@@ -5,8 +5,10 @@ export * from './_shared/lookup.validations';
5
5
  export * from './_shared/phoneNumber.validations';
6
6
  export * from './_shared/variablePair.validations';
7
7
  export * from './adjunctType/adjunctType.validations';
8
+ export * from './agent/agent.validations';
8
9
  export * from './agentPauseCause/agentPauseCause.validations';
9
10
  export * from './agentSkill/agentSkill.validations';
11
+ export * from './agentSubordinate/agentSubordinate.validations';
10
12
  export * from './auditForm/auditForm.validations';
11
13
  export * from './bucket/bucket.validations';
12
14
  export * from './calendar/calendar.validations';