@hapl/api-queries 0.2.41 → 0.2.42

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.
@@ -22,6 +22,10 @@ export declare type CreateCallTaskBody = {
22
22
  ipAddress?: CallTask['ipAddress'];
23
23
  userAgent?: CallTask['userAgent'];
24
24
  userAgentInfo?: CallTask['userAgentInfo'];
25
+ partner?: {
26
+ login: string;
27
+ firstName: string;
28
+ };
25
29
  };
26
30
  export declare type CreateCallTaskData = AxiosResponse<ResultData>;
27
31
  export declare type CreateCallTaskError = AxiosError<ResultError>;
@@ -8,9 +8,11 @@ export declare type UpdateCallTaskHeaders = {
8
8
  export declare type UpdateCallTaskUrlParams = {
9
9
  id: number;
10
10
  };
11
- export declare type UpdateCallTaskBody = Partial<CallTask> & {
12
- comment?: string;
13
- actualAt?: string;
11
+ export declare type UpdateCallTaskBody = Partial<Omit<CallTask, 'partner'>> & {
12
+ partner?: {
13
+ login: string;
14
+ firstName: string;
15
+ };
14
16
  };
15
17
  export declare type UpdateCallTaskData = AxiosResponse<ResultData>;
16
18
  export declare type UpdateCallTaskError = AxiosError<ResultError>;
@@ -109,6 +109,9 @@ export declare type CallTask = {
109
109
  };
110
110
  ipAddress?: string;
111
111
  lastBookingAt?: string;
112
+ partner?: Partial<User> & {
113
+ id: number;
114
+ };
112
115
  realty?: Partial<Realty> & {
113
116
  id: number;
114
117
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.41",
2
+ "version": "0.2.42",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -25,6 +25,7 @@ export type CreateCallTaskBody = {
25
25
  ipAddress?: CallTask['ipAddress'];
26
26
  userAgent?: CallTask['userAgent'];
27
27
  userAgentInfo?: CallTask['userAgentInfo'];
28
+ partner?: { login: string; firstName: string };
28
29
  };
29
30
 
30
31
  export type CreateCallTaskData = AxiosResponse<ResultData>;
@@ -9,9 +9,8 @@ type ResultError = string;
9
9
 
10
10
  export type UpdateCallTaskHeaders = { 'x-auth-hc'?: string };
11
11
  export type UpdateCallTaskUrlParams = { id: number };
12
- export type UpdateCallTaskBody = Partial<CallTask> & {
13
- comment?: string;
14
- actualAt?: string;
12
+ export type UpdateCallTaskBody = Partial<Omit<CallTask, 'partner'>> & {
13
+ partner?: { login: string; firstName: string };
15
14
  };
16
15
 
17
16
  export type UpdateCallTaskData = AxiosResponse<ResultData>;
@@ -107,6 +107,7 @@ export type CallTask = {
107
107
  curator?: Partial<User> & { id: number };
108
108
  ipAddress?: string;
109
109
  lastBookingAt?: string;
110
+ partner?: Partial<User> & { id: number };
110
111
  realty?: Partial<Realty> & { id: number };
111
112
  referrer?: string;
112
113
  triggeredByEvent?: CallTaskTriggeredByEvent;