@hapl/api-queries 0.2.81 → 0.2.82

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.
@@ -16,6 +16,7 @@ export declare type CreatePhotoOrderHeaders = {
16
16
  'x-auth-hc': string;
17
17
  };
18
18
  export declare type CreatePhotoOrderBody = {
19
+ type: NonNullable<PhotoOrder['type']>;
19
20
  serviceRequestId: NonNullable<PhotoOrder['serviceRequestId']>;
20
21
  addressId: NonNullable<PhotoOrder['addressId']>;
21
22
  scheduledAt: NonNullable<PhotoOrder['scheduledAt']>;
@@ -23,6 +24,9 @@ export declare type CreatePhotoOrderBody = {
23
24
  expertPhone: NonNullable<PhotoOrder['expertPhone']>;
24
25
  hasAccessToFlat: NonNullable<PhotoOrder['hasAccessToFlat']>;
25
26
  comment?: PhotoOrder['comment'];
27
+ internalUser?: {
28
+ id: number;
29
+ };
26
30
  };
27
31
  export declare type CreatePhotoOrderData = AxiosResponse<ResultData>;
28
32
  export declare type CreatePhotoOrderError = AxiosError<ResultError>;
@@ -1,3 +1,4 @@
1
+ import { User } from './User';
1
2
  export declare enum PhotoOrderStatus {
2
3
  Aborted = "aborted",
3
4
  Created = "created",
@@ -16,7 +17,12 @@ export declare enum PhotoOrderRenovation {
16
17
  Euro = "euro",
17
18
  None = "none"
18
19
  }
20
+ export declare enum PhotoOrderTypes {
21
+ Internal = "internal",
22
+ External = "external"
23
+ }
19
24
  export declare type PhotoOrder = {
25
+ type: PhotoOrderTypes;
20
26
  addressId: number;
21
27
  expertPhone: string;
22
28
  hasAccessToFlat: boolean;
@@ -26,6 +32,9 @@ export declare type PhotoOrder = {
26
32
  scheduledAt: string;
27
33
  serviceRequestId: number;
28
34
  status: PhotoOrderStatus;
35
+ internalUser?: Partial<User> & {
36
+ id: number;
37
+ };
29
38
  comment?: string;
30
39
  photographerName?: string;
31
40
  photographerPhone?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.81",
2
+ "version": "0.2.82",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -9,6 +9,7 @@ type ResultError = ErrorData['data']['error'];
9
9
 
10
10
  export type CreatePhotoOrderHeaders = { 'x-auth-hc': string };
11
11
  export type CreatePhotoOrderBody = {
12
+ type: NonNullable<PhotoOrder['type']>;
12
13
  serviceRequestId: NonNullable<PhotoOrder['serviceRequestId']>;
13
14
  addressId: NonNullable<PhotoOrder['addressId']>;
14
15
  scheduledAt: NonNullable<PhotoOrder['scheduledAt']>;
@@ -16,6 +17,7 @@ export type CreatePhotoOrderBody = {
16
17
  expertPhone: NonNullable<PhotoOrder['expertPhone']>;
17
18
  hasAccessToFlat: NonNullable<PhotoOrder['hasAccessToFlat']>;
18
19
  comment?: PhotoOrder['comment'];
20
+ internalUser?: { id: number };
19
21
  };
20
22
 
21
23
  export type CreatePhotoOrderData = AxiosResponse<ResultData>;
@@ -1,3 +1,5 @@
1
+ import { User } from './User';
2
+
1
3
  export enum PhotoOrderStatus {
2
4
  Aborted = 'aborted',
3
5
  Created = 'created',
@@ -18,7 +20,13 @@ export enum PhotoOrderRenovation {
18
20
  None = 'none',
19
21
  }
20
22
 
23
+ export enum PhotoOrderTypes {
24
+ Internal = 'internal',
25
+ External = 'external',
26
+ }
27
+
21
28
  export type PhotoOrder = {
29
+ type: PhotoOrderTypes;
22
30
  addressId: number;
23
31
  expertPhone: string;
24
32
  hasAccessToFlat: boolean;
@@ -29,6 +37,7 @@ export type PhotoOrder = {
29
37
  serviceRequestId: number;
30
38
  status: PhotoOrderStatus;
31
39
 
40
+ internalUser?: Partial<User> & { id: number };
32
41
  comment?: string;
33
42
  photographerName?: string;
34
43
  photographerPhone?: string;