@evercam/api 1.0.0-ae46ef99c → 1.0.0-api-fixes-bdf31a1d5
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 +170 -5
- package/dist/api/api/adminApi.d.ts +170 -99
- package/dist/api/api/aiApi.d.ts +99 -82
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +158 -116
- package/dist/api/api/evercamLabsApi.d.ts +6 -4
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +119 -33
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +208 -7
- package/dist/api/types/aconex.d.ts +106 -7
- package/dist/api/types/admin.d.ts +67 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +172 -41
- package/dist/api/types/anpr.d.ts +52 -13
- package/dist/api/types/auditLogs.d.ts +63 -38
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +28 -7
- package/dist/api/types/bim.d.ts +77 -43
- package/dist/api/types/camera.d.ts +165 -135
- package/dist/api/types/comments.d.ts +43 -21
- package/dist/api/types/company.d.ts +91 -11
- package/dist/api/types/compare.d.ts +40 -21
- package/dist/api/types/connector.d.ts +4 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/countries.d.ts +0 -7
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +23 -34
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +12 -0
- package/dist/api/types/gateReport.d.ts +50 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hdd.d.ts +76 -17
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/ingest.d.ts +104 -3
- package/dist/api/types/kit.d.ts +71 -12
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +21 -2
- package/dist/api/types/notification.d.ts +50 -14
- package/dist/api/types/nvr.d.ts +28 -0
- package/dist/api/types/oauth.d.ts +63 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +23 -16
- package/dist/api/types/progressPhoto.d.ts +30 -41
- package/dist/api/types/project.d.ts +182 -20
- package/dist/api/types/recording.d.ts +11 -14
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +43 -3
- package/dist/api/types/shared.d.ts +81 -53
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -9
- package/dist/api/types/siteAnalytics.d.ts +194 -48
- 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 +108 -7
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +31 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +4 -5
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +46 -17
- package/dist/api/types/user.d.ts +174 -88
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +151 -11
- package/dist/api/types/widget.d.ts +143 -54
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2206 -1029
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +163 -18
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +7 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import
|
|
2
|
+
import { 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, BatteryReadingRequestPayload, 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, 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, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRequestPayload, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseArchiveResponse, 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, NotificationsListParams, PlaceholderThumbnailData, ProjectUsersResponsePayload, ProjectTransferOwnershipResponse, ProjectTeamMembersResponse, SnapshotEmailDeliveryRequestPayload, SnapshotEmailDeliveryResponsePayload } 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>;
|
|
10
|
+
zohoAuthUrl(payload: {
|
|
11
|
+
firstname: string;
|
|
12
|
+
lastname: string;
|
|
13
|
+
}): Promise<{
|
|
14
|
+
url: string;
|
|
15
|
+
}>;
|
|
9
16
|
fetchAccessFeatures(email: string): Promise<{
|
|
10
|
-
features:
|
|
17
|
+
features: UserFeatureFlag[];
|
|
11
18
|
}>;
|
|
12
|
-
impersonationLogin(token: string): Promise<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
impersonationLogin(token: string): Promise<User>;
|
|
20
|
+
fetchLoginOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
21
|
+
fetchSignupOptions(email: string): Promise<AuthOptionsResponsePayload>;
|
|
22
|
+
fetchProviderConfig(provider: string): Promise<AuthProviderConfigPayload>;
|
|
23
|
+
login(params: LoginRequestPayload): Promise<User>;
|
|
24
|
+
loginWithApiCredentials(apiId: string, apiKey: string): Promise<User>;
|
|
25
|
+
loginWithWidgetCredentials(widgetId: string, widgetKey: string): Promise<User>;
|
|
26
|
+
loginWithProvider(provider: string, payload: GoogleAuthRequestPayload): Promise<User>;
|
|
17
27
|
show(email: string): Promise<{
|
|
18
|
-
users:
|
|
28
|
+
users: User[];
|
|
19
29
|
}>;
|
|
20
30
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
21
31
|
resetPassword(email: string): Promise<{
|
|
@@ -28,21 +38,26 @@ export declare const EvercamApi: {
|
|
|
28
38
|
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
29
39
|
message: string;
|
|
30
40
|
}>;
|
|
31
|
-
confirm(email: string, payload:
|
|
32
|
-
deleteActiveSession(sessionId: string, payload
|
|
33
|
-
getActiveSessions(
|
|
41
|
+
confirm(email: string, payload: ConfirmUserRequestPayload): Promise<User>;
|
|
42
|
+
deleteActiveSession(sessionId: string, payload: DeleteActiveSessionRequestPayload): Promise<void>;
|
|
43
|
+
getActiveSessions(params: AxiosRequestConfig & {
|
|
44
|
+
params: SessionsListRequestPayload;
|
|
45
|
+
}): Promise<PaginatedItems<UserSession>>;
|
|
34
46
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
35
|
-
users:
|
|
47
|
+
users: User[];
|
|
36
48
|
}>;
|
|
37
49
|
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
38
50
|
fetchPermissions(): Promise<{
|
|
39
51
|
permissions: string[];
|
|
40
52
|
}>;
|
|
53
|
+
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
41
54
|
};
|
|
42
55
|
notifications: {
|
|
43
|
-
get(): Promise<
|
|
44
|
-
markAllAsRead(
|
|
45
|
-
|
|
56
|
+
get(params?: NotificationsListParams): Promise<PaginatedItems<Notification>>;
|
|
57
|
+
markAllAsRead(): Promise<{
|
|
58
|
+
message: string;
|
|
59
|
+
}>;
|
|
60
|
+
markAsRead(id: number): Promise<Notification>;
|
|
46
61
|
};
|
|
47
62
|
bim: {
|
|
48
63
|
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
@@ -56,15 +71,11 @@ export declare const EvercamApi: {
|
|
|
56
71
|
};
|
|
57
72
|
cameras: {
|
|
58
73
|
getCameras(params: {
|
|
59
|
-
params
|
|
74
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
75
|
+
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
60
76
|
}): Promise<CamerasResponsePayload>;
|
|
61
77
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
62
78
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
63
|
-
portCheck(payload: {
|
|
64
|
-
params: CheckCameraPortPayload;
|
|
65
|
-
}): Promise<CheckCameraPortPayload & {
|
|
66
|
-
open: boolean;
|
|
67
|
-
}>;
|
|
68
79
|
getNvrStreamingToken({ cameraExid, token, }: {
|
|
69
80
|
cameraExid: string;
|
|
70
81
|
token: string;
|
|
@@ -75,16 +86,22 @@ export declare const EvercamApi: {
|
|
|
75
86
|
to: string;
|
|
76
87
|
};
|
|
77
88
|
}): Promise<CameraStatusLog[]>;
|
|
78
|
-
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
89
|
+
updateCamera(exid: string, params: Partial<CameraUpdateRequestPayload>): Promise<CamerasResponsePayload>;
|
|
79
90
|
};
|
|
80
91
|
projects: {
|
|
81
|
-
index(params?:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
index({ params, config, }?: {
|
|
93
|
+
params?: ApiCredentials;
|
|
94
|
+
config?: SwrRequestConfig<Project[]>;
|
|
95
|
+
}): Promise<Project[]>;
|
|
96
|
+
create(params: {
|
|
97
|
+
name: string;
|
|
98
|
+
}): Promise<{
|
|
99
|
+
project: ProjectCreateResponse;
|
|
85
100
|
}>;
|
|
101
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
102
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
86
103
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
87
|
-
updateLogo(projectId: string, id: number, name: string): Promise<
|
|
104
|
+
updateLogo(projectId: string, id: number, name: string): Promise<Logo>;
|
|
88
105
|
updateThumbnail(projectExid: string, params: {
|
|
89
106
|
cameraExid?: string;
|
|
90
107
|
uploadedThumbnail?: string;
|
|
@@ -92,28 +109,31 @@ export declare const EvercamApi: {
|
|
|
92
109
|
message: string;
|
|
93
110
|
}>;
|
|
94
111
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
95
|
-
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<
|
|
112
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
96
113
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
97
|
-
placeholder
|
|
114
|
+
placeholder: string;
|
|
98
115
|
}): Promise<{
|
|
99
116
|
message: string;
|
|
100
117
|
}>;
|
|
101
|
-
getPlaceholderThumbnailData(projectExid: string): Promise<
|
|
102
|
-
transferOwnership(projectExid: string, newOwnerId: number): Promise<
|
|
103
|
-
|
|
104
|
-
}>;
|
|
105
|
-
getUsers(projectExid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
118
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
119
|
+
transferOwnership(projectExid: string, newOwnerId: number): Promise<ProjectTransferOwnershipResponse>;
|
|
120
|
+
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
106
121
|
getCameras(projectExid: string): Promise<{
|
|
107
122
|
cameras: Camera[];
|
|
108
123
|
}>;
|
|
109
124
|
getCameraRefs(projectExid: string): Promise<{
|
|
110
125
|
cameras: Camera[];
|
|
111
126
|
}>;
|
|
127
|
+
getTeamMembers(): Promise<ProjectTeamMembersResponse>;
|
|
128
|
+
getMembers(projectExid: string): Promise<ProjectMembersResponsePayload>;
|
|
129
|
+
inviteMembers(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectMembersResponsePayload>;
|
|
130
|
+
removeMembers(projectExid: string, emails: string[]): Promise<void>;
|
|
131
|
+
updateMembersRole(projectExid: string, payload: ProjectMembersRequestPayload): Promise<ProjectMembersResponsePayload>;
|
|
112
132
|
};
|
|
113
133
|
timelapse: {
|
|
114
134
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
115
135
|
createTimelapse(projectExid: string, payload: TimelapseCreationRequestPayload): Promise<TimelapseCreationResponsePayload>;
|
|
116
|
-
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<
|
|
136
|
+
cUpdate(projectExid: string, id: string | number, payload: MediaUpdateRequestPayload): Promise<TimelapseArchiveResponse>;
|
|
117
137
|
cDelete(projectExid: string, id: number): Promise<void>;
|
|
118
138
|
};
|
|
119
139
|
compares: {
|
|
@@ -130,10 +150,11 @@ export declare const EvercamApi: {
|
|
|
130
150
|
};
|
|
131
151
|
aconex: {
|
|
132
152
|
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
133
|
-
getUserProjects(): Promise<
|
|
153
|
+
getUserProjects(): Promise<AconexUserProject[]>;
|
|
134
154
|
revoke(): Promise<void>;
|
|
135
|
-
uploadEditedSnapshot(projectId:
|
|
136
|
-
getDocumentSchema(projectId:
|
|
155
|
+
uploadEditedSnapshot(projectId: string, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
156
|
+
getDocumentSchema(projectId: string): Promise<AconexDocumentSchema[]>;
|
|
157
|
+
getDocumentTypeSchema(projectId: string, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
137
158
|
};
|
|
138
159
|
procore: {
|
|
139
160
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
@@ -148,127 +169,121 @@ export declare const EvercamApi: {
|
|
|
148
169
|
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
149
170
|
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
150
171
|
createObservation(formData: FormData): Promise<void>;
|
|
151
|
-
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<
|
|
152
|
-
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<
|
|
172
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
173
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
153
174
|
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
154
|
-
getHazards(payload: ProcoreCompanyRequestPayload): Promise<
|
|
175
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
155
176
|
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
156
177
|
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
157
|
-
getCustomFieldOptions(payload:
|
|
158
|
-
options: {
|
|
159
|
-
[key: string]: string[];
|
|
160
|
-
};
|
|
161
|
-
}>;
|
|
178
|
+
getCustomFieldOptions(payload: ProcoreCustomFieldOptionsRequestPayload): Promise<Array<ProcoreObservationListItem>>;
|
|
162
179
|
};
|
|
163
180
|
autodesk: {
|
|
164
181
|
sendRevoke(): Promise<void>;
|
|
165
|
-
getUserHubs(): Promise<
|
|
166
|
-
getProjects(hubId: string): Promise<
|
|
167
|
-
getFolders(hubId: string, projectId: string): Promise<Array<
|
|
168
|
-
getSubFolders(projectId: string, parentFolderId: string, getDerivatives:
|
|
169
|
-
getFolder(projectId: string, folderId: string): Promise<
|
|
170
|
-
uploadEditedSnapshot(payload:
|
|
182
|
+
getUserHubs(): Promise<AutodeskUserHub[]>;
|
|
183
|
+
getProjects(hubId: string): Promise<AutodeskProject[]>;
|
|
184
|
+
getFolders(hubId: string, projectId: string): Promise<Array<AutodeskFolder>>;
|
|
185
|
+
getSubFolders(projectId: string, parentFolderId: string, getDerivatives: boolean): Promise<Array<AutodeskFolder>>;
|
|
186
|
+
getFolder(projectId: string, folderId: string): Promise<AutodeskFolder>;
|
|
187
|
+
uploadEditedSnapshot(payload: AutodeskSnapshot): Promise<null>;
|
|
171
188
|
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
172
189
|
};
|
|
173
190
|
voyageControl: {
|
|
174
|
-
connect(payload: VoyageControlConnectorPayload): Promise<
|
|
175
|
-
sendRevoke(): Promise<
|
|
191
|
+
connect(payload: VoyageControlConnectorPayload): Promise<void>;
|
|
192
|
+
sendRevoke(): Promise<void>;
|
|
193
|
+
};
|
|
194
|
+
ring: {
|
|
195
|
+
authenticate(payload: {
|
|
196
|
+
code: string;
|
|
197
|
+
}): Promise<void>;
|
|
198
|
+
getDevices(): Promise<RingDevicesResponsePayload>;
|
|
199
|
+
importDevices(payload: RingImportDevicesPayload): Promise<RingImportResponsePayload>;
|
|
200
|
+
moveDevice(cameraExid: string, payload: RingMoveDevicePayload): Promise<RingMoveDeviceResponsePayload>;
|
|
201
|
+
deleteDevice(cameraExid: string): Promise<{
|
|
202
|
+
status: string;
|
|
203
|
+
cameraExid: string;
|
|
204
|
+
}>;
|
|
205
|
+
disconnect(): Promise<void>;
|
|
206
|
+
startLiveView(cameraExid: string, payload: RingLiveViewPayload): Promise<RingLiveViewResponse>;
|
|
207
|
+
stopLiveView(cameraExid: string, sessionId: string): Promise<RingStopLiveViewResponse>;
|
|
176
208
|
};
|
|
177
209
|
xweather: {
|
|
178
210
|
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
179
|
-
revoke(projectExid: string): Promise<
|
|
211
|
+
revoke(projectExid: string): Promise<void>;
|
|
180
212
|
};
|
|
181
213
|
recordings: {
|
|
182
|
-
oldest(cameraId: string, payload?:
|
|
183
|
-
latest(cameraId: string, payload?:
|
|
184
|
-
nearest(cameraId: string, timestamp: string, payload?:
|
|
185
|
-
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
214
|
+
oldest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
215
|
+
latest(cameraId: string, payload?: SnapshotRequestPayload): Promise<Snapshot>;
|
|
216
|
+
nearest(cameraId: string, timestamp: string, payload?: SnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
217
|
+
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
186
218
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
187
219
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
188
|
-
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
220
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload, extraParams?: AxiosRequestConfig): Promise<SnapshotRangeResponsePayload>;
|
|
189
221
|
};
|
|
190
222
|
progressPhotos: {
|
|
191
|
-
index(): Promise<ProgressPhotosResponsePayload>;
|
|
192
|
-
show(id: string): Promise<
|
|
223
|
+
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
224
|
+
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
193
225
|
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
194
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
195
|
-
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<
|
|
226
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
227
|
+
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<void>;
|
|
196
228
|
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
197
229
|
};
|
|
198
230
|
mediaHub: {
|
|
199
231
|
getAllMedia(projectExid: string, params: MediaFilterQueryParams): Promise<PaginatedItems<Media>>;
|
|
200
232
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
201
233
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
202
|
-
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
203
|
-
cUpdate(projectExid:
|
|
204
|
-
cDelete(projectExid:
|
|
234
|
+
cCreate(projectExid: string, payload: FormData | MediaCreateRequestPayload, onUploadProgress?: (progressEvent: any) => void): Promise<Media>;
|
|
235
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
236
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
205
237
|
};
|
|
206
238
|
shares: {
|
|
207
|
-
updateShareRights(cameraExid: CameraExid, payload: {
|
|
208
|
-
email: string;
|
|
209
|
-
rights: string;
|
|
210
|
-
}): Promise<Share>;
|
|
211
|
-
updateShareRequestRights(cameraExid: CameraExid, payload: {
|
|
212
|
-
email: string;
|
|
213
|
-
rights: string;
|
|
214
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
215
|
-
cIndex(cameraId: string): Promise<SharesResponsePayload>;
|
|
216
|
-
getShareRequest(cameraId: string, payload: {
|
|
217
|
-
status: string;
|
|
218
|
-
}): Promise<ShareRequestsResponsePayload>;
|
|
219
|
-
deleteShare(cameraId: string, payload: {
|
|
220
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
221
|
-
}): Promise<void>;
|
|
222
|
-
deleteRequest(cameraId: string, payload: {
|
|
223
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
224
|
-
}): Promise<void>;
|
|
225
239
|
deleteShareRequest(payload: {
|
|
226
240
|
params: ShareDeletionRequestPayload;
|
|
227
241
|
}): Promise<void>;
|
|
228
242
|
getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
|
|
229
|
-
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
230
|
-
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
231
243
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
232
|
-
transferOwnership(cameraId: string, payload: {
|
|
233
|
-
userId: number;
|
|
234
|
-
}): Promise<void>;
|
|
235
|
-
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
236
|
-
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
237
|
-
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
238
244
|
};
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
company: {
|
|
246
|
+
show(companyId: string | undefined, params?: {
|
|
247
|
+
with_zoho?: boolean;
|
|
248
|
+
}): Promise<CompanySummary>;
|
|
249
|
+
getCompanyUsers(params?: {
|
|
241
250
|
params: {
|
|
242
|
-
page
|
|
243
|
-
limit
|
|
251
|
+
page?: number;
|
|
252
|
+
limit?: number;
|
|
253
|
+
sort?: string;
|
|
244
254
|
};
|
|
245
255
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
246
|
-
getCompanyProjects(
|
|
256
|
+
getCompanyProjects(params?: {
|
|
257
|
+
params: {
|
|
258
|
+
page?: number;
|
|
259
|
+
limit?: number;
|
|
260
|
+
sort?: string;
|
|
261
|
+
};
|
|
262
|
+
}): Promise<PaginatedItems<CompanyProject>>;
|
|
263
|
+
getCompanyCameras(params: PaginationParams | {
|
|
264
|
+
params: PaginationParams;
|
|
265
|
+
}): Promise<PaginatedItems<CompanyCameraSummary>>;
|
|
266
|
+
getCompanyKits(params: {
|
|
247
267
|
params: {
|
|
248
268
|
page: number;
|
|
249
269
|
limit: number;
|
|
250
270
|
};
|
|
251
|
-
}): Promise<PaginatedItems<
|
|
252
|
-
show(companyId: string, params?: Record<string, string>): Promise<Company>;
|
|
253
|
-
getCompanyCameras(id: string, params: Record<string, string>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
271
|
+
}): Promise<PaginatedItems<CompanyKit>>;
|
|
254
272
|
};
|
|
255
273
|
batteries: {
|
|
256
274
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
257
|
-
batteryReadings(cameraExid: string, params:
|
|
258
|
-
fromDate: string;
|
|
259
|
-
toDate: string;
|
|
260
|
-
}): Promise<PaginatedItems<BatteryReading>>;
|
|
275
|
+
batteryReadings(cameraExid: string, params: BatteryReadingRequestPayload): Promise<PaginatedItems<BatteryReading>>;
|
|
261
276
|
readingsVoltageSummary(cameraExid: string, params: {
|
|
262
277
|
fromDate: string;
|
|
263
278
|
toDate: string;
|
|
264
279
|
}): Promise<BatteryVoltage[]>;
|
|
265
280
|
};
|
|
266
281
|
layers: {
|
|
267
|
-
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?:
|
|
268
|
-
getLayersById(cameraId: string, id: number, params:
|
|
282
|
+
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?: AxiosRequestConfig): Promise<BIMLayer>;
|
|
283
|
+
getLayersById(cameraId: string, id: number, params: ApiCredentials): Promise<BIMLayer>;
|
|
269
284
|
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
270
285
|
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
271
|
-
deleteLayer(cameraId: string, id: number, params
|
|
286
|
+
deleteLayer(cameraId: string, id: number, params?: ApiCredentials): Promise<void>;
|
|
272
287
|
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
273
288
|
};
|
|
274
289
|
comments: {
|
|
@@ -281,21 +296,48 @@ export declare const EvercamApi: {
|
|
|
281
296
|
getStory(params: {
|
|
282
297
|
route: string;
|
|
283
298
|
params: string;
|
|
284
|
-
}): Promise<
|
|
299
|
+
}): Promise<StoryblokResponse>;
|
|
300
|
+
};
|
|
301
|
+
snapshots: {
|
|
302
|
+
deliverViaEmail(projectExid: string, payload: SnapshotEmailDeliveryRequestPayload): Promise<SnapshotEmailDeliveryResponsePayload>;
|
|
285
303
|
};
|
|
286
304
|
mailing: {
|
|
287
305
|
unsubscribe(params: {
|
|
288
306
|
key: string;
|
|
289
|
-
}): Promise<
|
|
307
|
+
}): Promise<void>;
|
|
290
308
|
};
|
|
291
309
|
widgets: {
|
|
292
310
|
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
293
311
|
show(id: number): Promise<WidgetFull>;
|
|
294
312
|
getByKeys(): Promise<WidgetFull>;
|
|
295
|
-
setSessionSettings(params:
|
|
296
|
-
|
|
297
|
-
|
|
313
|
+
setSessionSettings(params: WidgetSessionSettingsPayload): Promise<WidgetFull>;
|
|
314
|
+
setStatus(id: number, params: {
|
|
315
|
+
active: boolean;
|
|
316
|
+
}): Promise<WidgetFull>;
|
|
317
|
+
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
298
318
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
299
|
-
delete(id: number): Promise<
|
|
319
|
+
delete(id: number): Promise<void>;
|
|
320
|
+
};
|
|
321
|
+
developerApps: {
|
|
322
|
+
index(): Promise<{
|
|
323
|
+
items: OAuthClient[];
|
|
324
|
+
}>;
|
|
325
|
+
show(clientId: string): Promise<OAuthClient>;
|
|
326
|
+
create(payload: CreateOAuthClientPayload): Promise<OAuthClientWithSecret>;
|
|
327
|
+
update(clientId: string, payload: UpdateOAuthClientPayload): Promise<OAuthClient>;
|
|
328
|
+
delete(clientId: string): Promise<void>;
|
|
329
|
+
regenerateSecret(clientId: string): Promise<OAuthClientWithSecret>;
|
|
330
|
+
};
|
|
331
|
+
oauth: {
|
|
332
|
+
getClientInfo(clientId: string, scope: string): Promise<OAuthConsentInfo>;
|
|
333
|
+
submitConsent(payload: OAuthConsentPayload): Promise<OAuthConsentResponse>;
|
|
334
|
+
};
|
|
335
|
+
zoho: {
|
|
336
|
+
getDealLocation(dealId: string): Promise<{
|
|
337
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
338
|
+
}>;
|
|
339
|
+
updateDealLocation(dealId: string, payload: {
|
|
340
|
+
geographicBounds: GeoJSONPolygon;
|
|
341
|
+
}): Promise<void>;
|
|
300
342
|
};
|
|
301
343
|
};
|
|
@@ -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, }: {
|