@webitel/api-services 26.8.77 → 26.8.79
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/package.json +1 -1
- package/src/api/clients/agentWorkingConditions/agentWorkingConditions.ts +74 -0
- package/src/api/clients/index.ts +1 -0
- package/src/api/clients/workingConditions/__tests__/workingConditions.spec.ts +162 -0
- package/src/api/clients/workingConditions/workingConditions.ts +31 -46
- package/src/validations/agent/agent.validations.ts +10 -0
- package/src/validations/index.ts +1 -0
- package/src/validations/workingCondition/__tests__/workingCondition.validations.spec.ts +81 -0
- package/src/validations/workingCondition/workingCondition.validations.ts +25 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/agentWorkingConditions/agentWorkingConditions.d.ts +5 -0
- package/types/api/clients/index.d.ts +1 -0
- package/types/api/clients/workingConditions/workingConditions.d.ts +1 -6
- package/types/validations/agent/agent.validations.d.ts +15 -0
- package/types/validations/index.d.ts +1 -0
- package/types/validations/workingCondition/workingCondition.validations.d.ts +19 -0
|
@@ -6,6 +6,7 @@ export * from './agentSkills/agentSkills';
|
|
|
6
6
|
export * from './agents/agentAbsence';
|
|
7
7
|
export * from './agents/agentChats';
|
|
8
8
|
export * from './agents/agents';
|
|
9
|
+
export * from './agentWorkingConditions/agentWorkingConditions';
|
|
9
10
|
export * from './auditForms/auditForms';
|
|
10
11
|
export * from './auditForms/auditRates';
|
|
11
12
|
export * from './backendProfiles/backendProfiles';
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
-
declare const getWorkingConditionsList: (params: ApiParams) => Promise<{
|
|
3
|
-
items: any;
|
|
4
|
-
next: any;
|
|
5
|
-
}>;
|
|
6
2
|
export declare const WorkingConditionsAPI: {
|
|
7
3
|
getList: (params: ApiParams) => Promise<{
|
|
8
4
|
items: any;
|
|
@@ -12,9 +8,8 @@ export declare const WorkingConditionsAPI: {
|
|
|
12
8
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
9
|
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
14
10
|
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
15
|
-
getLookup: (params:
|
|
11
|
+
getLookup: (params: ApiParams) => Promise<{
|
|
16
12
|
items: any;
|
|
17
13
|
next: any;
|
|
18
14
|
}>;
|
|
19
15
|
};
|
|
20
|
-
export {};
|
|
@@ -26,3 +26,18 @@ export declare const agentSchema: z.ZodObject<{
|
|
|
26
26
|
user?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
27
27
|
userPresenceStatus?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
|
+
/**
|
|
30
|
+
* [Claude] WFM part of the agent card, stored apart from the agent itself
|
|
31
|
+
* (`/wfm/agents/{id}/conditions`). Merge it into {@link agentSchema} only
|
|
32
|
+
* when the user has a WFM license.
|
|
33
|
+
*/
|
|
34
|
+
export declare const agentWfmConditionsSchema: z.ZodObject<{
|
|
35
|
+
workingCondition: z.ZodObject<{
|
|
36
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
pauseTemplate: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
40
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
41
|
+
name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const workingConditionSchema: z.ZodObject<{
|
|
3
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
daysOff?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
6
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
7
|
+
domainId?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
8
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
9
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
pauseDuration?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
pauseTemplate?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
shiftTemplate?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
sickLeaves?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
vacation?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
workdayHours?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
workdaysPerMonth?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
}, z.core.$strip>;
|