@evercam/api 1.0.0-9cdcb2c4a → 1.0.0-9e8d108fd
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/README.md +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +170 -10
- package/dist/api/api/adminApi.d.ts +136 -85
- package/dist/api/api/aiApi.d.ts +66 -81
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +131 -96
- package/dist/api/api/evercamLabsApi.d.ts +6 -4
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +113 -33
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +193 -6
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +164 -43
- package/dist/api/types/anpr.d.ts +53 -13
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +11 -6
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +107 -92
- package/dist/api/types/comments.d.ts +24 -10
- package/dist/api/types/company.d.ts +43 -2
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +20 -31
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +49 -158
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +10 -1
- package/dist/api/types/ingest.d.ts +103 -3
- package/dist/api/types/kit.d.ts +43 -7
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -31
- package/dist/api/types/project.d.ts +137 -18
- package/dist/api/types/recording.d.ts +6 -4
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +30 -9
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +191 -46
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +50 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +105 -32
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1747 -944
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +147 -17
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PaginationParams, DateType } from "
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
|
|
2
|
+
import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
|
|
2
3
|
export declare enum IngestProcessingStatus {
|
|
3
4
|
Completed = "completed",
|
|
4
5
|
Uploading = "uploading",
|
|
@@ -9,9 +10,20 @@ export declare enum IngestProcessingStatus {
|
|
|
9
10
|
InProgress = "inprogress",
|
|
10
11
|
Pending = "pending"
|
|
11
12
|
}
|
|
13
|
+
export declare enum MobileAssetsType {
|
|
14
|
+
Audio = "mobile_audios",
|
|
15
|
+
Photo = "mobile_photos"
|
|
16
|
+
}
|
|
12
17
|
export declare enum IngestVersions {
|
|
13
18
|
V1 = "v1",
|
|
14
|
-
V2 = "v2"
|
|
19
|
+
V2 = "v2",
|
|
20
|
+
V3 = "v3",
|
|
21
|
+
V4 = "v4",
|
|
22
|
+
V5 = "v5"
|
|
23
|
+
}
|
|
24
|
+
export declare enum IngestTypes {
|
|
25
|
+
Drone = "drone",
|
|
26
|
+
ThreeSixty = "360"
|
|
15
27
|
}
|
|
16
28
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
17
29
|
projectId: string;
|
|
@@ -19,6 +31,34 @@ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
|
19
31
|
token: string;
|
|
20
32
|
processingStatus: IngestProcessingStatus;
|
|
21
33
|
};
|
|
34
|
+
export type IngestPaginatedResponse<T> = {
|
|
35
|
+
items: T[];
|
|
36
|
+
page: number;
|
|
37
|
+
limit: number;
|
|
38
|
+
total: number;
|
|
39
|
+
pageCount?: number;
|
|
40
|
+
};
|
|
41
|
+
export type DroneUploadItem = {
|
|
42
|
+
id: number;
|
|
43
|
+
projectId: string;
|
|
44
|
+
consumed: boolean;
|
|
45
|
+
token: string;
|
|
46
|
+
flightDate: string;
|
|
47
|
+
flightGeolocation: string;
|
|
48
|
+
modelZip: string;
|
|
49
|
+
orthomosaicZip: string;
|
|
50
|
+
reportPdf: string;
|
|
51
|
+
uploadedBy: string;
|
|
52
|
+
processingStatus: IngestProcessingStatus | string;
|
|
53
|
+
modelCesiumAssetId: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
hasTusLinks: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
58
|
+
export type DroneQueueResponse = {
|
|
59
|
+
size: number;
|
|
60
|
+
assetsDrone: DroneUploadItem[];
|
|
61
|
+
};
|
|
22
62
|
export type DroneUploadUpdateRequestPayload = {
|
|
23
63
|
flightMetadata: {
|
|
24
64
|
dateTime: string;
|
|
@@ -30,11 +70,19 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
30
70
|
title: string;
|
|
31
71
|
fileExtension: string;
|
|
32
72
|
}[];
|
|
73
|
+
aerialShots: {
|
|
74
|
+
url: string;
|
|
75
|
+
title: string;
|
|
76
|
+
fileExtension: string;
|
|
77
|
+
gpsLatitude: string;
|
|
78
|
+
gpsLongitude: string;
|
|
79
|
+
gpsAltitude: string;
|
|
80
|
+
}[];
|
|
33
81
|
projectName: string;
|
|
34
82
|
};
|
|
35
83
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
36
84
|
date: DateType;
|
|
37
|
-
points: [
|
|
85
|
+
points: TuplePoint2D[];
|
|
38
86
|
operation: string;
|
|
39
87
|
};
|
|
40
88
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
@@ -45,3 +93,55 @@ export type InspectionToolRequestPayload = {
|
|
|
45
93
|
gpsAltitude: string;
|
|
46
94
|
gpsCoordinates: string;
|
|
47
95
|
};
|
|
96
|
+
export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
|
|
97
|
+
export type _360AssetsCountsDay = {
|
|
98
|
+
day: number;
|
|
99
|
+
walks?: number;
|
|
100
|
+
mobilePhotos?: number;
|
|
101
|
+
[key: string]: JsonValue | undefined;
|
|
102
|
+
};
|
|
103
|
+
export type _360AssetsCountsResponse = {
|
|
104
|
+
days: _360AssetsCountsDay[];
|
|
105
|
+
};
|
|
106
|
+
export type _360QueueResponse = {
|
|
107
|
+
size: number;
|
|
108
|
+
assets360: _360WalkV2[];
|
|
109
|
+
};
|
|
110
|
+
export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
|
|
111
|
+
export type BimUploadItem = {
|
|
112
|
+
id: number;
|
|
113
|
+
projectId: string;
|
|
114
|
+
uploadedBy: string;
|
|
115
|
+
files: string[];
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
archive?: string | null;
|
|
118
|
+
};
|
|
119
|
+
export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
|
|
120
|
+
export type IngestUploadInitResponse = {
|
|
121
|
+
id: number;
|
|
122
|
+
projectId: string;
|
|
123
|
+
token?: string;
|
|
124
|
+
projectName?: string;
|
|
125
|
+
};
|
|
126
|
+
export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
127
|
+
projectId?: string;
|
|
128
|
+
project_id?: string;
|
|
129
|
+
assetType?: MobileAssetsType | string;
|
|
130
|
+
date?: DateType;
|
|
131
|
+
isPaginated?: boolean;
|
|
132
|
+
};
|
|
133
|
+
export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
|
|
134
|
+
id: string;
|
|
135
|
+
projectId?: string;
|
|
136
|
+
uploadedBy: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
assetType: string;
|
|
139
|
+
thumbnailUrl: string;
|
|
140
|
+
}> | Array<{
|
|
141
|
+
id: string;
|
|
142
|
+
projectId?: string;
|
|
143
|
+
uploadedBy: string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
assetType: string;
|
|
146
|
+
thumbnailUrl: string;
|
|
147
|
+
}>;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, CountryCode, CountryId,
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -16,8 +16,11 @@ export type Kit = {
|
|
|
16
16
|
serial: string;
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
|
+
ups: boolean;
|
|
20
|
+
boxId: string;
|
|
19
21
|
tags: Tag[];
|
|
20
22
|
storages: KitStorage[];
|
|
23
|
+
createdAt: string;
|
|
21
24
|
};
|
|
22
25
|
export declare enum KitStatus {
|
|
23
26
|
New = "new",
|
|
@@ -33,16 +36,16 @@ export declare enum KitRegion {
|
|
|
33
36
|
}
|
|
34
37
|
export declare enum KitAlarm {
|
|
35
38
|
NvrOffline = "nvr_offline",
|
|
39
|
+
OfflineScheduled = "offline_scheduled",
|
|
36
40
|
UnknownCamera = "unknown_camera",
|
|
37
41
|
NotRecordingCamera = "not_recording_camera",
|
|
38
|
-
OfflineScheduled = "offline_scheduled",
|
|
39
42
|
FullSD = "full_sd",
|
|
40
43
|
FullStorage = "full_storage",
|
|
41
44
|
HddUnmounted = "hdd_unmounted",
|
|
42
45
|
NoHdd = "no_hdd",
|
|
43
46
|
MissingRouterInfo = "missing_router_info",
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
AcFailure = "ac_failure",
|
|
48
|
+
LowBattery = "low_battery"
|
|
46
49
|
}
|
|
47
50
|
export declare enum KitMetricId {
|
|
48
51
|
SolarCharger = "solar_charger",
|
|
@@ -302,6 +305,13 @@ export type KitCreatePayload = {
|
|
|
302
305
|
region: KitRegion;
|
|
303
306
|
};
|
|
304
307
|
};
|
|
308
|
+
export type KitMetricStatsEntry = {
|
|
309
|
+
timestamp: string;
|
|
310
|
+
voltage: number;
|
|
311
|
+
current: number;
|
|
312
|
+
panelVoltage: number;
|
|
313
|
+
panelPower: number;
|
|
314
|
+
};
|
|
305
315
|
export type KitUpdatePayload = {
|
|
306
316
|
countryId: number;
|
|
307
317
|
name: string;
|
|
@@ -326,8 +336,8 @@ export type KitStorage = {
|
|
|
326
336
|
formFactor: string;
|
|
327
337
|
};
|
|
328
338
|
model: string;
|
|
329
|
-
insertedAt:
|
|
330
|
-
updatedAt:
|
|
339
|
+
insertedAt: string;
|
|
340
|
+
updatedAt: string;
|
|
331
341
|
vendor: string;
|
|
332
342
|
kitId: number;
|
|
333
343
|
capacity: number;
|
|
@@ -338,10 +348,36 @@ export type KitFootageRequestPayload = {
|
|
|
338
348
|
cameraId: CameraExid;
|
|
339
349
|
storageId: number;
|
|
340
350
|
};
|
|
341
|
-
export type
|
|
351
|
+
export type KitFootage = {
|
|
342
352
|
id: number;
|
|
343
353
|
startDate: string;
|
|
344
354
|
endDate: string;
|
|
345
355
|
cameraId: number;
|
|
346
356
|
storageId: number;
|
|
347
357
|
};
|
|
358
|
+
export type KitAlarmItem = {
|
|
359
|
+
id: number;
|
|
360
|
+
kitId: number;
|
|
361
|
+
alarm: KitAlarm;
|
|
362
|
+
startDate: string;
|
|
363
|
+
endDate: string | null;
|
|
364
|
+
};
|
|
365
|
+
export type KitBox = {
|
|
366
|
+
id: string;
|
|
367
|
+
gatewaySerial: string;
|
|
368
|
+
gatewayMac: string;
|
|
369
|
+
gatewayConfig: Record<string, unknown> | null;
|
|
370
|
+
insertedAt: string;
|
|
371
|
+
updatedAt: string;
|
|
372
|
+
};
|
|
373
|
+
export type KitBoxCreatePayload = {
|
|
374
|
+
id?: string;
|
|
375
|
+
gatewaySerial: string;
|
|
376
|
+
gatewayMac: string;
|
|
377
|
+
gatewayConfig?: Record<string, unknown>;
|
|
378
|
+
};
|
|
379
|
+
export type KitBoxQueryParams = PaginationParams & {
|
|
380
|
+
id: string;
|
|
381
|
+
gatewaySerial: string;
|
|
382
|
+
gatewayMac: string;
|
|
383
|
+
};
|
package/dist/api/types/map.d.ts
CHANGED
|
@@ -2,3 +2,15 @@ export declare enum MapType {
|
|
|
2
2
|
Hybrid = "hybrid",
|
|
3
3
|
Terrain = "terrain"
|
|
4
4
|
}
|
|
5
|
+
export type MapView = {
|
|
6
|
+
east?: number;
|
|
7
|
+
floorID?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
mapStyle?: MapType;
|
|
10
|
+
name: string;
|
|
11
|
+
north?: number;
|
|
12
|
+
projectId: string;
|
|
13
|
+
projectName: string;
|
|
14
|
+
south?: number;
|
|
15
|
+
west?: number;
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CameraExid, Exid, DateType } from "
|
|
1
|
+
import type { CameraExid, Exid, DateType } from "@evercam/api/types";
|
|
2
2
|
export type MediaExid = Exid;
|
|
3
3
|
export type Media = {
|
|
4
4
|
project_exid?: string;
|
|
@@ -25,6 +25,7 @@ export type Media = {
|
|
|
25
25
|
projectExid?: string;
|
|
26
26
|
thumbnailUrl?: string;
|
|
27
27
|
mediaUrl?: string;
|
|
28
|
+
camera?: string;
|
|
28
29
|
};
|
|
29
30
|
export declare enum MediaType {
|
|
30
31
|
EditedImage = "edit",
|
|
@@ -7,11 +7,41 @@ export declare enum NotificationType {
|
|
|
7
7
|
DroneProcessing = "drone_processing_done",
|
|
8
8
|
Processing360 = "three_sixty_done"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface NotificationContextBase {
|
|
11
|
+
cameraExid?: string;
|
|
12
|
+
projectExid?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CameraShareContext extends NotificationContextBase {
|
|
11
15
|
cameraExid: string;
|
|
12
16
|
projectExid: string;
|
|
13
17
|
shareId: number;
|
|
14
18
|
}
|
|
19
|
+
export interface CameraStatusChangeContext extends NotificationContextBase {
|
|
20
|
+
cameraExid: string;
|
|
21
|
+
projectExid: string;
|
|
22
|
+
newStatus: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MentionContext extends NotificationContextBase {
|
|
25
|
+
}
|
|
26
|
+
export interface TimelapseCreatedContext extends NotificationContextBase {
|
|
27
|
+
cameraExid: string;
|
|
28
|
+
projectExid: string;
|
|
29
|
+
archiveExid: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TimelapseFailedContext extends NotificationContextBase {
|
|
32
|
+
cameraExid: string;
|
|
33
|
+
projectExid: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DroneProcessingContext extends NotificationContextBase {
|
|
36
|
+
projectExid: string;
|
|
37
|
+
droneDate: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Processing360Context extends NotificationContextBase {
|
|
40
|
+
projectExid: string;
|
|
41
|
+
date: string;
|
|
42
|
+
floor: string;
|
|
43
|
+
}
|
|
44
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
|
|
15
45
|
export type Notification = {
|
|
16
46
|
id: number;
|
|
17
47
|
type: NotificationType;
|
|
@@ -23,5 +53,5 @@ export type Notification = {
|
|
|
23
53
|
targetFullname: string;
|
|
24
54
|
targetEmail: string;
|
|
25
55
|
readTimestamp: string | null;
|
|
26
|
-
context:
|
|
56
|
+
context: NotificationContext;
|
|
27
57
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type OAuthClient = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
redirectUris: string[];
|
|
6
|
+
logoUrl: string | null;
|
|
7
|
+
scopes: string[];
|
|
8
|
+
active: boolean;
|
|
9
|
+
description: string | null;
|
|
10
|
+
owner: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
} | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
export type OAuthClientWithSecret = OAuthClient & {
|
|
19
|
+
clientSecret: string;
|
|
20
|
+
};
|
|
21
|
+
export type CreateOAuthClientPayload = {
|
|
22
|
+
name: string;
|
|
23
|
+
redirectUris: string[];
|
|
24
|
+
scopes?: string[];
|
|
25
|
+
description?: string;
|
|
26
|
+
logoUrl?: string;
|
|
27
|
+
};
|
|
28
|
+
export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
|
|
29
|
+
clientId?: string;
|
|
30
|
+
clientSecret?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateOAuthClientPayload = {
|
|
33
|
+
name?: string;
|
|
34
|
+
redirectUris?: string[];
|
|
35
|
+
scopes?: string[];
|
|
36
|
+
description?: string;
|
|
37
|
+
logoUrl?: string;
|
|
38
|
+
active?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type OAuthScopeDetail = {
|
|
41
|
+
scope: string;
|
|
42
|
+
description: string;
|
|
43
|
+
group: string;
|
|
44
|
+
};
|
|
45
|
+
export type OAuthConsentInfo = {
|
|
46
|
+
client: {
|
|
47
|
+
name: string;
|
|
48
|
+
logoUrl: string | null;
|
|
49
|
+
description: string | null;
|
|
50
|
+
};
|
|
51
|
+
scopes: OAuthScopeDetail[];
|
|
52
|
+
};
|
|
53
|
+
export type OAuthConsentPayload = {
|
|
54
|
+
clientId: string;
|
|
55
|
+
scope: string;
|
|
56
|
+
redirectUri: string;
|
|
57
|
+
state: string;
|
|
58
|
+
decision: "allow" | "deny";
|
|
59
|
+
};
|
|
60
|
+
export type OAuthConsentResponse = {
|
|
61
|
+
redirectUrl: string;
|
|
62
|
+
};
|
|
@@ -1,6 +1,39 @@
|
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
19
|
+
export type PolygonCoordinates = PolygonPath[];
|
|
20
|
+
export interface GeoJSONPolygon {
|
|
21
|
+
type: "Polygon";
|
|
22
|
+
coordinates: PolygonCoordinates;
|
|
23
|
+
}
|
|
24
|
+
export declare enum PlannerUrlParams {
|
|
25
|
+
SitePlanId = "site_plan_id",
|
|
26
|
+
IsNewSitePlan = "is_new_site_plan",
|
|
27
|
+
IsBoundsMode = "is_bounds_mode",
|
|
28
|
+
ProjectPosition = "project_position",
|
|
29
|
+
DealId = "deal_id"
|
|
30
|
+
}
|
|
1
31
|
export declare enum EDistortImageModes {
|
|
2
32
|
FreeRotate = "freeRotate",
|
|
3
|
-
Lock = "lock"
|
|
33
|
+
Lock = "lock",
|
|
34
|
+
Rotate = "rotate",
|
|
35
|
+
Scale = "scale",
|
|
36
|
+
Pan = "drag"
|
|
4
37
|
}
|
|
5
38
|
export declare enum EMapTypes {
|
|
6
39
|
Blank = "Blank",
|
|
@@ -30,3 +63,70 @@ export declare enum ERoles {
|
|
|
30
63
|
Admin = "admin",
|
|
31
64
|
User = "user"
|
|
32
65
|
}
|
|
66
|
+
export type PlannerOverlay = {
|
|
67
|
+
imageUrl?: string;
|
|
68
|
+
corners?: {
|
|
69
|
+
topLeft: GeoPoint;
|
|
70
|
+
topRight: GeoPoint;
|
|
71
|
+
bottomLeft: GeoPoint;
|
|
72
|
+
bottomRight: GeoPoint;
|
|
73
|
+
} | null;
|
|
74
|
+
};
|
|
75
|
+
export type PlannerCameraMarker = {
|
|
76
|
+
name?: string;
|
|
77
|
+
location?: GeoPoint;
|
|
78
|
+
heading?: number;
|
|
79
|
+
fovAngle?: number;
|
|
80
|
+
fovRadius?: number;
|
|
81
|
+
isVisible?: boolean;
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
export type SitePlanBounds = {
|
|
85
|
+
northEast: GeoPoint;
|
|
86
|
+
southWest: GeoPoint;
|
|
87
|
+
};
|
|
88
|
+
export type SitePlan = {
|
|
89
|
+
id?: string;
|
|
90
|
+
projectId?: string;
|
|
91
|
+
owner?: string;
|
|
92
|
+
lastUpdatedBy?: string;
|
|
93
|
+
projectName?: string;
|
|
94
|
+
projectLocation?: string;
|
|
95
|
+
projectMapType?: EMapTypes;
|
|
96
|
+
projectBounds?: SitePlanBounds;
|
|
97
|
+
overlay?: PlannerOverlay;
|
|
98
|
+
markers?: PlannerCameraMarker[];
|
|
99
|
+
thumbnailUrl?: string;
|
|
100
|
+
createdDate?: string;
|
|
101
|
+
updatedDate?: string;
|
|
102
|
+
};
|
|
103
|
+
export interface IDrawControl {
|
|
104
|
+
_toolbars: {
|
|
105
|
+
draw: {
|
|
106
|
+
_activeMode: {
|
|
107
|
+
handler: {
|
|
108
|
+
disable(): void;
|
|
109
|
+
completeShape(): void;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
_modes: {
|
|
113
|
+
polygon: {
|
|
114
|
+
handler: {
|
|
115
|
+
enable(): void;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
edit: {
|
|
121
|
+
_modes: {
|
|
122
|
+
edit: {
|
|
123
|
+
handler: {
|
|
124
|
+
enable(): void;
|
|
125
|
+
disable(): void;
|
|
126
|
+
save(): void;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -16,3 +16,18 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUserParams = {
|
|
20
|
+
firstname?: string;
|
|
21
|
+
lastname?: string;
|
|
22
|
+
email: string;
|
|
23
|
+
telephone?: string;
|
|
24
|
+
country?: string;
|
|
25
|
+
isAdmin?: boolean;
|
|
26
|
+
persona?: string;
|
|
27
|
+
companyExid: string;
|
|
28
|
+
companyName: string;
|
|
29
|
+
isImpersonationLogin: boolean;
|
|
30
|
+
ImpersonatedUserEmail?: string;
|
|
31
|
+
ImpersonatedUserFirstname?: string;
|
|
32
|
+
impersonatedUserLastname?: string;
|
|
33
|
+
};
|
|
@@ -44,7 +44,7 @@ export type ProcoreObservationSpecificationSection = {
|
|
|
44
44
|
label: string;
|
|
45
45
|
currentRevisionId: number;
|
|
46
46
|
};
|
|
47
|
-
export type
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
48
|
accountingProjectNumber?: number;
|
|
49
49
|
active: boolean;
|
|
50
50
|
address: string;
|
|
@@ -85,7 +85,8 @@ export type ProcoreUserProjectsResponsePayload = Array<{
|
|
|
85
85
|
totalValue: string;
|
|
86
86
|
updatedAt: string;
|
|
87
87
|
zip: number;
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
89
90
|
export type ProcoreToolUserAccessLevel = {
|
|
90
91
|
id: ProcoreToolUserAccessLevelIds;
|
|
91
92
|
name: string;
|
|
@@ -120,7 +121,7 @@ export type ProcoreEditedImageUploadRequestPayload = {
|
|
|
120
121
|
snapshot: string;
|
|
121
122
|
categoryId?: number;
|
|
122
123
|
};
|
|
123
|
-
export type
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
124
125
|
count: number;
|
|
125
126
|
coverPhoto: string | null;
|
|
126
127
|
createdAt: string;
|
|
@@ -134,8 +135,9 @@ export type ProcoreProjectsAlbumsPayload = Array<{
|
|
|
134
135
|
position: number;
|
|
135
136
|
private: boolean;
|
|
136
137
|
updatedAt: string;
|
|
137
|
-
}
|
|
138
|
-
export type
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
139
141
|
id: number;
|
|
140
142
|
name: string;
|
|
141
143
|
localizedName: string;
|
|
@@ -147,12 +149,17 @@ export type ProcoreObservationTypesResponsePayload = Array<{
|
|
|
147
149
|
parentInactive: boolean;
|
|
148
150
|
isUse: boolean;
|
|
149
151
|
nameTranslations: string;
|
|
150
|
-
}
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
151
154
|
export type ProcoreObservationFormRequestPayload = {
|
|
152
155
|
projectId: number;
|
|
153
156
|
companyId: number;
|
|
154
157
|
observationType: string;
|
|
155
158
|
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
156
163
|
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
157
164
|
export type ProcoreObservationField = {
|
|
158
165
|
name: string;
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type Automation = {
|
|
3
|
-
cameraIds: string;
|
|
4
|
-
cameraNames: number;
|
|
5
|
-
cameraExids?: string[];
|
|
6
|
-
createdAt: string;
|
|
7
|
-
id: number;
|
|
8
|
-
provider: string;
|
|
9
|
-
type: AutomationType;
|
|
10
|
-
config: Partial<{
|
|
11
|
-
recipients: string | Record<string, string>[];
|
|
12
|
-
companyId: number;
|
|
13
|
-
compareDelay: number;
|
|
14
|
-
categoryId: string;
|
|
15
|
-
hubId: string;
|
|
16
|
-
folderId: string;
|
|
17
|
-
projectId: number;
|
|
18
|
-
}>;
|
|
19
|
-
isPaused: boolean;
|
|
20
|
-
notifyDays: string | string[];
|
|
21
|
-
notifyTime: string;
|
|
22
|
-
requesterEmail: string;
|
|
23
|
-
requesterName: string;
|
|
24
|
-
timezone: string;
|
|
25
|
-
title: string;
|
|
26
|
-
compareDelay?: number;
|
|
27
|
-
selectedProvider?: string;
|
|
28
|
-
restrictedCameraExids?: string[];
|
|
29
|
-
recipients?: string | string[];
|
|
30
|
-
};
|
|
1
|
+
import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
|
|
31
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
32
3
|
cameraExids?: string;
|
|
33
4
|
notifyDays?: string;
|
|
@@ -37,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
|
37
8
|
type?: string;
|
|
38
9
|
config?: {
|
|
39
10
|
compareDelay?: AutomationType;
|
|
11
|
+
period?: number;
|
|
40
12
|
recipients?: string;
|
|
41
13
|
projectId?: number;
|
|
42
14
|
companyId?: number;
|
|
@@ -53,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
53
25
|
export type ProgressPhotosResponsePayload = {
|
|
54
26
|
progressPhotos: Automation[];
|
|
55
27
|
};
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
56
31
|
export declare enum AutomationDialogType {
|
|
57
32
|
Create = "create",
|
|
58
33
|
Edit = "edit",
|
|
@@ -99,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
99
74
|
cameraIds: string;
|
|
100
75
|
failedCameraIds: string;
|
|
101
76
|
subject: string;
|
|
102
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
103
78
|
};
|