@webitel/api-services 0.1.66 → 0.1.68

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.
@@ -1,4 +1,4 @@
1
- import type { ApiId, ApiParams, UpdateItemParams } from '../_shared/types';
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, }: UpdateItemParams) => Promise<any>;
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,2 @@
1
+ import { z } from 'zod';
2
+ export declare const requiredDurationSchema: (min?: number) => z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const caseCloseReasonSchema: z.ZodObject<{
3
+ closeReasonGroupId?: 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
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
11
+ }, z.core.$strip>;
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export declare const caseCloseReasonGroupSchema: 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
+ description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
6
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
7
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
8
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
9
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
10
+ }, z.core.$strip>;
@@ -1,7 +1,10 @@
1
+ export * from './_shared/duration.validations';
1
2
  export * from './_shared/lookup.validations';
2
3
  export * from './auditForm/auditForm.validations';
3
4
  export * from './bucket/bucket.validations';
4
5
  export * from './calendar/calendar.validations';
6
+ export * from './caseCloseReason/caseCloseReason.validations';
7
+ export * from './caseCloseReasonGroup/caseCloseReasonGroup.validations';
5
8
  export * from './casePriority/casePriority.validations';
6
9
  export * from './caseSource/caseSource.validations';
7
10
  export * from './caseStatus/caseStatus.validations';
@@ -10,4 +13,6 @@ export * from './contactGroup/contactGroup.validations';
10
13
  export * from './contactGroupCondition/contactGroupCondition.validations';
11
14
  export * from './OAuth/OAuth.validations';
12
15
  export * from './onlineSkill/onlineSkill.validations';
16
+ export * from './sla/sla.validations';
17
+ export * from './slaCondition/slaCondition.validations';
13
18
  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>;