@evercam/api 1.0.0-e03adefb8 → 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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +17 -1
- package/dist/api/api/adminApi.d.ts +115 -62
- package/dist/api/api/aiApi.d.ts +65 -81
- package/dist/api/api/authzApi.d.ts +32 -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 +125 -96
- package/dist/api/api/evercamLabsApi.d.ts +6 -3
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +112 -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 +192 -5
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +154 -40
- package/dist/api/types/anpr.d.ts +24 -13
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +60 -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 +21 -1
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +103 -75
- package/dist/api/types/comments.d.ts +21 -9
- package/dist/api/types/company.d.ts +71 -2
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -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 +18 -24
- package/dist/api/types/errors.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +46 -150
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/ingest.d.ts +89 -2
- package/dist/api/types/kit.d.ts +64 -9
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +4 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +26 -16
- package/dist/api/types/progressPhoto.d.ts +10 -24
- package/dist/api/types/project.d.ts +131 -17
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +12 -10
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +194 -48
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/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 +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 +3 -4
- package/dist/api/types/user.d.ts +105 -30
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1416 -920
- 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 +98 -12
- package/dist/shared/types/imagePlayer.d.ts +2 -2
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +5 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { ExtendedAxiosInstance } from "
|
|
1
|
+
import type { ExtendedAxiosInstance } from "@evercam/api/types";
|
|
2
2
|
declare module "axios" {
|
|
3
3
|
interface AxiosRequestConfig {
|
|
4
4
|
raw?: boolean;
|
|
5
5
|
preserveCasing?: boolean;
|
|
6
6
|
timing?: boolean;
|
|
7
|
+
skipAuth?: boolean;
|
|
7
8
|
_metadata?: {
|
|
8
9
|
startTime: number;
|
|
9
10
|
};
|
|
@@ -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
|
+
}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
|
-
import
|
|
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";
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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>;
|
|
17
21
|
show(email: string): Promise<{
|
|
18
|
-
users:
|
|
22
|
+
users: User[];
|
|
19
23
|
}>;
|
|
20
24
|
logout(payload: LogoutParams, config?: Partial<AxiosRequestConfig>): Promise<void>;
|
|
21
25
|
resetPassword(email: string): Promise<{
|
|
@@ -28,21 +32,26 @@ export declare const EvercamApi: {
|
|
|
28
32
|
remotePasswordUpdate(email: string, payload: RemotePasswordUpdateRequestPayload): Promise<{
|
|
29
33
|
message: string;
|
|
30
34
|
}>;
|
|
31
|
-
confirm(email: string, payload:
|
|
32
|
-
deleteActiveSession(sessionId: string, payload
|
|
33
|
-
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>>;
|
|
34
40
|
update(email: string, params?: Partial<UserUpdateRequestPayload>): Promise<{
|
|
35
|
-
users:
|
|
41
|
+
users: User[];
|
|
36
42
|
}>;
|
|
37
43
|
delete(email: string, params: UserDeleteRequestPayload): Promise<void>;
|
|
38
44
|
fetchPermissions(): Promise<{
|
|
39
45
|
permissions: string[];
|
|
40
46
|
}>;
|
|
47
|
+
getProjectContacts(projectExid: ProjectExid): Promise<ProjectContactsResponsePayload>;
|
|
41
48
|
};
|
|
42
49
|
notifications: {
|
|
43
|
-
get(): Promise<
|
|
44
|
-
markAllAsRead(
|
|
45
|
-
|
|
50
|
+
get(): Promise<PaginatedItems<Notification>>;
|
|
51
|
+
markAllAsRead(): Promise<{
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
markAsRead(id: number): Promise<Notification>;
|
|
46
55
|
};
|
|
47
56
|
bim: {
|
|
48
57
|
getBimSnapshot(cameraId: string, dateTime: string, payload: Partial<BimSnapshotRequestPayload>, extraParams?: AxiosRequestConfig): Promise<BimSnapshotResponsePayload>;
|
|
@@ -56,15 +65,11 @@ export declare const EvercamApi: {
|
|
|
56
65
|
};
|
|
57
66
|
cameras: {
|
|
58
67
|
getCameras(params: {
|
|
59
|
-
params
|
|
68
|
+
params?: Partial<FetchCameraQueryParams>;
|
|
69
|
+
config?: SwrRequestConfig<CamerasResponsePayload>;
|
|
60
70
|
}): Promise<CamerasResponsePayload>;
|
|
61
71
|
getCameraById(cameraId: string, params?: ApiCredentials): Promise<CamerasResponsePayload>;
|
|
62
72
|
getCameraLastPublicNote(cameraId: string): Promise<CameraLogsResponsePayload>;
|
|
63
|
-
portCheck(payload: {
|
|
64
|
-
params: CheckCameraPortPayload;
|
|
65
|
-
}): Promise<CheckCameraPortPayload & {
|
|
66
|
-
open: boolean;
|
|
67
|
-
}>;
|
|
68
73
|
getNvrStreamingToken({ cameraExid, token, }: {
|
|
69
74
|
cameraExid: string;
|
|
70
75
|
token: string;
|
|
@@ -75,16 +80,22 @@ export declare const EvercamApi: {
|
|
|
75
80
|
to: string;
|
|
76
81
|
};
|
|
77
82
|
}): Promise<CameraStatusLog[]>;
|
|
78
|
-
updateCamera(exid: string, params: CameraUpdateRequestPayload): Promise<CamerasResponsePayload>;
|
|
83
|
+
updateCamera(exid: string, params: Partial<CameraUpdateRequestPayload>): Promise<CamerasResponsePayload>;
|
|
79
84
|
};
|
|
80
85
|
projects: {
|
|
81
|
-
index(params?:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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;
|
|
85
94
|
}>;
|
|
95
|
+
getLogos(projectId: string): Promise<ProjectLogoResponsePayload>;
|
|
96
|
+
createLogo(projectId: string, formData: FormData): Promise<Logo>;
|
|
86
97
|
deleteLogo(projectId: string, id: number): Promise<void>;
|
|
87
|
-
updateLogo(projectId: string, id: number, name: string): Promise<
|
|
98
|
+
updateLogo(projectId: string, id: number, name: string): Promise<Logo>;
|
|
88
99
|
updateThumbnail(projectExid: string, params: {
|
|
89
100
|
cameraExid?: string;
|
|
90
101
|
uploadedThumbnail?: string;
|
|
@@ -92,23 +103,28 @@ export declare const EvercamApi: {
|
|
|
92
103
|
message: string;
|
|
93
104
|
}>;
|
|
94
105
|
getThumbnailData(projectExid: string): Promise<ThumbnailData>;
|
|
95
|
-
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<
|
|
106
|
+
updateCamerasRestriction(projectExid: ProjectExid, payload: UpdateCameraRestrictionPayload): Promise<void>;
|
|
96
107
|
updatePlaceholderThumbnail(projectExid: string, params: {
|
|
97
108
|
placeholder?: string;
|
|
98
109
|
}): Promise<{
|
|
99
110
|
message: string;
|
|
100
111
|
}>;
|
|
101
|
-
getPlaceholderThumbnailData(projectExid: string): Promise<
|
|
112
|
+
getPlaceholderThumbnailData(projectExid: string): Promise<PlaceholderThumbnailData>;
|
|
102
113
|
transferOwnership(projectExid: string, newOwnerId: number): Promise<{
|
|
103
114
|
message: string;
|
|
104
115
|
}>;
|
|
105
|
-
getUsers(projectExid: string): Promise<
|
|
116
|
+
getUsers(projectExid: string): Promise<ProjectUsersResponsePayload>;
|
|
106
117
|
getCameras(projectExid: string): Promise<{
|
|
107
118
|
cameras: Camera[];
|
|
108
119
|
}>;
|
|
109
120
|
getCameraRefs(projectExid: string): Promise<{
|
|
110
121
|
cameras: Camera[];
|
|
111
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>;
|
|
112
128
|
};
|
|
113
129
|
timelapse: {
|
|
114
130
|
getSnapshotRange(cameraId: string, payload: TimelapseSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<TimelapseSnapshotResponsePayload>;
|
|
@@ -130,10 +146,11 @@ export declare const EvercamApi: {
|
|
|
130
146
|
};
|
|
131
147
|
aconex: {
|
|
132
148
|
authenticate(payload: AconexAuthCallbackParams): Promise<void>;
|
|
133
|
-
getUserProjects(): Promise<
|
|
149
|
+
getUserProjects(): Promise<AconexUserProject[]>;
|
|
134
150
|
revoke(): Promise<void>;
|
|
135
151
|
uploadEditedSnapshot(projectId: number, payload: AconexEditedImageUploadRequestPayload): Promise<void>;
|
|
136
|
-
getDocumentSchema(projectId: number): Promise<
|
|
152
|
+
getDocumentSchema(projectId: number): Promise<AconexDocumentSchema[]>;
|
|
153
|
+
getDocumentTypeSchema(projectId: number, documentTypeId: string): Promise<AconexDocumentTypeSchema[]>;
|
|
137
154
|
};
|
|
138
155
|
procore: {
|
|
139
156
|
getUserCompanies(): Promise<ProcoreUserCompaniesResponsePayload>;
|
|
@@ -144,38 +161,50 @@ export declare const EvercamApi: {
|
|
|
144
161
|
sendRevoke(): Promise<void>;
|
|
145
162
|
getObservationTypes(payload: ProcoreProjectRequestPayload): Promise<ProcoreObservationTypesResponsePayload>;
|
|
146
163
|
getObservationForm(payload: ProcoreObservationFormRequestPayload): Promise<ProcoreObservationForm>;
|
|
164
|
+
getNextAvailableObservationNumber(payload: ProcoreProjectRequestPayload): Promise<ProcoreNextObservationAvailableNumber>;
|
|
147
165
|
getAssignees(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationAssignee>>;
|
|
148
166
|
getDistributionMembers(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationDistributionMember>>;
|
|
149
167
|
createObservation(formData: FormData): Promise<void>;
|
|
150
|
-
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<
|
|
151
|
-
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<
|
|
168
|
+
getContributingBehaviors(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
169
|
+
getContributingConditions(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
152
170
|
getTrades(payload: ProcoreCompanyRequestPayload): Promise<Array<ProcoreObservationTrades>>;
|
|
153
|
-
getHazards(payload: ProcoreCompanyRequestPayload): Promise<
|
|
171
|
+
getHazards(payload: ProcoreCompanyRequestPayload): Promise<ProcoreObservationDefaultList>;
|
|
154
172
|
getLocations(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationLocation>>;
|
|
155
173
|
getSpecificationSections(payload: ProcoreProjectRequestPayload): Promise<Array<ProcoreObservationSpecificationSection>>;
|
|
156
|
-
getCustomFieldOptions(payload:
|
|
157
|
-
options: {
|
|
158
|
-
[key: string]: string[];
|
|
159
|
-
};
|
|
160
|
-
}>;
|
|
174
|
+
getCustomFieldOptions(payload: ProcoreCustomFieldOptionsRequestPayload): Promise<Array<ProcoreObservationListItem>>;
|
|
161
175
|
};
|
|
162
176
|
autodesk: {
|
|
163
177
|
sendRevoke(): Promise<void>;
|
|
164
|
-
getUserHubs(): Promise<
|
|
165
|
-
getProjects(hubId: string): Promise<
|
|
166
|
-
getFolders(hubId: string, projectId: string): Promise<Array<
|
|
167
|
-
getSubFolders(projectId: string, parentFolderId: string, getDerivatives:
|
|
168
|
-
getFolder(projectId: string, folderId: string): Promise<
|
|
169
|
-
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>;
|
|
170
184
|
fetchViewerToken(exid: string): Promise<AutodeskTokenResponsePayload>;
|
|
171
185
|
};
|
|
172
186
|
voyageControl: {
|
|
173
|
-
connect(payload: VoyageControlConnectorPayload): Promise<
|
|
174
|
-
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>;
|
|
175
204
|
};
|
|
176
205
|
xweather: {
|
|
177
206
|
connect(projectExid: string, payload: XWeatherCreatePayload): Promise<XWeatherResponse>;
|
|
178
|
-
revoke(projectExid: string): Promise<
|
|
207
|
+
revoke(projectExid: string): Promise<void>;
|
|
179
208
|
};
|
|
180
209
|
recordings: {
|
|
181
210
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
@@ -187,10 +216,10 @@ export declare const EvercamApi: {
|
|
|
187
216
|
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
188
217
|
};
|
|
189
218
|
progressPhotos: {
|
|
190
|
-
index(): Promise<ProgressPhotosResponsePayload>;
|
|
191
|
-
show(id: string): Promise<
|
|
219
|
+
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
220
|
+
show(id: string): Promise<ProgressPhotoItemResponsePayload>;
|
|
192
221
|
create(payload: ProgressPhotosCreateUpdateRequestPayload): Promise<ProgressPhotosResponsePayload>;
|
|
193
|
-
update(id: string, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<
|
|
222
|
+
update(id: string | number, payload: ProgressPhotosCreateUpdateRequestPayload): Promise<Automation>;
|
|
194
223
|
unsubscribe(progressPhotoId: string, params: ProgressPhotosUnSubscribeParams): Promise<ProgressPhotosResponsePayload>;
|
|
195
224
|
delete(id: string, params?: ApiCredentials): Promise<void>;
|
|
196
225
|
};
|
|
@@ -199,57 +228,41 @@ export declare const EvercamApi: {
|
|
|
199
228
|
getAllMediaUsers(projectExid: string): Promise<MediaUsersResponsePayload>;
|
|
200
229
|
cShow(projectExid: string, id: string): Promise<Media>;
|
|
201
230
|
cCreate(projectExid: string, payload: MediaCreateRequestPayload): Promise<Media>;
|
|
202
|
-
cUpdate(projectExid:
|
|
203
|
-
cDelete(projectExid:
|
|
231
|
+
cUpdate(projectExid: string, id: string, payload: MediaUpdateRequestPayload): Promise<Media>;
|
|
232
|
+
cDelete(projectExid: string, id: string): Promise<void>;
|
|
204
233
|
};
|
|
205
234
|
shares: {
|
|
206
|
-
updateShareRights(cameraExid: CameraExid, payload: {
|
|
207
|
-
email: string;
|
|
208
|
-
rights: string;
|
|
209
|
-
}): Promise<Share>;
|
|
210
|
-
updateShareRequestRights(cameraExid: CameraExid, payload: {
|
|
211
|
-
email: string;
|
|
212
|
-
rights: string;
|
|
213
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
214
|
-
cIndex(cameraId: string): Promise<SharesResponsePayload>;
|
|
215
|
-
getShareRequest(cameraId: string, payload: {
|
|
216
|
-
status: string;
|
|
217
|
-
}): Promise<ShareRequestsResponsePayload>;
|
|
218
|
-
deleteShare(cameraId: string, payload: {
|
|
219
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
220
|
-
}): Promise<void>;
|
|
221
|
-
deleteRequest(cameraId: string, payload: {
|
|
222
|
-
[key: string]: ShareDeletionRequestPayload;
|
|
223
|
-
}): Promise<void>;
|
|
224
235
|
deleteShareRequest(payload: {
|
|
225
236
|
params: ShareDeletionRequestPayload;
|
|
226
237
|
}): Promise<void>;
|
|
227
238
|
getSharedUsers(cameraId: string): Promise<SharedUsersResponsePayload>;
|
|
228
|
-
cCreate(cameraId: string, payload: ShareCreateRequestPayload): Promise<ShareCreateResponsePayload>;
|
|
229
|
-
shareProjectCameras(projectExid: ProjectExid, payload: ShareProjectCamerasRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
230
239
|
getShareRequestByKey(key: string): Promise<Pick<ShareCreateResponsePayload, "shareRequests">>;
|
|
231
|
-
transferOwnership(cameraId: string, payload: {
|
|
232
|
-
userId: number;
|
|
233
|
-
}): Promise<void>;
|
|
234
|
-
resendShareRequest(cameraId: string, data: ResendShareRequestPayload): Promise<void>;
|
|
235
|
-
getProjectShares(exid: string): Promise<ProjectShareResponse>;
|
|
236
|
-
updateUserRestriction(projectExid: ProjectExid, payload: UpdateUserRestrictionPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
237
240
|
};
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
company: {
|
|
242
|
+
show(companyId: string | undefined, params?: {
|
|
243
|
+
with_zoho?: boolean;
|
|
244
|
+
}): Promise<CompanySummary>;
|
|
245
|
+
getCompanyUsers(params: {
|
|
240
246
|
params: {
|
|
241
247
|
page: number;
|
|
242
248
|
limit: number;
|
|
243
249
|
};
|
|
244
250
|
}): Promise<PaginatedItems<CompanyUser>>;
|
|
245
|
-
getCompanyProjects(
|
|
251
|
+
getCompanyProjects(params: {
|
|
246
252
|
params: {
|
|
247
253
|
page: number;
|
|
248
254
|
limit: number;
|
|
249
255
|
};
|
|
250
256
|
}): Promise<PaginatedItems<CompanyProject>>;
|
|
251
|
-
|
|
252
|
-
|
|
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>>;
|
|
253
266
|
};
|
|
254
267
|
batteries: {
|
|
255
268
|
ProjectBatteryReadings(projectExid: string): Promise<ProjectBatteryReading[]>;
|
|
@@ -263,11 +276,11 @@ export declare const EvercamApi: {
|
|
|
263
276
|
}): Promise<BatteryVoltage[]>;
|
|
264
277
|
};
|
|
265
278
|
layers: {
|
|
266
|
-
getLayer(cameraId: string, params: BimLayersQueryParams, extraParams?:
|
|
267
|
-
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>;
|
|
268
281
|
getLayers(cameraId: string, params: BimLayersQueryParams): Promise<BIMLayer[]>;
|
|
269
282
|
createLayer(cameraId: string, params: BIMLayerPostPayload): Promise<BIMLayer>;
|
|
270
|
-
deleteLayer(cameraId: string, id: number, params
|
|
283
|
+
deleteLayer(cameraId: string, id: number, params?: ApiCredentials): Promise<void>;
|
|
271
284
|
updateLayer(cameraId: string, id: number, params: Partial<BIMLayerPostPayload>): Promise<BIMLayer>;
|
|
272
285
|
};
|
|
273
286
|
comments: {
|
|
@@ -280,21 +293,37 @@ export declare const EvercamApi: {
|
|
|
280
293
|
getStory(params: {
|
|
281
294
|
route: string;
|
|
282
295
|
params: string;
|
|
283
|
-
}): Promise<
|
|
296
|
+
}): Promise<StoryblokResponse>;
|
|
284
297
|
};
|
|
285
298
|
mailing: {
|
|
286
299
|
unsubscribe(params: {
|
|
287
300
|
key: string;
|
|
288
|
-
}): Promise<
|
|
301
|
+
}): Promise<void>;
|
|
289
302
|
};
|
|
290
303
|
widgets: {
|
|
291
304
|
index(params: Partial<WidgetsListRequestPayload>): Promise<PaginatedItems<Widget>>;
|
|
292
305
|
show(id: number): Promise<WidgetFull>;
|
|
293
306
|
getByKeys(): Promise<WidgetFull>;
|
|
294
|
-
setSessionSettings(params:
|
|
295
|
-
|
|
296
|
-
|
|
307
|
+
setSessionSettings(params: WidgetSessionSettingsPayload): Promise<WidgetFull>;
|
|
308
|
+
setStatus(id: number, params: {
|
|
309
|
+
active: boolean;
|
|
310
|
+
}): Promise<WidgetFull>;
|
|
311
|
+
create(payload: WidgetPayload): Promise<WidgetFull>;
|
|
297
312
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
298
|
-
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>;
|
|
299
328
|
};
|
|
300
329
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel, 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,12 @@ 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
|
+
siteAnalytics: {
|
|
23
|
+
getProcessingStatus(params?: SiteAnalyticsProcessingStatusPayload, config?: SwrRequestConfig<SiteAnalyticsProcessingStatus[]>): Promise<SiteAnalyticsProcessingStatus[]>;
|
|
22
24
|
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
|
|
25
|
+
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
23
26
|
};
|
|
24
27
|
googleCloudStorage: {
|
|
25
28
|
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, }: {
|