@webitel/api-services 0.1.65 → 0.1.66

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.
@@ -25,12 +25,12 @@ export declare const ContactGroupsAPI: {
25
25
  next: any;
26
26
  }>;
27
27
  addContactsToGroups: ({ contactIds, groupIds, }: {
28
- contactIds: string[];
29
- groupIds: string[];
28
+ contactIds: ApiId[];
29
+ groupIds: ApiId[];
30
30
  }) => Promise<any>;
31
31
  removeContactsFromGroup: ({ id, contactIds, }: {
32
32
  id: ApiId;
33
- contactIds: string[];
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';
@@ -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,4 @@
1
+ export * from './_shared/lookup.validations';
1
2
  export * from './auditForm/auditForm.validations';
2
3
  export * from './bucket/bucket.validations';
3
4
  export * from './calendar/calendar.validations';
@@ -5,6 +6,8 @@ export * from './casePriority/casePriority.validations';
5
6
  export * from './caseSource/caseSource.validations';
6
7
  export * from './caseStatus/caseStatus.validations';
7
8
  export * from './caseStatusCondition/caseStatusCondition.validations';
9
+ export * from './contactGroup/contactGroup.validations';
10
+ export * from './contactGroupCondition/contactGroupCondition.validations';
8
11
  export * from './OAuth/OAuth.validations';
9
12
  export * from './onlineSkill/onlineSkill.validations';
10
13
  export * from './types';