@webitel/api-services 1.0.8 → 1.0.10
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/caseStatusConditions/caseStatusConditions.ts +2 -2
- package/src/api/clients/cases/cases.ts +6 -3
- package/src/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.ts +3 -3
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +1 -1
- package/src/validations/calendar/__tests__/calendar.validations.spec.ts +13 -0
- package/src/validations/calendar/calendar.validations.ts +3 -3
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +4 -4
- package/types/api/clients/cases/cases.d.ts +5 -2
- package/types/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.d.ts +2 -2
- package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +2 -2
- package/types/validations/calendar/calendar.validations.d.ts +8 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ApiId, ApiParams } from '../_shared/types';
|
|
2
2
|
declare const getStatusConditionsList: ({ statusId, parentId, ...rest }: {
|
|
3
|
-
statusId
|
|
4
|
-
parentId
|
|
3
|
+
statusId?: ApiId;
|
|
4
|
+
parentId?: ApiId;
|
|
5
5
|
} & ApiParams) => Promise<{
|
|
6
6
|
items: any;
|
|
7
7
|
next: any;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const CaseStatusConditionsAPI: {
|
|
10
10
|
getList: ({ statusId, parentId, ...rest }: {
|
|
11
|
-
statusId
|
|
12
|
-
parentId
|
|
11
|
+
statusId?: ApiId;
|
|
12
|
+
parentId?: ApiId;
|
|
13
13
|
} & ApiParams) => Promise<{
|
|
14
14
|
items: any;
|
|
15
15
|
next: any;
|
|
@@ -24,8 +24,11 @@ export declare const CasesAPI: {
|
|
|
24
24
|
update: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
25
25
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
26
26
|
patch: ({ changes, etag, }: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
id?: ApiId;
|
|
28
|
+
itemId?: ApiId;
|
|
29
|
+
changes?: ApiParams;
|
|
30
|
+
parentId?: ApiId;
|
|
31
|
+
etag?: ApiId;
|
|
29
32
|
}) => Promise<any>;
|
|
30
33
|
exportData: (params: ApiParams) => Promise<{
|
|
31
34
|
response: import("axios").AxiosResponse<import("../../../gen-wire").ExportCases200, any, {}>;
|
|
@@ -22,8 +22,8 @@ export declare const AdjunctTypeRecordsAPI: {
|
|
|
22
22
|
parentId: string;
|
|
23
23
|
}) => Promise<any>;
|
|
24
24
|
delete: ({ parentId, id, }: {
|
|
25
|
-
parentId
|
|
26
|
-
id
|
|
25
|
+
parentId?: ApiId;
|
|
26
|
+
id?: ApiId | ApiId[];
|
|
27
27
|
}) => Promise<void>;
|
|
28
28
|
getLookup: ({ path, display, primary, ...params }: {
|
|
29
29
|
path: string;
|
|
@@ -18,7 +18,7 @@ export declare const AdjunctTypesAPI: {
|
|
|
18
18
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
19
19
|
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
20
20
|
delete: ({ id }: {
|
|
21
|
-
id
|
|
21
|
+
id?: ApiId | ApiId[];
|
|
22
22
|
}) => Promise<any>;
|
|
23
23
|
getLookup: (params: Parameters<typeof getAdjunctTypesList>[0]) => Promise<{
|
|
24
24
|
items: any;
|
|
@@ -41,7 +41,7 @@ export declare const CustomLookupAPI: {
|
|
|
41
41
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
42
42
|
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
43
43
|
delete: ({ id }: {
|
|
44
|
-
id
|
|
44
|
+
id?: ApiId | ApiId[];
|
|
45
45
|
}) => Promise<any>;
|
|
46
46
|
getLookup: (params: Parameters<typeof getAdjunctTypesList>[0]) => Promise<{
|
|
47
47
|
items: any;
|
|
@@ -14,6 +14,14 @@ export type CalendarDayRangeIssue = {
|
|
|
14
14
|
* so a row the user has not touched keeps a message that is no longer true.
|
|
15
15
|
*/
|
|
16
16
|
export declare const getCalendarDayRangeIssues: (items: unknown) => CalendarDayRangeIssue[];
|
|
17
|
+
export declare const calendarExceptSchema: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
date: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
20
|
+
repeat: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
working: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
workStart: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
workStop: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
17
25
|
export declare const calendarSchema: z.ZodObject<{
|
|
18
26
|
accepts?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
27
|
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|