@webitel/api-services 0.1.66 → 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.
@@ -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]>;
@@ -1,3 +1,4 @@
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';
@@ -10,4 +11,6 @@ export * from './contactGroup/contactGroup.validations';
10
11
  export * from './contactGroupCondition/contactGroupCondition.validations';
11
12
  export * from './OAuth/OAuth.validations';
12
13
  export * from './onlineSkill/onlineSkill.validations';
14
+ export * from './sla/sla.validations';
15
+ export * from './slaCondition/slaCondition.validations';
13
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>;