@webitel/api-services 26.12.36 → 26.12.38
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/workingConditions/__tests__/workingConditions.spec.ts +40 -0
- package/src/api/clients/workingConditions/workingConditions.ts +11 -0
- package/src/validations/_shared/__tests__/timeRange.validations.spec.ts +69 -0
- package/src/validations/_shared/timeRange.validations.ts +16 -0
- package/types/.tsbuildinfo +1 -1
- package/types/validations/_shared/timeRange.validations.d.ts +8 -0
|
@@ -14,5 +14,13 @@ export declare const timeRangeSchema: z.ZodObject<{
|
|
|
14
14
|
start: z.ZodNumber;
|
|
15
15
|
end: z.ZodNumber;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
|
+
/**
|
|
18
|
+
* [Claude] range length in minutes; an unset bound counts as 0, an inverted range as 0
|
|
19
|
+
*/
|
|
20
|
+
export declare const getTimeRangeDuration: (range: Partial<TimeRange>) => number;
|
|
21
|
+
/**
|
|
22
|
+
* [Claude] sets the length by moving `end`; `start` stays
|
|
23
|
+
*/
|
|
24
|
+
export declare const setTimeRangeDuration: (range: Partial<TimeRange>, minutes: number) => void;
|
|
17
25
|
export declare const refineTimeRangesNotIntersect: <T extends TimeRange>(groupBy?: (item: T) => unknown) => (items: T[], ctx: z.RefinementCtx) => void;
|
|
18
26
|
export declare const getTimeRangeErrors: (schema: z.ZodType, items: unknown) => TimeRangeError[];
|