@evercam/api 1.0.0-e1ad6ae1b → 1.0.0-e424632fd
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 +2 -0
- package/dist/api/{3dFirebaseApi.d.ts → api/3dFirebaseApi.d.ts} +8 -1
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +87 -83
- package/dist/api/api/aiApi.d.ts +128 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/swr/Swr.d.ts +1 -1
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +118 -94
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -4
- 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 +148 -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/{weatherApi.d.ts → api/weatherApi.d.ts} +2 -2
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +276 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/{types → api/types}/analytics.d.ts +141 -41
- package/dist/{types → api/types}/anpr.d.ts +19 -2
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +10 -5
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +97 -78
- package/dist/{types → api/types}/comments.d.ts +4 -8
- package/dist/{types → api/types}/company.d.ts +42 -1
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +3 -5
- package/dist/{types → api/types}/coolify.d.ts +18 -2
- package/dist/{types → api/types}/copilot.d.ts +11 -6
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/{types → api/types}/detections.d.ts +20 -22
- package/dist/{types → api/types}/drone.d.ts +1 -0
- package/dist/{types → api/types}/gateReport.d.ts +48 -157
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +7 -1
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/{types → api/types}/kit.d.ts +33 -5
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +79 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/{types → api/types}/procore.d.ts +13 -6
- package/dist/{types → api/types}/progressPhoto.d.ts +6 -32
- package/dist/api/types/project.d.ts +246 -0
- package/dist/{types → api/types}/recording.d.ts +4 -3
- package/dist/{types → api/types}/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +16 -4
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/{types → api/types}/snapshots.d.ts +36 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/{types → api/types}/streaming.d.ts +3 -3
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +12 -5
- package/dist/{types → api/types}/user.d.ts +105 -31
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +75 -11
- package/dist/{types → api/types}/widget.d.ts +72 -11
- package/dist/{types → api/types}/xweather.d.ts +4 -4
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1104 -917
- 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 +301 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +4 -4
- package/dist/api/aiApi.d.ts +0 -146
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/ingestApi.d.ts +0 -88
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/types/360.d.ts +0 -139
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -10
- package/dist/types/ingest.d.ts +0 -47
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/planner.d.ts +0 -32
- package/dist/types/posthog.d.ts +0 -18
- package/dist/types/project.d.ts +0 -129
- package/dist/types/shares.d.ts +0 -196
- package/dist/types/siteAnalytics.d.ts +0 -142
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -21
- package/dist/types/videoWall.d.ts +0 -33
- /package/dist/api/{client → api/client}/customErrors.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{client → api/client}/interceptors.d.ts +0 -0
- /package/dist/api/{client → api/client}/swr/SwrStore.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/countries.d.ts +0 -0
- /package/dist/{types → api/types}/errors.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/roi.d.ts +0 -0
- /package/dist/{types → api/types}/routeParams.d.ts +0 -0
- /package/dist/{types → api/types}/sso.d.ts +0 -0
- /package/dist/{types → api/types}/systemCheck.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import
|
|
2
|
+
import { Automation, GeoJSONPolygon, ProgressPhotoItemResponsePayload, Project, SwrRequestConfig, UserFeatureFlag } from "@evercam/api/types";
|
|
3
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProject, AconexDocumentSchema, AconexDocumentTypeSchema, ApiCredentials, AutodeskFolder, AutodeskProject, AutodeskTokenResponsePayload, AutodeskSnapshot, AutodeskUserHub, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProcoreObservationDefaultList, ProcoreObservationListItem, ProcoreCustomFieldOptionsRequestPayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectCreateResponse, ProjectExid, ProjectLogoResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, RingDevicesResponsePayload, RingImportDevicesPayload, RingImportResponsePayload, RingMoveDevicePayload, RingMoveDeviceResponsePayload, RingLiveViewPayload, RingLiveViewResponse, RingStopLiveViewResponse, AuthOptionsResponsePayload, AuthProviderConfigPayload, ConfirmUserRequestPayload, DeleteActiveSessionRequestPayload, ProjectContactsResponsePayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetSessionSettingsPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber, OAuthClient, OAuthClientWithSecret, OAuthConsentInfo, OAuthConsentPayload, OAuthConsentResponse, CreateOAuthClientPayload, UpdateOAuthClientPayload, PaginationParams, StoryblokResponse, Notification, PlaceholderThumbnailData, ProjectUsersResponsePayload, ProjectMember } from "@evercam/api/types";
|
|
3
4
|
export declare const EvercamApi: {
|
|
4
5
|
apiStatus: {
|
|
5
|
-
getApiStatus(): Promise<
|
|
6
|
+
getApiStatus(): Promise<void>;
|
|
6
7
|
};
|
|
7
8
|
users: {
|
|
8
|
-
signup(payload: SignupUserRequestPayload): Promise<
|
|
9
|
+
signup(payload: SignupUserRequestPayload): Promise<User>;
|
|
9
10
|
fetchAccessFeatures(email: string): Promise<{
|
|
10
|
-
features:
|
|
11
|
+
features: UserFeatureFlag[];
|
|
11
12
|
}>;
|
|
12
|
-
impersonationLogin(token: string): Promise<
|
|
13
|
-
fetchLoginOptions(email: string): Promise<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
login(params: LoginRequestPayload): Promise<LoginResponsePayload>;
|
|
21
|
-
loginWithApiCredentials(apiId: String, apiKey: String): Promise<LoginResponsePayload>;
|
|
22
|
-
loginWithWidgetCredentials(widgetId: String, widgetKey: String): Promise<LoginResponsePayload>;
|
|
23
|
-
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<LoginResponsePayload>;
|
|
13
|
+
impersonationLogin(token: string): Promise<User>;
|
|
14
|
+
fetchLoginOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
15
|
+
fetchSignupOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
16
|
+
fetchProviderConfig(provider: string): Promise<AuthProviderConfigPayload>;
|
|
17
|
+
login(params: LoginRequestPayload): Promise<User>;
|
|
18
|
+
loginWithApiCredentials(apiId: string, apiKey: string): Promise<User>;
|
|
19
|
+
loginWithWidgetCredentials(widgetId: string, widgetKey: string): Promise<User>;
|
|
20
|
+
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<User>;
|
|
24
21
|
show(email: string): Promise<{
|
|
25
|
-
users:
|
|
22
|
+
users: User[];
|
|
26
23
|
}>;
|
|
27
24
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
28
25
|
resetPassword(email: string): Promise<{
|
|
@@ -35,21 +32,26 @@ export declare const EvercamApi: {
|
|
|
35
32
|
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
36
33
|
message: string;
|
|
37
34
|
}>;
|
|
38
|
-
confirm(email: string, payload:
|
|
39
|
-
deleteActiveSession(sessionId: string, payload
|
|
40
|
-
getActiveSessions(
|
|
35
|
+
confirm(email: string, payload: ConfirmUserRequestPayload): Promise<User>;
|
|
36
|
+
deleteActiveSession(sessionId: string, payload: DeleteActiveSessionRequestPayload): Promise<void>;
|
|
37
|
+
getActiveSessions(params: AxiosRequestConfig & {
|
|
38
|
+
params: SessionsListRequestPayload;
|
|
39
|
+
}): Promise<PaginatedItems<UserSession>>;
|
|
41
40
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
42
|
-
users:
|
|
41
|
+
users: User[];
|
|
43
42
|
}>;
|
|
44
43
|
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
45
44
|
fetchPermissions(): Promise<{
|
|
46
45
|
permissions: string[];
|
|
47
46
|
}>;
|
|
47
|
+
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
48
48
|
};
|
|
49
49
|
notifications: {
|
|
50
|
-
get(): Promise<
|
|
51
|
-
markAllAsRead(
|
|
52
|
-
|
|
50
|
+
get(): Promise<PaginatedItems<Notification>>;
|
|
51
|
+
markAllAsRead(): Promise<{
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
markAsRead(id: number): Promise<Notification>;
|
|
53
55
|
};
|
|
54
56
|
bim: {
|
|
55
57
|
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
@@ -64,7 +66,7 @@ export declare const EvercamApi: {
|
|
|
64
66
|
cameras: {
|
|
65
67
|
getCameras(params: {
|
|
66
68
|
params?: Partial<FetchCameraQueryParams>;
|
|
67
|
-
config?:
|
|
69
|
+
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
68
70
|
}): Promise<CamerasResponsePayload>;
|
|
69
71
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
70
72
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
@@ -78,19 +80,22 @@ export declare const EvercamApi: {
|
|
|
78
80
|
to: string;
|
|
79
81
|
};
|
|
80
82
|
}): Promise<CameraStatusLog[]>;
|
|
81
|
-
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
83
|
+
updateCamera(exid: string, params: Partial<CameraUpdateRequestPayload>): Promise<CamerasResponsePayload>;
|
|
82
84
|
};
|
|
83
85
|
projects: {
|
|
84
|
-
index({ params, config, }
|
|
86
|
+
index({ params, config, }?: {
|
|
85
87
|
params?: ApiCredentials;
|
|
86
|
-
config
|
|
87
|
-
}): Promise<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
config?: SwrRequestConfig<Project[]>;
|
|
89
|
+
}): Promise<Project[]>;
|
|
90
|
+
create(params: {
|
|
91
|
+
name: string;
|
|
92
|
+
}): Promise<{
|
|
93
|
+
project: ProjectCreateResponse;
|
|
91
94
|
}>;
|
|
95
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
96
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
92
97
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
93
|
-
updateLogo(projectId: string, id: number, name: string): Promise<
|
|
98
|
+
updateLogo(projectId: string, id: number, name: string): Promise<Logo>;
|
|
94
99
|
updateThumbnail(projectExid: string, params: {
|
|
95
100
|
cameraExid?: string;
|
|
96
101
|
uploadedThumbnail?: string;
|
|
@@ -98,24 +103,28 @@ export declare const EvercamApi: {
|
|
|
98
103
|
message: string;
|
|
99
104
|
}>;
|
|
100
105
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
101
|
-
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
102
107
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
103
108
|
placeholder?: string;
|
|
104
109
|
}): Promise<{
|
|
105
110
|
message: string;
|
|
106
111
|
}>;
|
|
107
|
-
getPlaceholderThumbnailData(projectExid: string): Promise<
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
108
113
|
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
109
114
|
message: string;
|
|
110
115
|
}>;
|
|
111
|
-
getUsers(projectExid: string): Promise<
|
|
116
|
+
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
112
117
|
getCameras(projectExid: string): Promise<{
|
|
113
118
|
cameras: Camera[];
|
|
114
119
|
}>;
|
|
115
120
|
getCameraRefs(projectExid: string): Promise<{
|
|
116
121
|
cameras: Camera[];
|
|
117
122
|
}>;
|
|
118
|
-
getTeamMembers(): Promise<
|
|
123
|
+
getTeamMembers(): Promise<ProjectMember[]>;
|
|
124
|
+
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
125
|
+
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectInviteMembersResponsePayload>;
|
|
126
|
+
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
127
|
+
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<void>;
|
|
119
128
|
};
|
|
120
129
|
timelapse: {
|
|
121
130
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -137,10 +146,11 @@ export declare const EvercamApi: {
|
|
|
137
146
|
};
|
|
138
147
|
aconex: {
|
|
139
148
|
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
140
|
-
getUserProjects(): Promise<
|
|
149
|
+
getUserProjects(): Promise<AconexUserProject[]>;
|
|
141
150
|
revoke(): Promise<void>;
|
|
142
151
|
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
143
|
-
getDocumentSchema(projectId: number): Promise<
|
|
152
|
+
getDocumentSchema(projectId: number): Promise<AconexDocumentSchema[]>;
|
|
153
|
+
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
144
154
|
};
|
|
145
155
|
procore: {
|
|
146
156
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
@@ -155,35 +165,46 @@ export declare const EvercamApi: {
|
|
|
155
165
|
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
156
166
|
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
157
167
|
createObservation(formData: FormData): Promise<void>;
|
|
158
|
-
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<
|
|
159
|
-
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<
|
|
168
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
169
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
160
170
|
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
161
|
-
getHazards(payload: ProcoreCompanyRequestPayload): Promise<
|
|
171
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
162
172
|
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
163
173
|
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
164
|
-
getCustomFieldOptions(payload:
|
|
165
|
-
options: {
|
|
166
|
-
[key: string]: string[];
|
|
167
|
-
};
|
|
168
|
-
}>;
|
|
174
|
+
getCustomFieldOptions(payload: ProcoreCustomFieldOptionsRequestPayload): Promise<Array<ProcoreObservationListItem>>;
|
|
169
175
|
};
|
|
170
176
|
autodesk: {
|
|
171
177
|
sendRevoke(): Promise<void>;
|
|
172
|
-
getUserHubs(): Promise<
|
|
173
|
-
getProjects(hubId: string): Promise<
|
|
174
|
-
getFolders(hubId: string, projectId: string): Promise<Array<
|
|
175
|
-
getSubFolders(projectId: string, parentFolderId: string, getDerivatives:
|
|
176
|
-
getFolder(projectId: string, folderId: string): Promise<
|
|
177
|
-
uploadEditedSnapshot(payload:
|
|
178
|
+
getUserHubs(): Promise<AutodeskUserHub[]>;
|
|
179
|
+
getProjects(hubId: string): Promise<AutodeskProject[]>;
|
|
180
|
+
getFolders(hubId: string, projectId: string): Promise<Array<AutodeskFolder>>;
|
|
181
|
+
getSubFolders(projectId: string, parentFolderId: string, getDerivatives: boolean): Promise<Array<AutodeskFolder>>;
|
|
182
|
+
getFolder(projectId: string, folderId: string): Promise<AutodeskFolder>;
|
|
183
|
+
uploadEditedSnapshot(payload: AutodeskSnapshot): Promise<null>;
|
|
178
184
|
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
179
185
|
};
|
|
180
186
|
voyageControl: {
|
|
181
|
-
connect(payload: VoyageControlConnectorPayload): Promise<
|
|
182
|
-
sendRevoke(): Promise<
|
|
187
|
+
connect(payload: VoyageControlConnectorPayload): Promise<void>;
|
|
188
|
+
sendRevoke(): Promise<void>;
|
|
189
|
+
};
|
|
190
|
+
ring: {
|
|
191
|
+
authenticate(payload: {
|
|
192
|
+
code: string;
|
|
193
|
+
}): Promise<void>;
|
|
194
|
+
getDevices(): Promise<RingDevicesResponsePayload>;
|
|
195
|
+
importDevices(payload: RingImportDevicesPayload): Promise<RingImportResponsePayload>;
|
|
196
|
+
moveDevice(cameraExid: string, payload: RingMoveDevicePayload): Promise<RingMoveDeviceResponsePayload>;
|
|
197
|
+
deleteDevice(cameraExid: string): Promise<{
|
|
198
|
+
status: string;
|
|
199
|
+
cameraExid: string;
|
|
200
|
+
}>;
|
|
201
|
+
disconnect(): Promise<void>;
|
|
202
|
+
startLiveView(cameraExid: string, payload: RingLiveViewPayload): Promise<RingLiveViewResponse>;
|
|
203
|
+
stopLiveView(cameraExid: string, sessionId: string): Promise<RingStopLiveViewResponse>;
|
|
183
204
|
};
|
|
184
205
|
xweather: {
|
|
185
206
|
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
186
|
-
revoke(projectExid: string): Promise<
|
|
207
|
+
revoke(projectExid: string): Promise<void>;
|
|
187
208
|
};
|
|
188
209
|
recordings: {
|
|
189
210
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -195,10 +216,10 @@ export declare const EvercamApi: {
|
|
|
195
216
|
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
196
217
|
};
|
|
197
218
|
progressPhotos: {
|
|
198
|
-
index(): Promise<ProgressPhotosResponsePayload>;
|
|
199
|
-
show(id: string): Promise<
|
|
219
|
+
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
220
|
+
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
200
221
|
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
201
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
222
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
202
223
|
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
|
|
203
224
|
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
204
225
|
};
|
|
@@ -206,42 +227,21 @@ export declare const EvercamApi: {
|
|
|
206
227
|
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
207
228
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
208
229
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
209
|
-
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
210
|
-
cUpdate(projectExid:
|
|
211
|
-
cDelete(projectExid:
|
|
230
|
+
cCreate(projectExid: string, payload: FormData | MediaCreateRequestPayload, onUploadProgress?: (progressEvent: any) => void): Promise<Media>;
|
|
231
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
232
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
212
233
|
};
|
|
213
234
|
shares: {
|
|
214
|
-
updateShareRights(cameraExid: CameraExid, payload: {
|
|
215
|
-
email: string;
|
|
216
|
-
rights: string;
|
|
217
|
-
}): Promise<Share>;
|
|
218
|
-
updateShareRequestRights(cameraExid: CameraExid, payload: {
|
|
219
|
-
email: string;
|
|
220
|
-
rights: string;
|
|
221
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
222
|
-
cIndex(cameraId: string): Promise<SharesResponsePayload>;
|
|
223
|
-
getShareRequest(cameraId: string, payload: {
|
|
224
|
-
status: string;
|
|
225
|
-
}): Promise<ShareRequestsResponsePayload>;
|
|
226
|
-
deleteShare(cameraId: string, payload: {
|
|
227
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
228
|
-
}): Promise<void>;
|
|
229
|
-
deleteRequest(cameraId: string, payload: {
|
|
230
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
231
|
-
}): Promise<void>;
|
|
232
235
|
deleteShareRequest(payload: {
|
|
233
236
|
params: ShareDeletionRequestPayload;
|
|
234
237
|
}): Promise<void>;
|
|
235
238
|
getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
|
|
236
|
-
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
237
|
-
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
238
239
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
239
|
-
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
240
|
-
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
241
|
-
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
242
240
|
};
|
|
243
241
|
company: {
|
|
244
|
-
show(companyId: string | undefined, params?:
|
|
242
|
+
show(companyId: string | undefined, params?: {
|
|
243
|
+
with_zoho?: boolean;
|
|
244
|
+
}): Promise<CompanySummary>;
|
|
245
245
|
getCompanyUsers(params: {
|
|
246
246
|
params: {
|
|
247
247
|
page: number;
|
|
@@ -254,7 +254,9 @@ export declare const EvercamApi: {
|
|
|
254
254
|
limit: number;
|
|
255
255
|
};
|
|
256
256
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
257
|
-
getCompanyCameras(params:
|
|
257
|
+
getCompanyCameras(params: PaginationParams | {
|
|
258
|
+
params: PaginationParams;
|
|
259
|
+
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
258
260
|
getCompanyKits(params: {
|
|
259
261
|
params: {
|
|
260
262
|
page: number;
|
|
@@ -274,11 +276,11 @@ export declare const EvercamApi: {
|
|
|
274
276
|
}): Promise<BatteryVoltage[]>;
|
|
275
277
|
};
|
|
276
278
|
layers: {
|
|
277
|
-
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?:
|
|
278
|
-
getLayersById(cameraId: string, id: number, params:
|
|
279
|
+
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: AxiosRequestConfig): Promise<BIMLayer>;
|
|
280
|
+
getLayersById(cameraId: string, id: number, params: ApiCredentials): Promise<BIMLayer>;
|
|
279
281
|
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
280
282
|
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
281
|
-
deleteLayer(cameraId: string, id: number, params
|
|
283
|
+
deleteLayer(cameraId: string, id: number, params?: ApiCredentials): Promise<void>;
|
|
282
284
|
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
283
285
|
};
|
|
284
286
|
comments: {
|
|
@@ -291,23 +293,45 @@ export declare const EvercamApi: {
|
|
|
291
293
|
getStory(params: {
|
|
292
294
|
route: string;
|
|
293
295
|
params: string;
|
|
294
|
-
}): Promise<
|
|
296
|
+
}): Promise<StoryblokResponse>;
|
|
295
297
|
};
|
|
296
298
|
mailing: {
|
|
297
299
|
unsubscribe(params: {
|
|
298
300
|
key: string;
|
|
299
|
-
}): Promise<
|
|
301
|
+
}): Promise<void>;
|
|
300
302
|
};
|
|
301
303
|
widgets: {
|
|
302
304
|
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
303
305
|
show(id: number): Promise<WidgetFull>;
|
|
304
306
|
getByKeys(): Promise<WidgetFull>;
|
|
305
|
-
setSessionSettings(params:
|
|
307
|
+
setSessionSettings(params: WidgetSessionSettingsPayload): Promise<WidgetFull>;
|
|
306
308
|
setStatus(id: number, params: {
|
|
307
309
|
active: boolean;
|
|
308
310
|
}): Promise<WidgetFull>;
|
|
309
311
|
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
310
312
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
311
|
-
delete(id: number): Promise<
|
|
313
|
+
delete(id: number): Promise<void>;
|
|
314
|
+
};
|
|
315
|
+
developerApps: {
|
|
316
|
+
index(): Promise<{
|
|
317
|
+
items: OAuthClient[];
|
|
318
|
+
}>;
|
|
319
|
+
show(clientId: string): Promise<OAuthClient>;
|
|
320
|
+
create(payload: CreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
321
|
+
update(clientId: string, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
322
|
+
delete(clientId: string): Promise<void>;
|
|
323
|
+
regenerateSecret(clientId: string): Promise<OAuthClientWithSecret>;
|
|
324
|
+
};
|
|
325
|
+
oauth: {
|
|
326
|
+
getClientInfo(clientId: string, scope: string): Promise<OAuthConsentInfo>;
|
|
327
|
+
submitConsent(payload: OAuthConsentPayload): Promise<OAuthConsentResponse>;
|
|
328
|
+
};
|
|
329
|
+
zoho: {
|
|
330
|
+
getDealLocation(dealId: string): Promise<{
|
|
331
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
332
|
+
}>;
|
|
333
|
+
updateDealLocation(dealId: string, payload: {
|
|
334
|
+
geographicBounds: GeoJSONPolygon;
|
|
335
|
+
}): Promise<void>;
|
|
312
336
|
};
|
|
313
337
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
+
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
3
4
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
5
|
export declare const EvercamLabsApi: {
|
|
5
6
|
posthog: {
|
|
@@ -16,10 +17,11 @@ export declare const EvercamLabsApi: {
|
|
|
16
17
|
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
17
18
|
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
18
19
|
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
19
|
-
submitMessageFeedback
|
|
20
|
+
submitMessageFeedback({ conversationId, messageId, ...params }: FeedbackPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
siteAnalytics: {
|
|
23
|
+
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
24
|
+
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
23
25
|
};
|
|
24
26
|
googleCloudStorage: {
|
|
25
27
|
listFiles(prefix?: string): Promise<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExNvrDeviceConfig, ExNvrLoginResponse, ExNvrRecordingInterval, ExNvrSystemStatus } from "@evercam/api/types
|
|
1
|
+
import { ExNvrDeviceConfig, ExNvrLoginResponse, ExNvrRecordingInterval, ExNvrSystemStatus } from "@evercam/api/types";
|
|
2
2
|
export declare const ExNvrApi: {
|
|
3
3
|
users: {
|
|
4
4
|
login({ apiUrl, username, password, }: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./client";
|
|
2
|
+
export * from "./adminApi";
|
|
3
|
+
export * from "./videoWallApi";
|
|
4
|
+
export * from "./3dFirebaseApi";
|
|
5
|
+
export * from "./aiApi";
|
|
6
|
+
export * from "./webRtcApi";
|
|
7
|
+
export * from "./weatherApi";
|
|
8
|
+
export * from "./evercamLabsApi";
|
|
9
|
+
export * from "./evercamApi";
|
|
10
|
+
export * from "./ptzApi";
|
|
11
|
+
export * from "./ingestApi";
|
|
12
|
+
export * from "./exNvrApi";
|
|
13
|
+
export * from "./authzApi";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
3
|
+
import type { _360AssetsQueryParams, _360AssetsRequestPayload, _360QueueQueryParams, _360AssetsUploadPayload, _360AssetsResponse, _360AssetsCountsResponse, _360QueueResponse, _360FloorsResponse, DroneQueueResponse, DroneUploadsResponse, IngestUploadInitResponse, BimUploadsResponse, MobileAssetsQueryParams, MobileCaptureAssetsResponse, BimUploadPayload, BimUploadsQueryParams, CalculateMeasuringOperationRequestPayload, DrawingsRequestPayload, DronesQueryParams, DroneUploadUpdateRequestPayload, FlightImagesQueryParams, Generate360MapRequestPayload, GenerateFloorPayload, InspectionToolRequestPayload, JsonObject, _360WalkV2, _360FloorV2 } from "@evercam/api/types";
|
|
4
|
+
import { IngestVersions, IngestTypes } from "@evercam/api/types";
|
|
5
|
+
export declare const getIngestApiUrls: (type: string) => string[];
|
|
6
|
+
export declare const IngestApi: {
|
|
7
|
+
drone: {
|
|
8
|
+
createUpload(projectId: string, params: {
|
|
9
|
+
uploadedBy: string;
|
|
10
|
+
}): Promise<IngestUploadInitResponse>;
|
|
11
|
+
reprocessDrone(id: number, params?: JsonObject): Promise<void>;
|
|
12
|
+
getDrones(params: {
|
|
13
|
+
params: Partial<DronesQueryParams>;
|
|
14
|
+
}): Promise<DroneUploadsResponse>;
|
|
15
|
+
getArchive(id: number, params: {
|
|
16
|
+
dataType: string;
|
|
17
|
+
}): Promise<Blob>;
|
|
18
|
+
deleteUpload(id: number): Promise<void>;
|
|
19
|
+
prepareForUpload(projectId: string, params: {
|
|
20
|
+
uploadedBy: string;
|
|
21
|
+
token: string;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
upload(projectId: string, params: {
|
|
24
|
+
uploadedBy: string;
|
|
25
|
+
token: string;
|
|
26
|
+
}, payload: DroneUploadUpdateRequestPayload): Promise<void>;
|
|
27
|
+
verifyToken(projectId: string, params: {
|
|
28
|
+
token: string;
|
|
29
|
+
}): Promise<JsonObject>;
|
|
30
|
+
calculateMeasuringOperation(projectId: string, params: CalculateMeasuringOperationRequestPayload): Promise<JsonObject>;
|
|
31
|
+
inspectionTool(projectId: string, params: InspectionToolRequestPayload): Promise<JsonObject>;
|
|
32
|
+
isInspectionEnabled(projectId: string, params?: JsonObject): Promise<JsonObject>;
|
|
33
|
+
getDroneQueueSize(droneUrl: string): Promise<DroneQueueResponse>;
|
|
34
|
+
getFlightImages(projectId: string, params: FlightImagesQueryParams): Promise<JsonObject>;
|
|
35
|
+
checkFlightAvailableFeatures(projectId: string, params: JsonObject): Promise<JsonObject>;
|
|
36
|
+
};
|
|
37
|
+
assets360: {
|
|
38
|
+
get360Assets(params: {
|
|
39
|
+
params: Partial<_360AssetsQueryParams>;
|
|
40
|
+
}): Promise<_360AssetsResponse>;
|
|
41
|
+
get360AssetsCounts(projectId: string, params: {
|
|
42
|
+
uploadedBy: string;
|
|
43
|
+
}): Promise<_360AssetsCountsResponse>;
|
|
44
|
+
get360AssetLink(projectId: string, date: string, floor: string, assetType: string, drawingId: string, marker: string | null): Promise<string>;
|
|
45
|
+
update360(id: number, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
46
|
+
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload): Promise<_360WalkV2>;
|
|
47
|
+
deleteUpload(id: number): Promise<void>;
|
|
48
|
+
getArchive(id: number, params: {
|
|
49
|
+
dateType: string;
|
|
50
|
+
}): Promise<Blob>;
|
|
51
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload): Promise<IngestUploadInitResponse>;
|
|
52
|
+
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload): Promise<_360WalkV2>;
|
|
53
|
+
reprocess360(id: number): Promise<void>;
|
|
54
|
+
drawingExists(payload: {
|
|
55
|
+
params: {
|
|
56
|
+
name: string;
|
|
57
|
+
project_id: string;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<JsonObject>;
|
|
60
|
+
getDrawings(payload: {
|
|
61
|
+
params: DrawingsRequestPayload;
|
|
62
|
+
config?: SwrRequestConfig<_360FloorsResponse>;
|
|
63
|
+
}): Promise<_360FloorsResponse>;
|
|
64
|
+
getDrawingById(id: number, projectExid: string): Promise<_360FloorV2>;
|
|
65
|
+
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload): Promise<_360FloorV2>;
|
|
66
|
+
deleteDrawing(id: number): Promise<void>;
|
|
67
|
+
transferWalks(sourceId: number, targetId: number, projectExid: string): Promise<void>;
|
|
68
|
+
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string): Promise<_360FloorV2>;
|
|
69
|
+
fetchDrawingOverlay(id: number, params: {
|
|
70
|
+
view: boolean;
|
|
71
|
+
}, onDownloadProgress: (progress: ProgressEvent) => void): Promise<Blob>;
|
|
72
|
+
getFloorArchive(id: number): Promise<string>;
|
|
73
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload): Promise<JsonObject>;
|
|
74
|
+
get360QueueSize(ingestUrl: string, params?: _360QueueQueryParams): Promise<_360QueueResponse>;
|
|
75
|
+
};
|
|
76
|
+
bim: {
|
|
77
|
+
createUpload(projectId: string, params: {
|
|
78
|
+
uploadedBy: string;
|
|
79
|
+
}): Promise<IngestUploadInitResponse>;
|
|
80
|
+
getBIMs(params: {
|
|
81
|
+
params: Partial<BimUploadsQueryParams>;
|
|
82
|
+
}): Promise<BimUploadsResponse>;
|
|
83
|
+
getArchive(id: number): Promise<Blob>;
|
|
84
|
+
deleteUpload(id: number): Promise<void>;
|
|
85
|
+
upload(projectId: string, params: {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}, payload: BimUploadPayload): Promise<void>;
|
|
89
|
+
};
|
|
90
|
+
mobileCapture: {
|
|
91
|
+
getProjectMobileAssets(params: MobileAssetsQueryParams, extraConfig?: AxiosRequestConfig): Promise<MobileCaptureAssetsResponse>;
|
|
92
|
+
getMobileAssetPhoto(assetId: string | number, params: {
|
|
93
|
+
projectId?: string;
|
|
94
|
+
project_id?: string;
|
|
95
|
+
isThumbnail?: boolean;
|
|
96
|
+
is_thumbnail?: boolean;
|
|
97
|
+
}): Promise<string>;
|
|
98
|
+
deleteAsset(assetId: string | number): Promise<void>;
|
|
99
|
+
};
|
|
100
|
+
utils: {
|
|
101
|
+
loadAllAssetsInQueue(): Promise<({
|
|
102
|
+
ingestVersion: string;
|
|
103
|
+
id: number;
|
|
104
|
+
projectId: string;
|
|
105
|
+
consumed: boolean;
|
|
106
|
+
token: string;
|
|
107
|
+
flightDate: string;
|
|
108
|
+
flightGeolocation: string;
|
|
109
|
+
modelZip: string;
|
|
110
|
+
orthomosaicZip: string;
|
|
111
|
+
reportPdf: string;
|
|
112
|
+
uploadedBy: string;
|
|
113
|
+
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
114
|
+
modelCesiumAssetId: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
hasTusLinks: boolean;
|
|
117
|
+
} | {
|
|
118
|
+
ingestVersion: string;
|
|
119
|
+
archive: string;
|
|
120
|
+
date: string;
|
|
121
|
+
deviceSerial: string | null;
|
|
122
|
+
endPosition: unknown | null;
|
|
123
|
+
floor: string;
|
|
124
|
+
floorId: number;
|
|
125
|
+
id: number;
|
|
126
|
+
images: string[];
|
|
127
|
+
insertedAt: string;
|
|
128
|
+
mobileAudios: string[];
|
|
129
|
+
mobileAudiosArchive: string;
|
|
130
|
+
mobilePhotos: string[];
|
|
131
|
+
mobilePhotosArchive: string;
|
|
132
|
+
model: string;
|
|
133
|
+
name: string;
|
|
134
|
+
processingStatus: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
report: string;
|
|
137
|
+
route: unknown | null;
|
|
138
|
+
startPosition: unknown | null;
|
|
139
|
+
tusLinks: unknown | null;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
uploadedBy: string;
|
|
142
|
+
videoArchive: string;
|
|
143
|
+
videos: string[];
|
|
144
|
+
})[]>;
|
|
145
|
+
getIngestVersion(ingestUrl: string): IngestVersions;
|
|
146
|
+
chooseIngestApiUrl(type: IngestTypes): Promise<string>;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { MoveParams, ZoomParams } from "
|
|
1
|
+
import { MoveParams, ZoomParams } from "@evercam/api/types";
|
|
2
2
|
export declare const PtzApi: {
|
|
3
3
|
presets: {
|
|
4
|
-
index({ cameraExid }: {
|
|
4
|
+
index({ cameraExid, }: {
|
|
5
5
|
cameraExid: string;
|
|
6
|
-
}): Promise<
|
|
6
|
+
}): Promise<{
|
|
7
|
+
presets: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
token: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
7
12
|
go({ cameraExid, presetId, }: {
|
|
8
13
|
cameraExid: string;
|
|
9
14
|
presetId: string | number;
|
|
@@ -21,6 +26,10 @@ export declare const PtzApi: {
|
|
|
21
26
|
presetId: string | number;
|
|
22
27
|
presetName: string;
|
|
23
28
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
updateHome({ cameraExid, presetName, }: {
|
|
30
|
+
cameraExid: string;
|
|
31
|
+
presetName: string;
|
|
32
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
33
|
delete({ cameraExid, presetId, }: {
|
|
25
34
|
cameraExid: string;
|
|
26
35
|
presetId: string | number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PaginatedItems } from "@evercam/shared/types";
|
|
2
|
+
import { VideoWall, VideoWallListParams, VideoWallCreateUpdatePayload } from "@evercam/api/types/videoWall";
|
|
3
|
+
export declare const VideoWallApi: {
|
|
4
|
+
list(params?: VideoWallListParams): Promise<import("axios").AxiosResponse<PaginatedItems<VideoWall>, any>>;
|
|
5
|
+
create(body: VideoWallCreateUpdatePayload): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
6
|
+
get(exid: string | number): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
7
|
+
update(exid: string | number, body: Partial<VideoWallCreateUpdatePayload>): Promise<import("axios").AxiosResponse<VideoWall, any>>;
|
|
8
|
+
delete(exid: string | number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherResponsePayload } from "@evercam/api/types";
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherReportRequestPayload, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare const WeatherApi: {
|
|
4
4
|
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
5
|
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
-
report(projectExid: string, payload:
|
|
6
|
+
report(projectExid: string, payload: WeatherReportRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
7
|
data: WeatherDataResponse[];
|
|
8
8
|
}> | undefined;
|
|
9
9
|
};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./3dFirebaseApi";
|
|
5
|
-
export * from "./aiApi";
|
|
6
|
-
export * from "./webRtcApi";
|
|
7
|
-
export * from "./weatherApi";
|
|
8
|
-
export * from "./evercamLabsApi";
|
|
9
|
-
export * from "./evercamApi";
|
|
10
|
-
export * from "./ptzApi";
|
|
11
|
-
export * from "./ingestApi";
|
|
12
|
-
export * from "./exNvrApi";
|
|
13
|
-
export * from "./authzApi";
|
|
1
|
+
export * from "./api";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export * from "./utils";
|