@evercam/api 1.0.0-a6868d86c → 1.0.0-a7ddee781
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 +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +198 -14
- package/dist/api/api/adminApi.d.ts +83 -70
- package/dist/api/api/aiApi.d.ts +99 -55
- package/dist/api/api/authzApi.d.ts +26 -17
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +124 -99
- package/dist/api/api/evercamLabsApi.d.ts +7 -8
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +106 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +175 -56
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +110 -58
- package/dist/api/types/anpr.d.ts +48 -2
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +45 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +17 -11
- package/dist/api/types/bim.d.ts +36 -5
- package/dist/api/types/camera.d.ts +93 -94
- package/dist/api/types/comments.d.ts +10 -11
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +4 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +22 -18
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +47 -58
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- 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 +110 -3
- package/dist/api/types/kit.d.ts +25 -9
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- 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 +97 -0
- package/dist/api/types/posthog.d.ts +35 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +101 -21
- package/dist/api/types/recording.d.ts +8 -12
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +30 -4
- 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 +81 -41
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +49 -4
- 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 +0 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +102 -32
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1855 -904
- 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 +146 -16
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -2,6 +2,7 @@ export * from "./360";
|
|
|
2
2
|
export * from "./aconex";
|
|
3
3
|
export * from "./analytics";
|
|
4
4
|
export * from "./anpr";
|
|
5
|
+
export * from "./admin";
|
|
5
6
|
export * from "./media";
|
|
6
7
|
export * from "./autodesk";
|
|
7
8
|
export * from "./bim";
|
|
@@ -29,8 +30,9 @@ export * from "./shares";
|
|
|
29
30
|
export * from "./sim";
|
|
30
31
|
export * from "./systemCheck";
|
|
31
32
|
export * from "./planner";
|
|
32
|
-
export * from "./
|
|
33
|
+
export * from "./storageProvider";
|
|
33
34
|
export * from "./streaming";
|
|
35
|
+
export * from "./storyblok";
|
|
34
36
|
export * from "./time";
|
|
35
37
|
export * from "./timelapse";
|
|
36
38
|
export * from "./user";
|
|
@@ -47,6 +49,7 @@ export * from "./kit";
|
|
|
47
49
|
export * from "./auditLogs";
|
|
48
50
|
export * from "./snapshots";
|
|
49
51
|
export * from "./siteAnalytics";
|
|
52
|
+
export * from "./siteAnalyticsManagement";
|
|
50
53
|
export * from "./widget";
|
|
51
54
|
export * from "./countries";
|
|
52
55
|
export * from "./automation";
|
|
@@ -57,3 +60,9 @@ export * from "./xweather";
|
|
|
57
60
|
export * from "./posthog";
|
|
58
61
|
export * from "./recycleBin";
|
|
59
62
|
export * from "./authz";
|
|
63
|
+
export * from "./oauth";
|
|
64
|
+
export * from "./ring";
|
|
65
|
+
export * from "./smartSeach";
|
|
66
|
+
export * from "./siteView";
|
|
67
|
+
export * from "./aiConfigs";
|
|
68
|
+
export * from "./gateReportManagement";
|
|
@@ -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",
|
|
@@ -15,7 +16,14 @@ export declare enum MobileAssetsType {
|
|
|
15
16
|
}
|
|
16
17
|
export declare enum IngestVersions {
|
|
17
18
|
V1 = "v1",
|
|
18
|
-
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"
|
|
19
27
|
}
|
|
20
28
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
21
29
|
projectId: string;
|
|
@@ -23,6 +31,36 @@ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
|
23
31
|
token: string;
|
|
24
32
|
processingStatus: IngestProcessingStatus;
|
|
25
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
|
+
processingLog: string;
|
|
52
|
+
uploadedBy: string;
|
|
53
|
+
processingStatus: IngestProcessingStatus | string;
|
|
54
|
+
modelCesiumAssetId: string;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
hasTusLinks: boolean;
|
|
57
|
+
aerialShots: AerialShotItem[];
|
|
58
|
+
};
|
|
59
|
+
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
60
|
+
export type DroneQueueResponse = {
|
|
61
|
+
size: number;
|
|
62
|
+
assetsDrone: DroneUploadItem[];
|
|
63
|
+
};
|
|
26
64
|
export type DroneUploadUpdateRequestPayload = {
|
|
27
65
|
flightMetadata: {
|
|
28
66
|
dateTime: string;
|
|
@@ -34,18 +72,87 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
34
72
|
title: string;
|
|
35
73
|
fileExtension: string;
|
|
36
74
|
}[];
|
|
75
|
+
aerialShots: {
|
|
76
|
+
url: string;
|
|
77
|
+
title: string;
|
|
78
|
+
fileExtension: string;
|
|
79
|
+
gpsLatitude: string;
|
|
80
|
+
gpsLongitude: string;
|
|
81
|
+
gpsAltitude: string;
|
|
82
|
+
}[];
|
|
37
83
|
projectName: string;
|
|
38
84
|
};
|
|
39
85
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
40
86
|
date: DateType;
|
|
41
|
-
points: [
|
|
87
|
+
points: TuplePoint2D[];
|
|
42
88
|
operation: string;
|
|
43
89
|
};
|
|
44
90
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
45
91
|
date: DateType;
|
|
46
92
|
};
|
|
93
|
+
export type AerialShotItem = {
|
|
94
|
+
id: number;
|
|
95
|
+
droneUploadId: number;
|
|
96
|
+
fileLink: string;
|
|
97
|
+
thumbnailLink: string;
|
|
98
|
+
gpsLatitude: string;
|
|
99
|
+
gpsLongitude: string;
|
|
100
|
+
gpsAltitude: string;
|
|
101
|
+
};
|
|
47
102
|
export type InspectionToolRequestPayload = {
|
|
48
103
|
date: DateType;
|
|
49
104
|
gpsAltitude: string;
|
|
50
105
|
gpsCoordinates: string;
|
|
51
106
|
};
|
|
107
|
+
export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
|
|
108
|
+
export type _360AssetsCountsDay = {
|
|
109
|
+
day: number;
|
|
110
|
+
walks?: number;
|
|
111
|
+
mobilePhotos?: number;
|
|
112
|
+
[key: string]: JsonValue | undefined;
|
|
113
|
+
};
|
|
114
|
+
export type _360AssetsCountsResponse = {
|
|
115
|
+
days: _360AssetsCountsDay[];
|
|
116
|
+
};
|
|
117
|
+
export type _360QueueResponse = {
|
|
118
|
+
size: number;
|
|
119
|
+
assets360: _360WalkV2[];
|
|
120
|
+
};
|
|
121
|
+
export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
|
|
122
|
+
export type BimUploadItem = {
|
|
123
|
+
id: number;
|
|
124
|
+
projectId: string;
|
|
125
|
+
uploadedBy: string;
|
|
126
|
+
files: string[];
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
archive?: string | null;
|
|
129
|
+
};
|
|
130
|
+
export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
|
|
131
|
+
export type IngestUploadInitResponse = {
|
|
132
|
+
id: number;
|
|
133
|
+
projectId: string;
|
|
134
|
+
token?: string;
|
|
135
|
+
projectName?: string;
|
|
136
|
+
};
|
|
137
|
+
export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
138
|
+
projectId?: string;
|
|
139
|
+
project_id?: string;
|
|
140
|
+
assetType?: MobileAssetsType | string;
|
|
141
|
+
date?: DateType;
|
|
142
|
+
isPaginated?: boolean;
|
|
143
|
+
};
|
|
144
|
+
export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
|
|
145
|
+
id: string;
|
|
146
|
+
projectId?: string;
|
|
147
|
+
uploadedBy: string;
|
|
148
|
+
updatedAt: string;
|
|
149
|
+
assetType: string;
|
|
150
|
+
thumbnailUrl: string;
|
|
151
|
+
}> | Array<{
|
|
152
|
+
id: string;
|
|
153
|
+
projectId?: string;
|
|
154
|
+
uploadedBy: string;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
assetType: string;
|
|
157
|
+
thumbnailUrl: string;
|
|
158
|
+
}>;
|
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;
|
|
@@ -45,11 +45,14 @@ export declare enum KitAlarm {
|
|
|
45
45
|
NoHdd = "no_hdd",
|
|
46
46
|
MissingRouterInfo = "missing_router_info",
|
|
47
47
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
48
|
+
LowBattery = "low_battery",
|
|
49
|
+
GeneratorOff = "generator_off"
|
|
49
50
|
}
|
|
50
51
|
export declare enum KitMetricId {
|
|
51
52
|
SolarCharger = "solar_charger",
|
|
52
|
-
PanelPower = "panel_power"
|
|
53
|
+
PanelPower = "panel_power",
|
|
54
|
+
Fan = "fan",
|
|
55
|
+
FanTemperature = "fan_temperature"
|
|
53
56
|
}
|
|
54
57
|
export declare enum KitMetricPeriod {
|
|
55
58
|
Last15Minutes = "now-15m",
|
|
@@ -305,6 +308,19 @@ export type KitCreatePayload = {
|
|
|
305
308
|
region: KitRegion;
|
|
306
309
|
};
|
|
307
310
|
};
|
|
311
|
+
export type KitMetricStatsEntry = {
|
|
312
|
+
timestamp: string;
|
|
313
|
+
voltage: number;
|
|
314
|
+
current: number;
|
|
315
|
+
panelVoltage: number;
|
|
316
|
+
panelPower: number;
|
|
317
|
+
};
|
|
318
|
+
export type KitFanStatsEntry = {
|
|
319
|
+
timestamp: string;
|
|
320
|
+
speed: number;
|
|
321
|
+
internalTemperature: number;
|
|
322
|
+
externalTemperature: number | null;
|
|
323
|
+
};
|
|
308
324
|
export type KitUpdatePayload = {
|
|
309
325
|
countryId: number;
|
|
310
326
|
name: string;
|
|
@@ -329,8 +345,8 @@ export type KitStorage = {
|
|
|
329
345
|
formFactor: string;
|
|
330
346
|
};
|
|
331
347
|
model: string;
|
|
332
|
-
insertedAt:
|
|
333
|
-
updatedAt:
|
|
348
|
+
insertedAt: string;
|
|
349
|
+
updatedAt: string;
|
|
334
350
|
vendor: string;
|
|
335
351
|
kitId: number;
|
|
336
352
|
capacity: number;
|
|
@@ -352,16 +368,16 @@ export type KitAlarmItem = {
|
|
|
352
368
|
id: number;
|
|
353
369
|
kitId: number;
|
|
354
370
|
alarm: KitAlarm;
|
|
355
|
-
startDate:
|
|
356
|
-
endDate:
|
|
371
|
+
startDate: string;
|
|
372
|
+
endDate: string | null;
|
|
357
373
|
};
|
|
358
374
|
export type KitBox = {
|
|
359
375
|
id: string;
|
|
360
376
|
gatewaySerial: string;
|
|
361
377
|
gatewayMac: string;
|
|
362
378
|
gatewayConfig: Record<string, unknown> | null;
|
|
363
|
-
insertedAt:
|
|
364
|
-
updatedAt:
|
|
379
|
+
insertedAt: string;
|
|
380
|
+
updatedAt: string;
|
|
365
381
|
};
|
|
366
382
|
export type KitBoxCreatePayload = {
|
|
367
383
|
id?: string;
|
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",
|
|
@@ -92,7 +93,7 @@ export type MediaCreateRequestPayload = {
|
|
|
92
93
|
cameraExid?: string;
|
|
93
94
|
requestedBy?: string;
|
|
94
95
|
notes?: string;
|
|
95
|
-
category?: ClipsCategory;
|
|
96
|
+
category?: MediaCategory | ClipsCategory;
|
|
96
97
|
isUrgent?: boolean;
|
|
97
98
|
storeAsType?: MediaType;
|
|
98
99
|
};
|
|
@@ -107,6 +108,11 @@ export declare enum ClipsCategory {
|
|
|
107
108
|
Marketing = "marketing",
|
|
108
109
|
BestPracticies = "best_practices"
|
|
109
110
|
}
|
|
111
|
+
export declare enum MediaCategory {
|
|
112
|
+
Weather = "weather",
|
|
113
|
+
SmartSearch = "smart_search",
|
|
114
|
+
Copilot = "copilot"
|
|
115
|
+
}
|
|
110
116
|
export type MediaDeleteRequestPayload = {
|
|
111
117
|
timelapseIds: (string | number)[];
|
|
112
118
|
compareIds: (string | number)[];
|
|
@@ -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,3 +1,33 @@
|
|
|
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
33
|
Lock = "lock",
|
|
@@ -33,3 +63,70 @@ export declare enum ERoles {
|
|
|
33
63
|
Admin = "admin",
|
|
34
64
|
User = "user"
|
|
35
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,38 @@ export declare enum ActiveUsersMetric {
|
|
|
16
16
|
WAU = "wau",
|
|
17
17
|
MAU = "mau"
|
|
18
18
|
}
|
|
19
|
+
export type PosthogUser = {
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
isWeeklyActiveUser: number;
|
|
23
|
+
isMonthlyActiveUser: number;
|
|
24
|
+
eventsCount: number;
|
|
25
|
+
};
|
|
26
|
+
export type PosthogUsersRequestParams = {
|
|
27
|
+
companyExid?: string;
|
|
28
|
+
projectExid?: string;
|
|
29
|
+
cameraExid?: string;
|
|
30
|
+
productsActivityOnly?: boolean;
|
|
31
|
+
afterId?: string;
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export type PosthogUsersResponse = {
|
|
35
|
+
data: PosthogUser[];
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
size: number;
|
|
38
|
+
};
|
|
39
|
+
export type PosthogUserParams = {
|
|
40
|
+
firstname?: string;
|
|
41
|
+
lastname?: string;
|
|
42
|
+
email: string;
|
|
43
|
+
telephone?: string;
|
|
44
|
+
country?: string;
|
|
45
|
+
isAdmin?: boolean;
|
|
46
|
+
persona?: string;
|
|
47
|
+
companyExid: string;
|
|
48
|
+
companyName: string;
|
|
49
|
+
isImpersonationLogin: boolean;
|
|
50
|
+
ImpersonatedUserEmail?: string;
|
|
51
|
+
ImpersonatedUserFirstname?: string;
|
|
52
|
+
impersonatedUserLastname?: string;
|
|
53
|
+
};
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { Automation, AutomationType,
|
|
1
|
+
import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
3
3
|
cameraExids?: string;
|
|
4
4
|
notifyDays?: string;
|
|
@@ -8,6 +8,7 @@ export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
|
8
8
|
type?: string;
|
|
9
9
|
config?: {
|
|
10
10
|
compareDelay?: AutomationType;
|
|
11
|
+
period?: number;
|
|
11
12
|
recipients?: string;
|
|
12
13
|
projectId?: number;
|
|
13
14
|
companyId?: number;
|
|
@@ -24,6 +25,9 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
24
25
|
export type ProgressPhotosResponsePayload = {
|
|
25
26
|
progressPhotos: Automation[];
|
|
26
27
|
};
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
27
31
|
export declare enum AutomationDialogType {
|
|
28
32
|
Create = "create",
|
|
29
33
|
Edit = "edit",
|
|
@@ -70,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
70
74
|
cameraIds: string;
|
|
71
75
|
failedCameraIds: string;
|
|
72
76
|
subject: string;
|
|
73
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
74
78
|
};
|