@evercam/api 1.0.0-e03a0c41b → 1.0.0-e13c64fc3
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 +5 -0
- package/dist/api/api/3dFirebaseApi.d.ts +27 -0
- package/dist/api/api/adminApi.d.ts +366 -0
- package/dist/api/api/aiApi.d.ts +127 -0
- package/dist/api/api/authzApi.d.ts +38 -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 +3 -2
- 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 +329 -0
- package/dist/api/api/evercamLabsApi.d.ts +46 -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 +147 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
- 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 +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 +214 -103
- package/dist/{types → api/types}/anpr.d.ts +35 -19
- package/dist/{types → api/types}/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -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 +22 -2
- package/dist/{types → api/types}/bim.d.ts +11 -5
- package/dist/{types → api/types}/camera.d.ts +110 -125
- package/dist/api/types/comments.d.ts +55 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +9 -6
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +19 -13
- 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 +121 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/{types → api/types}/index.d.ts +15 -2
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +94 -6
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +11 -2
- package/dist/api/types/posthog.d.ts +33 -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 +242 -0
- package/dist/{types → api/types}/recording.d.ts +3 -4
- 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 -1
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +14 -21
- 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 +10 -1
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- 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 +18 -4
- package/dist/{types → api/types}/user.d.ts +105 -35
- 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 +103 -20
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1741 -960
- 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 +270 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +8 -7
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -289
- package/dist/api/aiApi.d.ts +0 -76
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -50
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- 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/detections.d.ts +0 -70
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/notification.d.ts +0 -27
- 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 -5
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- 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}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { ExtendedAxiosInstance, ResponseValue } from "@evercam/api/types";
|
|
3
|
+
export declare class Swr {
|
|
4
|
+
private axiosInstance;
|
|
5
|
+
private store;
|
|
6
|
+
constructor({ key, axiosInstance, }: {
|
|
7
|
+
key: string;
|
|
8
|
+
axiosInstance: ExtendedAxiosInstance;
|
|
9
|
+
});
|
|
10
|
+
get<T = any>(url: string, config?: AxiosRequestConfig): Promise<ResponseValue<T>>;
|
|
11
|
+
private getCachedValue;
|
|
12
|
+
private getFreshValue;
|
|
13
|
+
clear(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
export declare class SwrStore {
|
|
3
|
+
private prefix;
|
|
4
|
+
constructor(prefix: string);
|
|
5
|
+
generateKey(config: AxiosRequestConfig): string;
|
|
6
|
+
get(key: string): Promise<any>;
|
|
7
|
+
set(key: string, value: unknown): Promise<void>;
|
|
8
|
+
delete(key: string): Promise<void>;
|
|
9
|
+
clear(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { Automation, 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";
|
|
4
|
+
export declare const EvercamApi: {
|
|
5
|
+
apiStatus: {
|
|
6
|
+
getApiStatus(): Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
users: {
|
|
9
|
+
signup(payload: SignupUserRequestPayload): Promise<User>;
|
|
10
|
+
fetchAccessFeatures(email: string): Promise<{
|
|
11
|
+
features: UserFeatureFlag[];
|
|
12
|
+
}>;
|
|
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>;
|
|
21
|
+
show(email: string): Promise<{
|
|
22
|
+
users: User[];
|
|
23
|
+
}>;
|
|
24
|
+
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
25
|
+
resetPassword(email: string): Promise<{
|
|
26
|
+
message: string;
|
|
27
|
+
}>;
|
|
28
|
+
getCredentials(): Promise<Credentials>;
|
|
29
|
+
updatePassword(user: string, payload: UpdatePasswordRequestPayload): Promise<{
|
|
30
|
+
message: string;
|
|
31
|
+
}>;
|
|
32
|
+
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
33
|
+
message: string;
|
|
34
|
+
}>;
|
|
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>>;
|
|
40
|
+
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
41
|
+
users: User[];
|
|
42
|
+
}>;
|
|
43
|
+
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
44
|
+
fetchPermissions(): Promise<{
|
|
45
|
+
permissions: string[];
|
|
46
|
+
}>;
|
|
47
|
+
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
48
|
+
};
|
|
49
|
+
notifications: {
|
|
50
|
+
get(): Promise<PaginatedItems<Notification>>;
|
|
51
|
+
markAllAsRead(): Promise<{
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
markAsRead(id: number): Promise<Notification>;
|
|
55
|
+
};
|
|
56
|
+
bim: {
|
|
57
|
+
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
58
|
+
getBimModel(cameraId: string, payload: BimModelRequestPayload, extraParams?: AxiosRequestConfig): Promise<BimModelResponsePayload>;
|
|
59
|
+
pendingBimImages(cameraId: string, params: PendingBimImagesParams): Promise<BimPendingImage[]>;
|
|
60
|
+
processPendingImages(cameraId: string, params: Partial<ProcessPendingImagesBimParams>): Promise<void>;
|
|
61
|
+
createBim(cameraId: string, params: BimCreationPayload): Promise<void>;
|
|
62
|
+
getCameraParameters(cameraId: string, params: ApiCredentials): Promise<BimUploadCameraParameters>;
|
|
63
|
+
uploadCameraParameters(cameraId: string, params: BimUploadCameraParameters): Promise<BimUploadCameraParameters>;
|
|
64
|
+
exportCompare(projectExid: string, payload: BimCompareExportRequestPayload): Promise<Compare>;
|
|
65
|
+
};
|
|
66
|
+
cameras: {
|
|
67
|
+
getCameras(params: {
|
|
68
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
69
|
+
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
70
|
+
}): Promise<CamerasResponsePayload>;
|
|
71
|
+
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
72
|
+
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
73
|
+
getNvrStreamingToken({ cameraExid, token, }: {
|
|
74
|
+
cameraExid: string;
|
|
75
|
+
token: string;
|
|
76
|
+
}): Promise<string>;
|
|
77
|
+
getCameraStatusLogs(exid: string, params: {
|
|
78
|
+
params: {
|
|
79
|
+
from: string;
|
|
80
|
+
to: string;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<CameraStatusLog[]>;
|
|
83
|
+
updateCamera(exid: string, params: Partial<CameraUpdateRequestPayload>): Promise<CamerasResponsePayload>;
|
|
84
|
+
};
|
|
85
|
+
projects: {
|
|
86
|
+
index({ params, config, }?: {
|
|
87
|
+
params?: ApiCredentials;
|
|
88
|
+
config?: SwrRequestConfig<Project[]>;
|
|
89
|
+
}): Promise<Project[]>;
|
|
90
|
+
create(params: {
|
|
91
|
+
name: string;
|
|
92
|
+
}): Promise<{
|
|
93
|
+
project: ProjectCreateResponse;
|
|
94
|
+
}>;
|
|
95
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
96
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
97
|
+
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
98
|
+
updateLogo(projectId: string, id: number, name: string): Promise<Logo>;
|
|
99
|
+
updateThumbnail(projectExid: string, params: {
|
|
100
|
+
cameraExid?: string;
|
|
101
|
+
uploadedThumbnail?: string;
|
|
102
|
+
}): Promise<{
|
|
103
|
+
message: string;
|
|
104
|
+
}>;
|
|
105
|
+
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
107
|
+
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
108
|
+
placeholder?: string;
|
|
109
|
+
}): Promise<{
|
|
110
|
+
message: string;
|
|
111
|
+
}>;
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
113
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
114
|
+
message: string;
|
|
115
|
+
}>;
|
|
116
|
+
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
117
|
+
getCameras(projectExid: string): Promise<{
|
|
118
|
+
cameras: Camera[];
|
|
119
|
+
}>;
|
|
120
|
+
getCameraRefs(projectExid: string): Promise<{
|
|
121
|
+
cameras: Camera[];
|
|
122
|
+
}>;
|
|
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>;
|
|
128
|
+
};
|
|
129
|
+
timelapse: {
|
|
130
|
+
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
131
|
+
createTimelapse(projectExid: string, payload: TimelapseCreationRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
132
|
+
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
133
|
+
cDelete(projectExid: string, id: number): Promise<void>;
|
|
134
|
+
};
|
|
135
|
+
compares: {
|
|
136
|
+
cCreate(projectExid: string, payload: CompareRequestPayload): Promise<Compare>;
|
|
137
|
+
cShow(projectExid: string, id: string): Promise<Compare>;
|
|
138
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Compare>;
|
|
139
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
140
|
+
};
|
|
141
|
+
projectConnectos: {
|
|
142
|
+
index(projectExid: string): Promise<Array<XWeatherResponse>>;
|
|
143
|
+
};
|
|
144
|
+
providers: {
|
|
145
|
+
getProviders(): Promise<ConnectorResponsePayload>;
|
|
146
|
+
};
|
|
147
|
+
aconex: {
|
|
148
|
+
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
149
|
+
getUserProjects(): Promise<AconexUserProject[]>;
|
|
150
|
+
revoke(): Promise<void>;
|
|
151
|
+
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
152
|
+
getDocumentSchema(projectId: number): Promise<AconexDocumentSchema[]>;
|
|
153
|
+
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
154
|
+
};
|
|
155
|
+
procore: {
|
|
156
|
+
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
157
|
+
getUserProjects(payload: ProcoreCompanyRequestPayload): Promise<ProcoreUserProjectsResponsePayload>;
|
|
158
|
+
getUserProjectPermissions(payload: ProcoreProjectRequestPayload): Promise<ProcoreUserProjectPermissionsResponsePayload>;
|
|
159
|
+
getProjectAlbums(payload: ProcoreProjectRequestPayload): Promise<ProcoreProjectsAlbumsPayload>;
|
|
160
|
+
uploadEditedSnapshot(payload: ProcoreEditedImageUploadRequestPayload): Promise<void>;
|
|
161
|
+
sendRevoke(): Promise<void>;
|
|
162
|
+
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
163
|
+
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
164
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
165
|
+
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
166
|
+
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
167
|
+
createObservation(formData: FormData): Promise<void>;
|
|
168
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
169
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
170
|
+
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
171
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
172
|
+
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
173
|
+
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
174
|
+
getCustomFieldOptions(payload: ProcoreCustomFieldOptionsRequestPayload): Promise<Array<ProcoreObservationListItem>>;
|
|
175
|
+
};
|
|
176
|
+
autodesk: {
|
|
177
|
+
sendRevoke(): Promise<void>;
|
|
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>;
|
|
184
|
+
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
185
|
+
};
|
|
186
|
+
voyageControl: {
|
|
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>;
|
|
204
|
+
};
|
|
205
|
+
xweather: {
|
|
206
|
+
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
207
|
+
revoke(projectExid: string): Promise<void>;
|
|
208
|
+
};
|
|
209
|
+
recordings: {
|
|
210
|
+
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
211
|
+
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
212
|
+
nearest(cameraId: string, timestamp: string, payload?: NearestSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
213
|
+
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
214
|
+
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
215
|
+
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
216
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
217
|
+
};
|
|
218
|
+
progressPhotos: {
|
|
219
|
+
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
220
|
+
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
221
|
+
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
222
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
223
|
+
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
|
|
224
|
+
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
225
|
+
};
|
|
226
|
+
mediaHub: {
|
|
227
|
+
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
228
|
+
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
229
|
+
cShow(projectExid: string, id: string): Promise<Media>;
|
|
230
|
+
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
231
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
232
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
233
|
+
};
|
|
234
|
+
shares: {
|
|
235
|
+
deleteShareRequest(payload: {
|
|
236
|
+
params: ShareDeletionRequestPayload;
|
|
237
|
+
}): Promise<void>;
|
|
238
|
+
getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
|
|
239
|
+
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
240
|
+
};
|
|
241
|
+
company: {
|
|
242
|
+
show(companyId: string | undefined, params?: {
|
|
243
|
+
with_zoho?: boolean;
|
|
244
|
+
}): Promise<CompanySummary>;
|
|
245
|
+
getCompanyUsers(params: {
|
|
246
|
+
params: {
|
|
247
|
+
page: number;
|
|
248
|
+
limit: number;
|
|
249
|
+
};
|
|
250
|
+
}): Promise<PaginatedItems<CompanyUser>>;
|
|
251
|
+
getCompanyProjects(params: {
|
|
252
|
+
params: {
|
|
253
|
+
page: number;
|
|
254
|
+
limit: number;
|
|
255
|
+
};
|
|
256
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
257
|
+
getCompanyCameras(params: PaginationParams | {
|
|
258
|
+
params: PaginationParams;
|
|
259
|
+
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
260
|
+
getCompanyKits(params: {
|
|
261
|
+
params: {
|
|
262
|
+
page: number;
|
|
263
|
+
limit: number;
|
|
264
|
+
};
|
|
265
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
266
|
+
};
|
|
267
|
+
batteries: {
|
|
268
|
+
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
269
|
+
batteryReadings(cameraExid: string, params: {
|
|
270
|
+
fromDate: string;
|
|
271
|
+
toDate: string;
|
|
272
|
+
}): Promise<PaginatedItems<BatteryReading>>;
|
|
273
|
+
readingsVoltageSummary(cameraExid: string, params: {
|
|
274
|
+
fromDate: string;
|
|
275
|
+
toDate: string;
|
|
276
|
+
}): Promise<BatteryVoltage[]>;
|
|
277
|
+
};
|
|
278
|
+
layers: {
|
|
279
|
+
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: AxiosRequestConfig): Promise<BIMLayer>;
|
|
280
|
+
getLayersById(cameraId: string, id: number, params: ApiCredentials): Promise<BIMLayer>;
|
|
281
|
+
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
282
|
+
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
283
|
+
deleteLayer(cameraId: string, id: number, params?: ApiCredentials): Promise<void>;
|
|
284
|
+
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
285
|
+
};
|
|
286
|
+
comments: {
|
|
287
|
+
fetchComments(projectExid: string, params: CommentsRequestPayload): Promise<PaginatedItems<Comment>>;
|
|
288
|
+
addComment(projectId: string, params: CommentCreationRequestPayload): Promise<Comment>;
|
|
289
|
+
archiveOrUnarchiveComment(projectId: string, id: number, archive: boolean): Promise<Comment>;
|
|
290
|
+
deleteComment(projectId: string, id: number): Promise<void>;
|
|
291
|
+
};
|
|
292
|
+
storyblock: {
|
|
293
|
+
getStory(params: {
|
|
294
|
+
route: string;
|
|
295
|
+
params: string;
|
|
296
|
+
}): Promise<StoryblokResponse>;
|
|
297
|
+
};
|
|
298
|
+
mailing: {
|
|
299
|
+
unsubscribe(params: {
|
|
300
|
+
key: string;
|
|
301
|
+
}): Promise<void>;
|
|
302
|
+
};
|
|
303
|
+
widgets: {
|
|
304
|
+
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
305
|
+
show(id: number): Promise<WidgetFull>;
|
|
306
|
+
getByKeys(): Promise<WidgetFull>;
|
|
307
|
+
setSessionSettings(params: WidgetSessionSettingsPayload): Promise<WidgetFull>;
|
|
308
|
+
setStatus(id: number, params: {
|
|
309
|
+
active: boolean;
|
|
310
|
+
}): Promise<WidgetFull>;
|
|
311
|
+
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
312
|
+
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
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
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, ActiveUsersResponsePayload, ActiveUsersRequestPayload, HeatmapIntersectionsRequestParams, SmartSearchHeatmapPoint, SiteAnalyticsProcessingStatusPayload, SiteAnalyticsProcessingStatus } from "@evercam/api/types";
|
|
2
|
+
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
|
+
import type { SwrRequestConfig } from "@evercam/api/types";
|
|
4
|
+
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
5
|
+
export declare const EvercamLabsApi: {
|
|
6
|
+
posthog: {
|
|
7
|
+
getEvents(params: any): Promise<PaginatedItems<any>>;
|
|
8
|
+
getUsers(params: any): Promise<any>;
|
|
9
|
+
getActiveUsers(params: ActiveUsersRequestPayload): Promise<ActiveUsersResponsePayload>;
|
|
10
|
+
};
|
|
11
|
+
copilot: {
|
|
12
|
+
getAllConversations(params: LabsPaginationParams & {
|
|
13
|
+
cameraExid?: string;
|
|
14
|
+
projectExid?: string;
|
|
15
|
+
user?: string;
|
|
16
|
+
}): Promise<PaginatedItems<CopilotConversation>>;
|
|
17
|
+
getOneConversation(conversationId: number): Promise<PaginatedItems<CopilotConversation>>;
|
|
18
|
+
getConversationMessages(conversationId: number, params: LabsPaginationParams): Promise<PaginatedItems<CopilotMessage>>;
|
|
19
|
+
getMessageSteps(message: CopilotMessage): Promise<CopilotMessageStep[]>;
|
|
20
|
+
submitMessageFeedback({ conversationId, messageId, ...params }: FeedbackPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
+
};
|
|
22
|
+
siteAnalytics: {
|
|
23
|
+
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
24
|
+
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
25
|
+
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
26
|
+
};
|
|
27
|
+
googleCloudStorage: {
|
|
28
|
+
listFiles(prefix?: string): Promise<{
|
|
29
|
+
files: string[];
|
|
30
|
+
folders: string[];
|
|
31
|
+
}>;
|
|
32
|
+
getSignedUrl(fileName: string): Promise<{
|
|
33
|
+
url: string;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
luminance: {
|
|
37
|
+
getReadings(params: {
|
|
38
|
+
cameraExid: CameraExid;
|
|
39
|
+
fromDate: string;
|
|
40
|
+
toDate: string;
|
|
41
|
+
}): Promise<LuminanceReading[]>;
|
|
42
|
+
};
|
|
43
|
+
kits: {
|
|
44
|
+
getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -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,147 @@
|
|
|
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 } from "@evercam/api/types";
|
|
5
|
+
export declare const getIngestApiUrl: (version: string) => string | undefined | null;
|
|
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(version?: IngestVersions): 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
|
+
}, version?: IngestVersions): Promise<_360AssetsResponse>;
|
|
41
|
+
get360AssetsCounts(projectId: string, params: {
|
|
42
|
+
uploadedBy: string;
|
|
43
|
+
}, version?: IngestVersions): 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, version?: IngestVersions): Promise<_360WalkV2>;
|
|
46
|
+
update360ByProjectDateName(projectId: string, date: string, floor: string, payload: _360AssetsRequestPayload, version?: IngestVersions): Promise<_360WalkV2>;
|
|
47
|
+
deleteUpload(id: number, version?: IngestVersions): Promise<void>;
|
|
48
|
+
getArchive(id: number, params: {
|
|
49
|
+
dateType: string;
|
|
50
|
+
}, version?: IngestVersions): Promise<Blob>;
|
|
51
|
+
createUpload(projectId: string, params: _360AssetsRequestPayload, version?: IngestVersions): Promise<IngestUploadInitResponse>;
|
|
52
|
+
upload(id: number, params: JsonObject, payload: _360AssetsUploadPayload, version?: IngestVersions): Promise<_360WalkV2>;
|
|
53
|
+
reprocess360(id: number, version?: IngestVersions): Promise<void>;
|
|
54
|
+
drawingExists(payload: {
|
|
55
|
+
params: {
|
|
56
|
+
name: string;
|
|
57
|
+
project_id: string;
|
|
58
|
+
};
|
|
59
|
+
}, version?: IngestVersions): Promise<JsonObject>;
|
|
60
|
+
getDrawings(payload: {
|
|
61
|
+
params: DrawingsRequestPayload;
|
|
62
|
+
config?: SwrRequestConfig<_360FloorsResponse>;
|
|
63
|
+
}, version?: IngestVersions): Promise<_360FloorsResponse>;
|
|
64
|
+
getDrawingById(id: number, projectExid: string, version?: IngestVersions): Promise<_360FloorV2>;
|
|
65
|
+
updateDrawing(id: number, projectExid: string, payload: GenerateFloorPayload, version?: IngestVersions): Promise<_360FloorV2>;
|
|
66
|
+
deleteDrawing(id: number, version?: IngestVersions): Promise<void>;
|
|
67
|
+
transferWalks(sourceId: number, targetId: number, projectExid: string, version?: IngestVersions): Promise<void>;
|
|
68
|
+
createDrawing(projectExid: string, payload: GenerateFloorPayload, createdBy: string, version?: IngestVersions): Promise<_360FloorV2>;
|
|
69
|
+
fetchDrawingOverlay(id: number, params: {
|
|
70
|
+
view: boolean;
|
|
71
|
+
}, onDownloadProgress: (progress: ProgressEvent) => void, version?: IngestVersions): Promise<Blob>;
|
|
72
|
+
getFloorArchive(id: number, version?: IngestVersions): Promise<string>;
|
|
73
|
+
generate360map(projectId: string, params: Generate360MapRequestPayload, version?: IngestVersions): Promise<JsonObject>;
|
|
74
|
+
get360QueueSize(params: _360QueueQueryParams, version?: IngestVersions): 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, version?: IngestVersions): Promise<MobileCaptureAssetsResponse>;
|
|
92
|
+
getMobileAssetPhoto(assetId: string | number, params: {
|
|
93
|
+
projectId?: string;
|
|
94
|
+
project_id?: string;
|
|
95
|
+
isThumbnail?: boolean;
|
|
96
|
+
is_thumbnail?: boolean;
|
|
97
|
+
}, version?: IngestVersions): Promise<string>;
|
|
98
|
+
deleteAsset(assetId: string | number, version?: IngestVersions): Promise<void>;
|
|
99
|
+
};
|
|
100
|
+
utils: {
|
|
101
|
+
loadAllAssetsInQueue(): Promise<({
|
|
102
|
+
ingestVersion: string;
|
|
103
|
+
archive: string;
|
|
104
|
+
date: string;
|
|
105
|
+
deviceSerial: string | null;
|
|
106
|
+
endPosition: unknown | null;
|
|
107
|
+
floor: string;
|
|
108
|
+
floorId: number;
|
|
109
|
+
id: number;
|
|
110
|
+
images: string[];
|
|
111
|
+
insertedAt: string;
|
|
112
|
+
mobileAudios: string[];
|
|
113
|
+
mobileAudiosArchive: string;
|
|
114
|
+
mobilePhotos: string[];
|
|
115
|
+
mobilePhotosArchive: string;
|
|
116
|
+
model: string;
|
|
117
|
+
name: string;
|
|
118
|
+
processingStatus: string;
|
|
119
|
+
projectId: string;
|
|
120
|
+
report: string;
|
|
121
|
+
route: unknown | null;
|
|
122
|
+
startPosition: unknown | null;
|
|
123
|
+
tusLinks: unknown | null;
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
uploadedBy: string;
|
|
126
|
+
videoArchive: string;
|
|
127
|
+
videos: string[];
|
|
128
|
+
} | {
|
|
129
|
+
ingestVersion: string;
|
|
130
|
+
id: number;
|
|
131
|
+
projectId: string;
|
|
132
|
+
consumed: boolean;
|
|
133
|
+
token: string;
|
|
134
|
+
flightDate: string;
|
|
135
|
+
flightGeolocation: string;
|
|
136
|
+
modelZip: string;
|
|
137
|
+
orthomosaicZip: string;
|
|
138
|
+
reportPdf: string;
|
|
139
|
+
uploadedBy: string;
|
|
140
|
+
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
141
|
+
modelCesiumAssetId: string;
|
|
142
|
+
updatedAt: string;
|
|
143
|
+
hasTusLinks: boolean;
|
|
144
|
+
})[]>;
|
|
145
|
+
choose360IngestVersion(): Promise<IngestVersions>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
@@ -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,13 +26,17 @@ 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;
|
|
27
36
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
37
|
};
|
|
29
38
|
controls: {
|
|
30
|
-
move({ cameraExid, direction,
|
|
39
|
+
move({ cameraExid, direction, useContinuous }: MoveParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
40
|
zoom({ cameraExid, direction, isRecordingFromNvr }: ZoomParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
41
|
stop({ cameraExid }: {
|
|
33
42
|
cameraExid: string;
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CurrentWeatherRequestPayload, HistoryWeatherRequestPayload, WeatherDataResponse, WeatherReportRequestPayload, WeatherResponsePayload } from "@evercam/api/types";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare const WeatherApi: {
|
|
4
|
+
current(projectExid: string, payload: CurrentWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
5
|
+
historical(projectExid: string, payload: HistoryWeatherRequestPayload): Promise<WeatherResponsePayload> | undefined;
|
|
6
|
+
report(projectExid: string, payload: WeatherReportRequestPayload, config?: AxiosRequestConfig): Promise<{
|
|
7
|
+
data: WeatherDataResponse[];
|
|
8
|
+
}> | undefined;
|
|
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";
|