@webitel/api-services 26.8.43 → 26.8.45
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/cases/_internals/types.ts +11 -0
- package/src/api/clients/cases/cases.ts +54 -5
- package/src/api/clients/logs/logs.ts +15 -1
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/cases/_internals/types.d.ts +9 -0
- package/types/api/clients/cases/cases.d.ts +4 -2
- package/types/api/clients/logs/logs.d.ts +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocateCaseNeighborDirection } from '@webitel/api-services/gen/models';
|
|
2
|
+
import type { ApiParams, GetItemParams } from '../../_shared/types';
|
|
3
|
+
export interface GetCaseParams extends GetItemParams {
|
|
4
|
+
listParams?: ApiParams;
|
|
5
|
+
}
|
|
6
|
+
export interface GetCaseNeighborParams extends GetItemParams {
|
|
7
|
+
direction: LocateCaseNeighborDirection;
|
|
8
|
+
listParams: ApiParams;
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { AddItemParams, ApiId, ApiParams, DeleteItemParams
|
|
1
|
+
import type { AddItemParams, ApiId, ApiParams, DeleteItemParams } from '../_shared/types';
|
|
2
|
+
import type { GetCaseNeighborParams, GetCaseParams } from './_internals/types';
|
|
2
3
|
declare const getCasesList: (params: ApiParams) => Promise<{
|
|
3
4
|
items: any;
|
|
4
5
|
next: any;
|
|
@@ -19,7 +20,8 @@ export declare const CasesAPI: {
|
|
|
19
20
|
items: any;
|
|
20
21
|
next: any;
|
|
21
22
|
}>;
|
|
22
|
-
get: ({ itemId: id }:
|
|
23
|
+
get: ({ itemId: id, listParams }: GetCaseParams) => Promise<any>;
|
|
24
|
+
getNeighbor: ({ itemId: id, direction, listParams, }: GetCaseNeighborParams) => Promise<any>;
|
|
23
25
|
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
24
26
|
update: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
25
27
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiParams } from '../_shared/types';
|
|
1
|
+
import type { ApiParams, GetItemParams } from '../_shared/types';
|
|
2
2
|
/** Audit log of everything one user did. */
|
|
3
3
|
export declare const UserLogsAPI: {
|
|
4
4
|
getList: (params: ApiParams) => Promise<{
|
|
@@ -12,4 +12,5 @@ export declare const ConfigLogsAPI: {
|
|
|
12
12
|
items: any;
|
|
13
13
|
next: any;
|
|
14
14
|
}>;
|
|
15
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
15
16
|
};
|