@evercam/api 1.0.0-cfcbc946a → 1.0.0-d0847b9fa
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 +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +217 -0
- package/dist/api/api/adminApi.d.ts +381 -0
- package/dist/api/api/aiApi.d.ts +214 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +357 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +162 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +375 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +242 -0
- package/dist/{types → api/types}/analytics.d.ts +220 -80
- package/dist/{types → api/types}/anpr.d.ts +56 -13
- package/dist/{types → api/types}/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +114 -0
- package/dist/{types → api/types}/axios.d.ts +31 -11
- package/dist/{types → api/types}/bim.d.ts +38 -9
- package/dist/{types → api/types}/camera.d.ts +118 -151
- package/dist/api/types/comments.d.ts +58 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +11 -9
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +117 -0
- package/dist/api/types/drone.d.ts +107 -0
- package/dist/{types → api/types}/errors.d.ts +25 -0
- package/dist/{types → api/types}/gateReport.d.ts +49 -168
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +21 -3
- package/dist/api/types/ingest.d.ts +234 -0
- package/dist/{types → api/types}/kit.d.ts +130 -56
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +10 -3
- package/dist/api/types/notification.d.ts +96 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +124 -0
- package/dist/api/types/posthog.d.ts +53 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +254 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -9
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +31 -38
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -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 +104 -0
- package/dist/api/types/socket.d.ts +4 -0
- 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 +27 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +7 -11
- package/dist/{types → api/types}/user.d.ts +106 -40
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2918 -1085
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +374 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +7 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +8 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -304
- package/dist/api/aiApi.d.ts +0 -110
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -27
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/connector.d.ts +0 -16
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -19
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
}
|
|
31
|
+
export declare enum EDistortImageModes {
|
|
32
|
+
FreeRotate = "freeRotate",
|
|
33
|
+
Lock = "lock",
|
|
34
|
+
Rotate = "rotate",
|
|
35
|
+
Scale = "scale",
|
|
36
|
+
Pan = "drag"
|
|
37
|
+
}
|
|
38
|
+
export declare enum EMapTypes {
|
|
39
|
+
Blank = "Blank",
|
|
40
|
+
Satellite = "Satellite",
|
|
41
|
+
Street = "Street",
|
|
42
|
+
GoogleSatellite = "hybrid",
|
|
43
|
+
GoogleStreet = "roadmap",
|
|
44
|
+
GoogleTerrain = "terrain"
|
|
45
|
+
}
|
|
46
|
+
export declare enum EMarkers {
|
|
47
|
+
CameraMarker = "cameraMarker",
|
|
48
|
+
ThreeSixtyMarker = "threeSixtyMarkers"
|
|
49
|
+
}
|
|
50
|
+
export declare enum EPageType {
|
|
51
|
+
List = "list",
|
|
52
|
+
Item = "item"
|
|
53
|
+
}
|
|
54
|
+
export declare enum ERoles {
|
|
55
|
+
Admin = "admin",
|
|
56
|
+
User = "user"
|
|
57
|
+
}
|
|
58
|
+
export type PlannerOverlay = {
|
|
59
|
+
imageUrl?: string;
|
|
60
|
+
corners?: {
|
|
61
|
+
topLeft: GeoPoint;
|
|
62
|
+
topRight: GeoPoint;
|
|
63
|
+
bottomLeft: GeoPoint;
|
|
64
|
+
bottomRight: GeoPoint;
|
|
65
|
+
} | null;
|
|
66
|
+
};
|
|
67
|
+
export type PlannerCameraMarker = {
|
|
68
|
+
name?: string;
|
|
69
|
+
location?: GeoPoint;
|
|
70
|
+
heading?: number;
|
|
71
|
+
fovAngle?: number;
|
|
72
|
+
fovRadius?: number;
|
|
73
|
+
isVisible?: boolean;
|
|
74
|
+
color?: string;
|
|
75
|
+
};
|
|
76
|
+
export type SitePlanBounds = {
|
|
77
|
+
northEast: GeoPoint;
|
|
78
|
+
southWest: GeoPoint;
|
|
79
|
+
};
|
|
80
|
+
export type SitePlan = {
|
|
81
|
+
id?: string;
|
|
82
|
+
projectId?: string;
|
|
83
|
+
owner?: string;
|
|
84
|
+
lastUpdatedBy?: string;
|
|
85
|
+
projectName?: string;
|
|
86
|
+
projectLocation?: string;
|
|
87
|
+
projectMapType?: EMapTypes;
|
|
88
|
+
projectBounds?: SitePlanBounds;
|
|
89
|
+
overlay?: PlannerOverlay;
|
|
90
|
+
markers?: PlannerCameraMarker[];
|
|
91
|
+
thumbnailUrl?: string;
|
|
92
|
+
createdDate?: string;
|
|
93
|
+
updatedDate?: string;
|
|
94
|
+
};
|
|
95
|
+
export interface IDrawControl {
|
|
96
|
+
_toolbars: {
|
|
97
|
+
draw: {
|
|
98
|
+
_activeMode: {
|
|
99
|
+
handler: {
|
|
100
|
+
disable(): void;
|
|
101
|
+
completeShape(): void;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
_modes: {
|
|
105
|
+
polygon: {
|
|
106
|
+
handler: {
|
|
107
|
+
enable(): void;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
edit: {
|
|
113
|
+
_modes: {
|
|
114
|
+
edit: {
|
|
115
|
+
handler: {
|
|
116
|
+
enable(): void;
|
|
117
|
+
disable(): void;
|
|
118
|
+
save(): void;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type ActiveUsersRequestPayload = {
|
|
2
|
+
from?: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
companyExid?: string;
|
|
5
|
+
projectExid?: string;
|
|
6
|
+
cameraExid?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ActiveUsersResponsePayload = Array<{
|
|
9
|
+
date?: string;
|
|
10
|
+
dau?: number;
|
|
11
|
+
wau?: number;
|
|
12
|
+
mau?: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare enum ActiveUsersMetric {
|
|
15
|
+
DAU = "dau",
|
|
16
|
+
WAU = "wau",
|
|
17
|
+
MAU = "mau"
|
|
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
|
+
};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
export type ProcoreUserCompaniesResponsePayload = Array<{
|
|
2
|
+
id: number;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type ProcoreCompanyRequestPayload = {
|
|
7
|
+
companyId: number;
|
|
8
|
+
};
|
|
9
|
+
export type ProcoreProjectRequestPayload = {
|
|
10
|
+
companyId: number;
|
|
11
|
+
projectId: number;
|
|
12
|
+
};
|
|
13
|
+
export type ProcoreObservationListItem = {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
export type ProcoreObservationDefaultList = Array<ProcoreObservationListItem & {
|
|
18
|
+
active: boolean;
|
|
19
|
+
global: boolean;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type ProcoreObservationAssignee = ProcoreObservationListItem & {
|
|
24
|
+
vendor: ProcoreObservationListItem;
|
|
25
|
+
};
|
|
26
|
+
export type ProcoreObservationDistributionMember = ProcoreObservationListItem & {
|
|
27
|
+
login: string;
|
|
28
|
+
};
|
|
29
|
+
export type ProcoreObservationTrades = ProcoreObservationListItem & {
|
|
30
|
+
active: boolean;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
};
|
|
33
|
+
export type ProcoreObservationLocation = ProcoreObservationListItem & {
|
|
34
|
+
nodeName: string;
|
|
35
|
+
parentId: number;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
code: string;
|
|
39
|
+
};
|
|
40
|
+
export type ProcoreObservationSpecificationSection = {
|
|
41
|
+
id: number;
|
|
42
|
+
number: string;
|
|
43
|
+
description: string;
|
|
44
|
+
label: string;
|
|
45
|
+
currentRevisionId: number;
|
|
46
|
+
};
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
|
+
accountingProjectNumber?: number;
|
|
49
|
+
active: boolean;
|
|
50
|
+
address: string;
|
|
51
|
+
city: string;
|
|
52
|
+
company: {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
completionDate: string;
|
|
57
|
+
countryCode: string;
|
|
58
|
+
county: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
customFields?: object;
|
|
61
|
+
designatedMarketArea: string;
|
|
62
|
+
displayName: string;
|
|
63
|
+
estimatedValue: string;
|
|
64
|
+
id: number;
|
|
65
|
+
isDemo: boolean;
|
|
66
|
+
latitude: number;
|
|
67
|
+
longitude: number;
|
|
68
|
+
name: string;
|
|
69
|
+
originCode: string | number | null;
|
|
70
|
+
originData: string | null;
|
|
71
|
+
originId: number | null;
|
|
72
|
+
ownersProjectId: number | null;
|
|
73
|
+
parentJobId: number | null;
|
|
74
|
+
phone: string | number;
|
|
75
|
+
photoId: number;
|
|
76
|
+
projectBidTypeId: number | null;
|
|
77
|
+
projectNumber: string;
|
|
78
|
+
projectOwnerTypeId: number | null;
|
|
79
|
+
projectRegionId: number | null;
|
|
80
|
+
stage: string;
|
|
81
|
+
startDate: string;
|
|
82
|
+
stateCode: string;
|
|
83
|
+
storeNumber?: string;
|
|
84
|
+
timeZone: string;
|
|
85
|
+
totalValue: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
zip: number;
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
90
|
+
export type ProcoreToolUserAccessLevel = {
|
|
91
|
+
id: ProcoreToolUserAccessLevelIds;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
export type ProcoreToolPermittedAction = {
|
|
95
|
+
id: number;
|
|
96
|
+
actionName: string;
|
|
97
|
+
label: string;
|
|
98
|
+
toolName: string;
|
|
99
|
+
};
|
|
100
|
+
export type ProcoreToolPermissions = {
|
|
101
|
+
id: number;
|
|
102
|
+
name: string;
|
|
103
|
+
friendlyName: string;
|
|
104
|
+
domainId: number;
|
|
105
|
+
tabGroup: string;
|
|
106
|
+
availableForUser: boolean;
|
|
107
|
+
url: string;
|
|
108
|
+
userAccessLevel: ProcoreToolUserAccessLevel;
|
|
109
|
+
permittedActions: Array<ProcoreToolPermittedAction>;
|
|
110
|
+
createUrl: string;
|
|
111
|
+
canCreate: boolean;
|
|
112
|
+
trial: boolean;
|
|
113
|
+
};
|
|
114
|
+
export type ProcoreUserProjectPermissionsResponsePayload = {
|
|
115
|
+
tools: Array<ProcoreToolPermissions>;
|
|
116
|
+
};
|
|
117
|
+
export type ProcoreEditedImageUploadRequestPayload = {
|
|
118
|
+
projectExid: string;
|
|
119
|
+
companyId: number;
|
|
120
|
+
projectId: number;
|
|
121
|
+
snapshot: string;
|
|
122
|
+
categoryId?: number;
|
|
123
|
+
};
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
125
|
+
count: number;
|
|
126
|
+
coverPhoto: string | null;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
id: number;
|
|
129
|
+
links: {
|
|
130
|
+
delete: string;
|
|
131
|
+
show: string;
|
|
132
|
+
update: string;
|
|
133
|
+
};
|
|
134
|
+
name: string;
|
|
135
|
+
position: number;
|
|
136
|
+
private: boolean;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
141
|
+
id: number;
|
|
142
|
+
name: string;
|
|
143
|
+
localizedName: string;
|
|
144
|
+
category: string;
|
|
145
|
+
categoryKey: string;
|
|
146
|
+
companyActive: boolean;
|
|
147
|
+
active: boolean;
|
|
148
|
+
kind: string;
|
|
149
|
+
parentInactive: boolean;
|
|
150
|
+
isUse: boolean;
|
|
151
|
+
nameTranslations: string;
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
154
|
+
export type ProcoreObservationFormRequestPayload = {
|
|
155
|
+
projectId: number;
|
|
156
|
+
companyId: number;
|
|
157
|
+
observationType: string;
|
|
158
|
+
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
163
|
+
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
164
|
+
export type ProcoreObservationField = {
|
|
165
|
+
name: string;
|
|
166
|
+
required: boolean;
|
|
167
|
+
visible: boolean;
|
|
168
|
+
};
|
|
169
|
+
export type ProcoreObservationCustomField = {
|
|
170
|
+
id: number;
|
|
171
|
+
required: boolean;
|
|
172
|
+
visible: boolean;
|
|
173
|
+
name: string;
|
|
174
|
+
label: string;
|
|
175
|
+
description: string;
|
|
176
|
+
customFieldDefinitionId: number;
|
|
177
|
+
dataType: ProcoreObservationCustomFieldDataType;
|
|
178
|
+
variant: string;
|
|
179
|
+
position: number;
|
|
180
|
+
row: number;
|
|
181
|
+
column: number;
|
|
182
|
+
columnWidth: number;
|
|
183
|
+
optionsUrl: string | null;
|
|
184
|
+
defaultValue: string | null;
|
|
185
|
+
};
|
|
186
|
+
export type ProcoreNextObservationAvailableNumber = {
|
|
187
|
+
nextAvailableNumber: number;
|
|
188
|
+
};
|
|
189
|
+
export declare enum ProcoreObservationCustomFieldDataType {
|
|
190
|
+
RichText = "rich_text",
|
|
191
|
+
Date = "date",
|
|
192
|
+
DateTime = "datetime",
|
|
193
|
+
LovEntry = "lov_entry",
|
|
194
|
+
LovEntries = "lov_entries",
|
|
195
|
+
Boolean = "boolean",
|
|
196
|
+
Vendor = "vendor",
|
|
197
|
+
Decimal = "decimal",
|
|
198
|
+
String = "string",
|
|
199
|
+
LoginInformation = "login_information",
|
|
200
|
+
LoginInformations = "login_informations",
|
|
201
|
+
Dropdown = "dropdown"
|
|
202
|
+
}
|
|
203
|
+
export declare enum ProcoreObservationDefaultFieldNames {
|
|
204
|
+
Number = "number",
|
|
205
|
+
Name = "name",
|
|
206
|
+
Status = "status",
|
|
207
|
+
Trade = "tradeId",
|
|
208
|
+
Assignee = "assigneeId",
|
|
209
|
+
DueDate = "dueDate",
|
|
210
|
+
SpecificationSection = "specificationSectionId",
|
|
211
|
+
Priority = "priority",
|
|
212
|
+
Location = "locationId",
|
|
213
|
+
DistributionMembers = "distributionMemberIds",
|
|
214
|
+
Personal = "personal",
|
|
215
|
+
Hazard = "hazardId",
|
|
216
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
217
|
+
ContributingCondition = "contributingConditionId",
|
|
218
|
+
Description = "description"
|
|
219
|
+
}
|
|
220
|
+
export declare enum ProcoreTools {
|
|
221
|
+
Observations = "observations",
|
|
222
|
+
ProgressPhotos = "images"
|
|
223
|
+
}
|
|
224
|
+
export declare enum ProcoreToolUserAccessLevelIds {
|
|
225
|
+
NoAccess = 1,
|
|
226
|
+
ReadOnly = 2,
|
|
227
|
+
Standard = 3,
|
|
228
|
+
Admin = 4
|
|
229
|
+
}
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ProgressPhoto = {
|
|
3
|
-
cameraIds: string;
|
|
4
|
-
cameraNames: number;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
id: number;
|
|
7
|
-
provider: string;
|
|
8
|
-
config: Partial<{
|
|
9
|
-
recipients: string;
|
|
10
|
-
projectId: number;
|
|
11
|
-
companyId: number;
|
|
12
|
-
}>;
|
|
13
|
-
isPaused: boolean;
|
|
14
|
-
notifyDays: string;
|
|
15
|
-
notifyTime: string;
|
|
16
|
-
requesterEmail: string;
|
|
17
|
-
requesterName: string;
|
|
18
|
-
timezone: string;
|
|
19
|
-
title: string;
|
|
20
|
-
};
|
|
1
|
+
import { Automation, AutomationType, DateType, PaginationParams } from "@evercam/api/types";
|
|
21
2
|
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
22
3
|
cameraExids?: string;
|
|
23
4
|
notifyDays?: string;
|
|
5
|
+
compareDelay?: AutomationType;
|
|
24
6
|
notifyTime?: string;
|
|
25
7
|
provider?: string;
|
|
8
|
+
type?: string;
|
|
26
9
|
config?: {
|
|
10
|
+
compareDelay?: AutomationType;
|
|
11
|
+
period?: number;
|
|
27
12
|
recipients?: string;
|
|
28
13
|
projectId?: number;
|
|
29
14
|
companyId?: number;
|
|
@@ -38,9 +23,12 @@ export type ProgressPhotosUnSubscribeParams = {
|
|
|
38
23
|
token?: string;
|
|
39
24
|
};
|
|
40
25
|
export type ProgressPhotosResponsePayload = {
|
|
41
|
-
progressPhotos:
|
|
26
|
+
progressPhotos: Automation[];
|
|
42
27
|
};
|
|
43
|
-
export
|
|
28
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
29
|
+
progressPhotos: Automation;
|
|
30
|
+
};
|
|
31
|
+
export declare enum AutomationDialogType {
|
|
44
32
|
Create = "create",
|
|
45
33
|
Edit = "edit",
|
|
46
34
|
Pause = "pause"
|
|
@@ -86,5 +74,5 @@ export type ProgressPhotosHistory = {
|
|
|
86
74
|
cameraIds: string;
|
|
87
75
|
failedCameraIds: string;
|
|
88
76
|
subject: string;
|
|
89
|
-
recipients:
|
|
77
|
+
recipients: string;
|
|
90
78
|
};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type ProjectExid = Exid;
|
|
3
|
+
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
|
+
export type Project = {
|
|
5
|
+
archiveTier?: ProjectArchiveTier;
|
|
6
|
+
cameras?: Array<Camera | AdminCamera>;
|
|
7
|
+
camerasCount?: number;
|
|
8
|
+
camerasRestrictionType?: string;
|
|
9
|
+
companyId: number;
|
|
10
|
+
endDate: string;
|
|
11
|
+
exid: ProjectExid;
|
|
12
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
13
|
+
geographicBounds?: unknown;
|
|
14
|
+
id: string | number;
|
|
15
|
+
insertedAt?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
owner?: {
|
|
18
|
+
email?: string;
|
|
19
|
+
};
|
|
20
|
+
ownerEmail?: string;
|
|
21
|
+
ownerName?: string;
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
status?: ProjectStatus;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
unrestrictedCameras?: Camera[];
|
|
26
|
+
userId?: number;
|
|
27
|
+
zohoId?: string;
|
|
28
|
+
};
|
|
29
|
+
export type AdminProjectCameraRef = {
|
|
30
|
+
exid: string;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
export type AdminProjectListItem = {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
status: ProjectStatus | string;
|
|
37
|
+
insertedAt: string;
|
|
38
|
+
timezone: string | null;
|
|
39
|
+
exid: ProjectExid;
|
|
40
|
+
endDate: string | null;
|
|
41
|
+
startDate: string | null;
|
|
42
|
+
archiveTier: ProjectArchiveTier | null;
|
|
43
|
+
featureFlags: Array<ProjectFeatureFlag | string>;
|
|
44
|
+
zohoId: string | null;
|
|
45
|
+
ownerEmail: string | null;
|
|
46
|
+
companyId: number | null;
|
|
47
|
+
companyName: string | null;
|
|
48
|
+
ownerName: string | null;
|
|
49
|
+
archived: boolean;
|
|
50
|
+
cameras?: AdminProjectCameraRef[];
|
|
51
|
+
};
|
|
52
|
+
export type AdminProjectDetail = AdminProjectListItem & {
|
|
53
|
+
userId: number;
|
|
54
|
+
};
|
|
55
|
+
export declare enum ProjectStatus {
|
|
56
|
+
ToStart = "To Start",
|
|
57
|
+
InProgress = "In Progress",
|
|
58
|
+
Completed = "Completed",
|
|
59
|
+
NotAplicable = "Not Applicable"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ProjectArchiveTier {
|
|
62
|
+
Full = "Full",
|
|
63
|
+
Partial = "Partial",
|
|
64
|
+
Minimal = "Minimal",
|
|
65
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
66
|
+
No = "No"
|
|
67
|
+
}
|
|
68
|
+
export type UpdateCameraRestrictionPayload = {
|
|
69
|
+
isAccessRestricted?: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type CameraPosition = {
|
|
72
|
+
cameraExid: CameraExid;
|
|
73
|
+
position: number;
|
|
74
|
+
};
|
|
75
|
+
export type ReorderCamerasPayload = {
|
|
76
|
+
positions: CameraPosition[];
|
|
77
|
+
};
|
|
78
|
+
export type Logo = {
|
|
79
|
+
id: number;
|
|
80
|
+
projectId: number;
|
|
81
|
+
name: string;
|
|
82
|
+
url: string;
|
|
83
|
+
};
|
|
84
|
+
export type ProjectLogoResponsePayload = Logo[];
|
|
85
|
+
export declare enum ProjectFeatureFlag {
|
|
86
|
+
AnprLegacy = "anpr_legacy",
|
|
87
|
+
DroneView = "drone_view",
|
|
88
|
+
Bim = "4d_bim",
|
|
89
|
+
BimItwin = "4d_bim_itwin",
|
|
90
|
+
BimForge = "4d_bim_forge",
|
|
91
|
+
ThreeSixtyView = "360_view",
|
|
92
|
+
NdaMc = "NDA/MC",
|
|
93
|
+
GateReport = "gate_report",
|
|
94
|
+
GateReportMotionDetection = "motion_detection",
|
|
95
|
+
FullEmpty = "full_empty",
|
|
96
|
+
MediaHubSharing = "archives_sharing",
|
|
97
|
+
GateReportAnprBased = "anpr_sourced",
|
|
98
|
+
NoLicensePlate = "no_license_plate",
|
|
99
|
+
DefaultToProjectApp = "default_to_project_app",
|
|
100
|
+
SmartSearch = "smart_search",
|
|
101
|
+
PpeMonitoring = "ppe_monitoring",
|
|
102
|
+
NoGdpr = "no_gdpr"
|
|
103
|
+
}
|
|
104
|
+
export type ProjectBatteryReading = {
|
|
105
|
+
exid: number;
|
|
106
|
+
voltage: number;
|
|
107
|
+
lastSeen: DateType;
|
|
108
|
+
};
|
|
109
|
+
export type ThumbnailData = {
|
|
110
|
+
cameraExid: CameraExid;
|
|
111
|
+
custom: boolean;
|
|
112
|
+
image: string;
|
|
113
|
+
};
|
|
114
|
+
export type ProjectsQueryParams = PaginationParams & {
|
|
115
|
+
name: string;
|
|
116
|
+
exid: string;
|
|
117
|
+
status: ProjectStatus;
|
|
118
|
+
cameras: string;
|
|
119
|
+
featureFlags: Array<ProjectFeatureFlag>;
|
|
120
|
+
featureFlagsOperator?: Operator;
|
|
121
|
+
archived: string;
|
|
122
|
+
};
|
|
123
|
+
export type ProjectCreateRequestPayload = {
|
|
124
|
+
projectExid?: string;
|
|
125
|
+
projectName: string;
|
|
126
|
+
ownerId: number;
|
|
127
|
+
cameras: string[];
|
|
128
|
+
};
|
|
129
|
+
export type ProjectCreateResponse = {
|
|
130
|
+
name: string;
|
|
131
|
+
exid: string;
|
|
132
|
+
id: number;
|
|
133
|
+
userId: number;
|
|
134
|
+
zohoId: string;
|
|
135
|
+
};
|
|
136
|
+
export type ProjectUpdateRequestPayload = {
|
|
137
|
+
name: string;
|
|
138
|
+
timezone: string;
|
|
139
|
+
featureFlags: ProjectFeatureFlag[];
|
|
140
|
+
cameras: string[];
|
|
141
|
+
};
|
|
142
|
+
export type ProjectStatusStats = {
|
|
143
|
+
nil: number;
|
|
144
|
+
Completed: number;
|
|
145
|
+
"In Progress": number;
|
|
146
|
+
"Not Applicable": number;
|
|
147
|
+
"To Start": number;
|
|
148
|
+
};
|
|
149
|
+
export type ProjectUserProperty = {
|
|
150
|
+
active: boolean;
|
|
151
|
+
activeOneMonth: boolean;
|
|
152
|
+
cameraExid: string;
|
|
153
|
+
cameraName: string;
|
|
154
|
+
cameraRights: string;
|
|
155
|
+
email: string;
|
|
156
|
+
eventsCount: number;
|
|
157
|
+
fullname: string;
|
|
158
|
+
id: number;
|
|
159
|
+
lastSeenAt: string;
|
|
160
|
+
persona: string;
|
|
161
|
+
};
|
|
162
|
+
export type ProjectUsers = {
|
|
163
|
+
cameras: {
|
|
164
|
+
exid: string;
|
|
165
|
+
name: string;
|
|
166
|
+
}[];
|
|
167
|
+
users: Record<string, ProjectUserProperty[]>;
|
|
168
|
+
};
|
|
169
|
+
export type ProjectRole = {
|
|
170
|
+
id: number;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
export type ProjectMember = {
|
|
174
|
+
id: string;
|
|
175
|
+
key?: string;
|
|
176
|
+
email: string;
|
|
177
|
+
fullname: string;
|
|
178
|
+
lastSeenAt?: string;
|
|
179
|
+
role: ProjectRole;
|
|
180
|
+
permissions?: string[];
|
|
181
|
+
subRoles?: Array<{
|
|
182
|
+
resourceId: string;
|
|
183
|
+
roleId: number;
|
|
184
|
+
}>;
|
|
185
|
+
company?: {
|
|
186
|
+
name: string;
|
|
187
|
+
} | null;
|
|
188
|
+
};
|
|
189
|
+
export type ProjectInvite = {
|
|
190
|
+
id?: string;
|
|
191
|
+
email: string;
|
|
192
|
+
role?: ProjectRole;
|
|
193
|
+
permissions?: string[];
|
|
194
|
+
subRoles?: Array<{
|
|
195
|
+
resourceId: string;
|
|
196
|
+
roleId: number;
|
|
197
|
+
}>;
|
|
198
|
+
invitedAt?: string;
|
|
199
|
+
};
|
|
200
|
+
export type ProjectMembersResponsePayload = {
|
|
201
|
+
users: ProjectMember[];
|
|
202
|
+
invites: ProjectInvite[];
|
|
203
|
+
errors: ProjectUserError[];
|
|
204
|
+
};
|
|
205
|
+
export type ProjectMembersRequestPayload = {
|
|
206
|
+
roleId: number;
|
|
207
|
+
emails: string[];
|
|
208
|
+
message?: string;
|
|
209
|
+
overrideRole?: Partial<{
|
|
210
|
+
permissions?: string[];
|
|
211
|
+
subRoles?: Array<{
|
|
212
|
+
resourceId: string;
|
|
213
|
+
roleId: number;
|
|
214
|
+
}>;
|
|
215
|
+
}>;
|
|
216
|
+
};
|
|
217
|
+
export type ProjectInviteMembersResponsePayload = {
|
|
218
|
+
users: ProjectMember[];
|
|
219
|
+
invites: ProjectInvite[];
|
|
220
|
+
};
|
|
221
|
+
export type PlaceholderThumbnailData = {
|
|
222
|
+
placeholder: string;
|
|
223
|
+
};
|
|
224
|
+
export type ProjectUserError = {
|
|
225
|
+
email: string;
|
|
226
|
+
error: Record<string, string[]>;
|
|
227
|
+
};
|
|
228
|
+
export type ProjectUsersResponsePayload = {
|
|
229
|
+
users: ProjectMember[];
|
|
230
|
+
invites: ProjectInvite[];
|
|
231
|
+
errors: ProjectUserError[];
|
|
232
|
+
};
|
|
233
|
+
export type ProjectStorageQueryParams = PaginationParams & {
|
|
234
|
+
cameraName: string;
|
|
235
|
+
cameraExid: CameraExid;
|
|
236
|
+
status: ProjectStorageStatus;
|
|
237
|
+
};
|
|
238
|
+
export type ProjectStorage = {
|
|
239
|
+
id: number;
|
|
240
|
+
cameraExid: CameraExid;
|
|
241
|
+
cameraName: string;
|
|
242
|
+
projectExid: string;
|
|
243
|
+
projectName: string;
|
|
244
|
+
status: ProjectStorageStatus;
|
|
245
|
+
requestor: string;
|
|
246
|
+
created_at: DateType;
|
|
247
|
+
};
|
|
248
|
+
export declare enum ProjectStorageStatus {
|
|
249
|
+
New = "new",
|
|
250
|
+
Pending = "pending",
|
|
251
|
+
Processing = "processing",
|
|
252
|
+
Completed = "completed",
|
|
253
|
+
Failed = "failed"
|
|
254
|
+
}
|