@webitel/api-services 26.8.74 → 26.8.76

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,8 +1,4 @@
1
1
  import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
2
- declare const getShiftTemplatesList: (params: ApiParams) => Promise<{
3
- items: any;
4
- next: any;
5
- }>;
6
2
  export declare const ShiftTemplatesAPI: {
7
3
  getList: (params: ApiParams) => Promise<{
8
4
  items: any;
@@ -12,9 +8,8 @@ export declare const ShiftTemplatesAPI: {
12
8
  add: ({ itemInstance }: AddItemParams) => Promise<any>;
13
9
  update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
14
10
  delete: ({ id }: DeleteItemParams) => Promise<any>;
15
- getLookup: (params: Parameters<typeof getShiftTemplatesList>[0]) => Promise<{
11
+ getLookup: (params: ApiParams) => Promise<{
16
12
  items: any;
17
13
  next: any;
18
14
  }>;
19
15
  };
20
- export {};
@@ -49,6 +49,7 @@ export * from './resource/resource.validations';
49
49
  export * from './resourceDisplay/resourceDisplay.validations';
50
50
  export * from './resourceGroup/resourceGroup.validations';
51
51
  export * from './resourceInGroup/resourceInGroup.validations';
52
+ export * from './shiftTemplate/shiftTemplate.validations';
52
53
  export * from './sla/sla.validations';
53
54
  export * from './slaCondition/slaCondition.validations';
54
55
  export * from './team/team.validations';
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { type TimeRange } from '../_shared/timeRange.validations';
3
+ /**
4
+ * [Claude] row errors for `useTimeRangesValidation`: regle marks a row as a plain field,
5
+ * so the custom range issues are read from the schema directly
6
+ */
7
+ export declare const getShiftTemplateTimeRangeErrors: (items: unknown) => import("..").TimeRangeError[];
8
+ /**
9
+ * [Claude] a new template row: 9:00–18:00, 9 hours (minutes of the day).
10
+ * Shared by the schema default and the form's "add row" action.
11
+ */
12
+ export declare const getDefaultShiftTemplateTime: () => TimeRange;
13
+ export declare const shiftTemplateSchema: z.ZodObject<{
14
+ createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
15
+ createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
16
+ description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
17
+ domainId?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
18
+ id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
19
+ name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
20
+ times?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
21
+ updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
22
+ updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
23
+ }, z.core.$strip>;