@webitel/api-services 0.1.65 → 0.1.67
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/contactGroups/contactGroups.ts +57 -58
- package/src/api/clients/dynamicConditions/dynamicConditions.ts +179 -0
- package/src/api/clients/dynamicGroups/dynamicGroups.ts +191 -0
- package/src/api/clients/index.ts +2 -0
- package/src/api/clients/slaConditions/slaConditions.ts +50 -66
- package/src/api/clients/slas/slas.ts +30 -43
- package/src/validations/_shared/duration.validations.ts +7 -0
- package/src/validations/contactGroup/contactGroup.validations.ts +34 -0
- package/src/validations/contactGroupCondition/contactGroupCondition.validations.ts +15 -0
- package/src/validations/index.ts +6 -0
- package/src/validations/sla/sla.validations.ts +49 -0
- package/src/validations/slaCondition/slaCondition.validations.ts +12 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/contactGroups/contactGroups.d.ts +3 -3
- package/types/api/clients/dynamicConditions/dynamicConditions.d.ts +27 -0
- package/types/api/clients/dynamicGroups/dynamicGroups.d.ts +27 -0
- package/types/api/clients/index.d.ts +2 -0
- package/types/api/clients/slaConditions/slaConditions.d.ts +5 -2
- package/types/validations/_shared/duration.validations.d.ts +2 -0
- package/types/validations/contactGroup/contactGroup.validations.d.ts +28 -0
- package/types/validations/contactGroupCondition/contactGroupCondition.validations.d.ts +7 -0
- package/types/validations/index.d.ts +6 -0
- package/types/validations/sla/sla.validations.d.ts +15 -0
- package/types/validations/slaCondition/slaCondition.validations.d.ts +13 -0
|
@@ -25,12 +25,12 @@ export declare const ContactGroupsAPI: {
|
|
|
25
25
|
next: any;
|
|
26
26
|
}>;
|
|
27
27
|
addContactsToGroups: ({ contactIds, groupIds, }: {
|
|
28
|
-
contactIds:
|
|
29
|
-
groupIds:
|
|
28
|
+
contactIds: ApiId[];
|
|
29
|
+
groupIds: ApiId[];
|
|
30
30
|
}) => Promise<any>;
|
|
31
31
|
removeContactsFromGroup: ({ id, contactIds, }: {
|
|
32
32
|
id: ApiId;
|
|
33
|
-
contactIds:
|
|
33
|
+
contactIds: ApiId[];
|
|
34
34
|
}) => Promise<any>;
|
|
35
35
|
};
|
|
36
36
|
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const DynamicConditionsAPI: {
|
|
2
|
+
getList: ({ parentId, ...params }: {
|
|
3
|
+
parentId: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
get: ({ itemId: id }: {
|
|
10
|
+
itemId: string;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance, parentId, }: {
|
|
13
|
+
itemInstance: Record<string, unknown>;
|
|
14
|
+
parentId: string;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id, }: {
|
|
17
|
+
itemInstance: Record<string, unknown>;
|
|
18
|
+
itemId: string;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
patch: ({ changes, itemId: id, }: {
|
|
21
|
+
changes: Record<string, unknown>;
|
|
22
|
+
itemId: string;
|
|
23
|
+
}) => Promise<any>;
|
|
24
|
+
delete: ({ id }: {
|
|
25
|
+
id: string;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const DynamicGroupsAPI: {
|
|
2
|
+
getList: (params: Record<string, unknown>) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: string;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance, }: {
|
|
10
|
+
itemInstance: Record<string, unknown>;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id, }: {
|
|
13
|
+
itemInstance: Record<string, unknown>;
|
|
14
|
+
itemId: string;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
patch: ({ changes, itemId: id, }: {
|
|
17
|
+
changes: Record<string, unknown>;
|
|
18
|
+
itemId: string;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: string;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: Record<string, unknown>) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
@@ -20,6 +20,8 @@ export * from './chatGateways/chatGateways';
|
|
|
20
20
|
export * from './communications/communications';
|
|
21
21
|
export * from './configurations/configurations';
|
|
22
22
|
export * from './contactGroups/contactGroups';
|
|
23
|
+
export * from './dynamicConditions/dynamicConditions';
|
|
24
|
+
export * from './dynamicGroups/dynamicGroups';
|
|
23
25
|
export * from './emails/emails';
|
|
24
26
|
export * from './fileServices/fileServices';
|
|
25
27
|
export * from './flows/flow';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiId, ApiParams
|
|
1
|
+
import type { ApiId, ApiParams } from '../_shared/types';
|
|
2
2
|
declare const getConditionsList: ({ parentId, ...rest }: {
|
|
3
3
|
parentId: ApiId;
|
|
4
4
|
} & ApiParams) => Promise<{
|
|
@@ -16,7 +16,10 @@ export declare const SLAConditionsAPI: {
|
|
|
16
16
|
parentId: ApiId;
|
|
17
17
|
itemId: ApiId;
|
|
18
18
|
}) => Promise<any>;
|
|
19
|
-
update: ({ itemInstance, itemId: id, }:
|
|
19
|
+
update: ({ itemInstance, itemId: id, }: {
|
|
20
|
+
itemInstance: ApiParams;
|
|
21
|
+
itemId: ApiId;
|
|
22
|
+
}) => Promise<any>;
|
|
20
23
|
delete: ({ id, parentId, }: {
|
|
21
24
|
id: ApiId;
|
|
22
25
|
parentId: ApiId;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const contactGroupSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
conditions?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
contactsSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
6
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
7
|
+
defaultGroup?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
8
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
9
|
+
enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
type: z.ZodLiteral<"STATIC">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
conditions?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
contactsSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
defaultGroup?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
enabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
25
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
26
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
27
|
+
type: z.ZodLiteral<"DYNAMIC">;
|
|
28
|
+
}, z.core.$strip>], "type">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const contactGroupConditionSchema: z.ZodObject<{
|
|
3
|
+
assignee?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
expression?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
group?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
6
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
7
|
+
}, z.core.$strip>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './_shared/duration.validations';
|
|
2
|
+
export * from './_shared/lookup.validations';
|
|
1
3
|
export * from './auditForm/auditForm.validations';
|
|
2
4
|
export * from './bucket/bucket.validations';
|
|
3
5
|
export * from './calendar/calendar.validations';
|
|
@@ -5,6 +7,10 @@ export * from './casePriority/casePriority.validations';
|
|
|
5
7
|
export * from './caseSource/caseSource.validations';
|
|
6
8
|
export * from './caseStatus/caseStatus.validations';
|
|
7
9
|
export * from './caseStatusCondition/caseStatusCondition.validations';
|
|
10
|
+
export * from './contactGroup/contactGroup.validations';
|
|
11
|
+
export * from './contactGroupCondition/contactGroupCondition.validations';
|
|
8
12
|
export * from './OAuth/OAuth.validations';
|
|
9
13
|
export * from './onlineSkill/onlineSkill.validations';
|
|
14
|
+
export * from './sla/sla.validations';
|
|
15
|
+
export * from './slaCondition/slaCondition.validations';
|
|
10
16
|
export * from './types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const slaSchema: z.ZodObject<{
|
|
3
|
+
calendar?: 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
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
8
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
9
|
+
reactionTime?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
resolutionTime?: 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
|
+
validFrom?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
validTo?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const slaConditionSchema: 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
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
6
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
7
|
+
priorities?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
8
|
+
reactionTime?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
9
|
+
resolutionTime?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
slaId?: 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>;
|