@webitel/api-services 26.12.12 → 26.12.14
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/skills/skillAgents.ts +18 -3
- package/src/validations/communicationType/__tests__/communicationType.validations.spec.ts +51 -0
- package/src/validations/communicationType/communicationType.validations.ts +14 -0
- package/src/validations/index.ts +2 -0
- package/src/validations/skill/__tests__/skill.validations.spec.ts +32 -0
- package/src/validations/skill/skill.validations.ts +9 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/skills/skillAgents.d.ts +6 -2
- package/types/validations/communicationType/communicationType.validations.d.ts +10 -0
- package/types/validations/index.d.ts +2 -0
- package/types/validations/skill/skill.validations.d.ts +13 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams,
|
|
1
|
+
import type { ApiId, ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
2
|
export declare const SkillAgentsAPI: {
|
|
3
3
|
getList: (params: ApiParams) => Promise<{
|
|
4
4
|
items: any;
|
|
@@ -7,7 +7,11 @@ export declare const SkillAgentsAPI: {
|
|
|
7
7
|
}>;
|
|
8
8
|
get: ({ itemId: id }: NestedGetItemParams) => Promise<any>;
|
|
9
9
|
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
10
|
-
patch: ({ parentId, changes, id, }:
|
|
10
|
+
patch: ({ parentId, changes, id, }: {
|
|
11
|
+
parentId?: ApiId;
|
|
12
|
+
changes?: ApiParams;
|
|
13
|
+
id?: ApiId | ApiId[];
|
|
14
|
+
}) => Promise<any>;
|
|
11
15
|
update: ({ itemId: id, itemInstance, }: UpdateItemParams) => Promise<any>;
|
|
12
16
|
delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
|
|
13
17
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const communicationTypeSchema: z.ZodObject<{
|
|
3
|
+
channel?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
code?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
default?: 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
|
+
}, z.core.$strip>;
|
|
@@ -25,6 +25,7 @@ export * from './caseServiceCatalog/caseServiceCatalog.validations';
|
|
|
25
25
|
export * from './caseSource/caseSource.validations';
|
|
26
26
|
export * from './caseStatus/caseStatus.validations';
|
|
27
27
|
export * from './caseStatusCondition/caseStatusCondition.validations';
|
|
28
|
+
export * from './communicationType/communicationType.validations';
|
|
28
29
|
export * from './contact/contact.validations';
|
|
29
30
|
export * from './contactEmail/contactEmail.validations';
|
|
30
31
|
export * from './contactGroup/contactGroup.validations';
|
|
@@ -51,6 +52,7 @@ export * from './resourceDisplay/resourceDisplay.validations';
|
|
|
51
52
|
export * from './resourceGroup/resourceGroup.validations';
|
|
52
53
|
export * from './resourceInGroup/resourceInGroup.validations';
|
|
53
54
|
export * from './shiftTemplate/shiftTemplate.validations';
|
|
55
|
+
export * from './skill/skill.validations';
|
|
54
56
|
export * from './sla/sla.validations';
|
|
55
57
|
export * from './slaCondition/slaCondition.validations';
|
|
56
58
|
export * from './team/team.validations';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const skillSchema: z.ZodObject<{
|
|
3
|
+
activeAgents?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
createdBy?: 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
|
+
totalAgents?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
}, z.core.$strip>;
|