@webitel/api-services 0.1.60 → 0.1.62
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/calendars/__tests__/calendars.spec.ts +795 -0
- package/src/api/clients/calendars/calendars.ts +89 -62
- package/src/validations/bucket/bucket.validations.ts +8 -0
- package/src/validations/calendar/__tests__/calendar.validations.spec.ts +526 -0
- package/src/validations/calendar/calendar.validations.ts +181 -0
- package/src/validations/index.ts +2 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/calendars/calendars.d.ts +7 -0
- package/types/validations/bucket/bucket.validations.d.ts +6 -0
- package/types/validations/calendar/calendar.validations.d.ts +26 -0
- package/types/validations/index.d.ts +2 -0
|
@@ -4,6 +4,13 @@ declare const getCalendarList: (params: ApiParams) => Promise<{
|
|
|
4
4
|
next: any;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const CalendarsAPI: {
|
|
7
|
+
getPermissionsList: ({ parentId, ...params }: {
|
|
8
|
+
parentId: import("../_shared/types").ApiId;
|
|
9
|
+
} & ApiParams) => Promise<{
|
|
10
|
+
items: any;
|
|
11
|
+
next: any;
|
|
12
|
+
}>;
|
|
13
|
+
patchPermissions: ({ changes, id }: import("../_shared/types").PatchItemParams) => Promise<any>;
|
|
7
14
|
getList: (params: ApiParams) => Promise<{
|
|
8
15
|
items: any;
|
|
9
16
|
next: any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const bucketSchema: z.ZodObject<{
|
|
3
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
4
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
5
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
6
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
type AcceptOfDayUi = {
|
|
3
|
+
day: number;
|
|
4
|
+
start: number;
|
|
5
|
+
end: number;
|
|
6
|
+
};
|
|
7
|
+
export type CalendarAcceptOfDayUiForValidation = AcceptOfDayUi;
|
|
8
|
+
export declare const getCalendarAcceptsIntersectingIndices: (items: CalendarAcceptOfDayUiForValidation[]) => Set<number>;
|
|
9
|
+
export declare const calendarSchema: z.ZodObject<{
|
|
10
|
+
accepts?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
domainId?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
endAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
excepts?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
specials?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
startAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
timezone?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
expires?: z.ZodType | undefined;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './auditForm/auditForm.validations';
|
|
2
|
+
export * from './bucket/bucket.validations';
|
|
3
|
+
export * from './calendar/calendar.validations';
|
|
2
4
|
export * from './casePriority/casePriority.validations';
|
|
3
5
|
export * from './caseSource/caseSource.validations';
|
|
4
6
|
export * from './caseStatus/caseStatus.validations';
|