@evercam/api 1.0.0-8d64fdf7a → 1.0.0-8d6ccf4f8
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/{adminApi.d.ts → api/adminApi.d.ts} +142 -79
- package/dist/api/api/aiApi.d.ts +128 -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 +337 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +147 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +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 +124 -0
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/gateReport.d.ts +46 -150
- package/dist/{types → api/types}/hdd.d.ts +26 -1
- package/dist/{types → api/types}/index.d.ts +15 -3
- package/dist/api/types/ingest.d.ts +134 -0
- package/dist/{types → api/types}/kit.d.ts +93 -7
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +79 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/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 +13 -20
- 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/storageProvider.d.ts +19 -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 +100 -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 +1707 -968
- 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 +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -47
- 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 -73
- 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 -85
- package/dist/types/sitePlanner.d.ts +0 -28
- package/dist/types/storageServers.d.ts +0 -4
- 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}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -5,6 +5,7 @@ export declare const BadRequestError: {
|
|
|
5
5
|
stack?: string;
|
|
6
6
|
cause?: unknown;
|
|
7
7
|
};
|
|
8
|
+
isError(error: unknown): error is Error;
|
|
8
9
|
};
|
|
9
10
|
export declare const NotFoundError: {
|
|
10
11
|
new (error: unknown): {
|
|
@@ -13,6 +14,7 @@ export declare const NotFoundError: {
|
|
|
13
14
|
stack?: string;
|
|
14
15
|
cause?: unknown;
|
|
15
16
|
};
|
|
17
|
+
isError(error: unknown): error is Error;
|
|
16
18
|
};
|
|
17
19
|
export declare const UnauthorizedError: {
|
|
18
20
|
new (error: unknown): {
|
|
@@ -21,6 +23,7 @@ export declare const UnauthorizedError: {
|
|
|
21
23
|
stack?: string;
|
|
22
24
|
cause?: unknown;
|
|
23
25
|
};
|
|
26
|
+
isError(error: unknown): error is Error;
|
|
24
27
|
};
|
|
25
28
|
export declare const GatewayTimeoutError: {
|
|
26
29
|
new (error: unknown): {
|
|
@@ -29,6 +32,7 @@ export declare const GatewayTimeoutError: {
|
|
|
29
32
|
stack?: string;
|
|
30
33
|
cause?: unknown;
|
|
31
34
|
};
|
|
35
|
+
isError(error: unknown): error is Error;
|
|
32
36
|
};
|
|
33
37
|
export declare const BadGatewayError: {
|
|
34
38
|
new (error: unknown): {
|
|
@@ -37,6 +41,7 @@ export declare const BadGatewayError: {
|
|
|
37
41
|
stack?: string;
|
|
38
42
|
cause?: unknown;
|
|
39
43
|
};
|
|
44
|
+
isError(error: unknown): error is Error;
|
|
40
45
|
};
|
|
41
46
|
export declare const ForbiddenError: {
|
|
42
47
|
new (error: unknown): {
|
|
@@ -45,6 +50,7 @@ export declare const ForbiddenError: {
|
|
|
45
50
|
stack?: string;
|
|
46
51
|
cause?: unknown;
|
|
47
52
|
};
|
|
53
|
+
isError(error: unknown): error is Error;
|
|
48
54
|
};
|
|
49
55
|
export declare const HlsError: {
|
|
50
56
|
new (error: unknown): {
|
|
@@ -53,6 +59,7 @@ export declare const HlsError: {
|
|
|
53
59
|
stack?: string;
|
|
54
60
|
cause?: unknown;
|
|
55
61
|
};
|
|
62
|
+
isError(error: unknown): error is Error;
|
|
56
63
|
};
|
|
57
64
|
export declare const SnapshotError: {
|
|
58
65
|
new (error: unknown): {
|
|
@@ -61,6 +68,7 @@ export declare const SnapshotError: {
|
|
|
61
68
|
stack?: string;
|
|
62
69
|
cause?: unknown;
|
|
63
70
|
};
|
|
71
|
+
isError(error: unknown): error is Error;
|
|
64
72
|
};
|
|
65
73
|
export declare const ConflictError: {
|
|
66
74
|
new (error: unknown): {
|
|
@@ -69,6 +77,7 @@ export declare const ConflictError: {
|
|
|
69
77
|
stack?: string;
|
|
70
78
|
cause?: unknown;
|
|
71
79
|
};
|
|
80
|
+
isError(error: unknown): error is Error;
|
|
72
81
|
};
|
|
73
82
|
export declare const InternalServerError: {
|
|
74
83
|
new (error: unknown): {
|
|
@@ -77,4 +86,5 @@ export declare const InternalServerError: {
|
|
|
77
86
|
stack?: string;
|
|
78
87
|
cause?: unknown;
|
|
79
88
|
};
|
|
89
|
+
isError(error: unknown): error is Error;
|
|
80
90
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
-
import type
|
|
1
|
+
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
|
+
import { type AxiosEnvironment } from "@evercam/api/types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
5
5
|
export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) => Promise<{
|
|
6
6
|
error: AxiosError<unknown, any>;
|
|
7
7
|
duration: number;
|
|
8
8
|
}>;
|
|
9
|
+
export declare const ensureCommonHeaders: (target: AxiosDefaults | AxiosRequestConfig) => void;
|
|
9
10
|
export declare const OnRequestExpiredTokenInterceptor: (request: AxiosRequestConfig, isTokenExpired: () => boolean, handler: () => Promise<void>) => Promise<AxiosRequestConfig<any>>;
|
|
@@ -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,337 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { Automation, GeoJSONPolygon, ProgressPhotoItemResponsePayload, Project, SwrRequestConfig, UserFeatureFlag } from "@evercam/api/types";
|
|
3
|
+
import type { AconexAuthCallbackParams, AconexEditedImageUploadRequestPayload, AconexUserProject, AconexDocumentSchema, AconexDocumentTypeSchema, ApiCredentials, AutodeskFolder, AutodeskProject, AutodeskTokenResponsePayload, AutodeskSnapshot, AutodeskUserHub, AvailableDaysRequestPayload, AvailableDaysResponsePayload, AvailableHoursRequestPayload, AvailableHoursResponsePayload, BatteryReading, BatteryVoltage, BimCompareExportRequestPayload, BimCreationPayload, BIMLayer, BIMLayerPostPayload, BimLayersQueryParams, BimModelRequestPayload, BimModelResponsePayload, BimPendingImage, BimSnapshotRequestPayload, BimSnapshotResponsePayload, BimUploadCameraParameters, CameraLogsResponsePayload, CamerasResponsePayload, CameraStatusLog, CameraUpdateRequestPayload, Comment, CommentCreationRequestPayload, CommentsRequestPayload, CompanyCameraSummary, CompanyProject, CompanyKit, CompanySummary, CompanyUser, Compare, CompareRequestPayload, ConnectorResponsePayload, Credentials, FetchCameraQueryParams, GoogleAuthRequestPayload, LoginRequestPayload, User, Logo, LogoutParams, Media, MediaCreateRequestPayload, MediaFilterQueryParams, MediaUpdateRequestPayload, MediaUsersResponsePayload, NearestSnapshotRequestPayload, NearestSnapshotResponsePayload, PaginatedItems, PendingBimImagesParams, ProcessPendingImagesBimParams, ProcoreEditedImageUploadRequestPayload, ProcoreObservationFormRequestPayload, ProcoreObservationTypesResponsePayload, ProcoreProjectsAlbumsPayload, ProcoreProjectRequestPayload, ProcoreUserCompaniesResponsePayload, ProcoreCompanyRequestPayload, ProcoreUserProjectsResponsePayload, ProcoreUserProjectPermissionsResponsePayload, ProcoreObservationAssignee, ProcoreObservationDistributionMember, ProcoreObservationTrades, ProcoreObservationLocation, ProcoreObservationSpecificationSection, ProcoreObservationForm, ProcoreObservationDefaultList, ProcoreObservationListItem, ProcoreCustomFieldOptionsRequestPayload, ProgressPhotosCreateUpdateRequestPayload, ProgressPhotosResponsePayload, ProgressPhotosUnSubscribeParams, ProjectBatteryReading, ProjectCreateResponse, ProjectExid, ProjectLogoResponsePayload, ProjectMembersResponsePayload, ProjectMembersRequestPayload, ProjectInviteMembersResponsePayload, RemotePasswordUpdateRequestPayload, SessionsListRequestPayload, ShareCreateResponsePayload, ShareDeletionRequestPayload, SharedUsersResponsePayload, UpdateCameraRestrictionPayload, SignupUserRequestPayload, Snapshot, SnapshotRangeRequestPayload, SnapshotRangeResponsePayload, ThumbnailData, TimelapseCreationRequestPayload, TimelapseCreationResponsePayload, TimelapseSnapshotRequestPayload, TimelapseSnapshotResponsePayload, UpdatePasswordRequestPayload, UserDeleteRequestPayload, UserSession, UserUpdateRequestPayload, VoyageControlConnectorPayload, RingDevicesResponsePayload, RingImportDevicesPayload, RingImportResponsePayload, RingMoveDevicePayload, RingMoveDeviceResponsePayload, RingLiveViewPayload, RingLiveViewResponse, RingStopLiveViewResponse, AuthOptionsResponsePayload, AuthProviderConfigPayload, ConfirmUserRequestPayload, DeleteActiveSessionRequestPayload, ProjectContactsResponsePayload, XWeatherCreatePayload, XWeatherResponse, Widget, WidgetFull, WidgetPayload, WidgetSessionSettingsPayload, WidgetsListRequestPayload, Camera, ProcoreNextObservationAvailableNumber, OAuthClient, OAuthClientWithSecret, OAuthConsentInfo, OAuthConsentPayload, OAuthConsentResponse, CreateOAuthClientPayload, UpdateOAuthClientPayload, PaginationParams, StoryblokResponse, Notification, PlaceholderThumbnailData, ProjectUsersResponsePayload, ProjectMember } from "@evercam/api/types";
|
|
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
|
+
zoho: {
|
|
330
|
+
getDealLocation(dealId: string): Promise<{
|
|
331
|
+
geographicBounds: GeoJSONPolygon | null;
|
|
332
|
+
}>;
|
|
333
|
+
updateDealLocation(dealId: string, payload: {
|
|
334
|
+
geographicBounds: GeoJSONPolygon;
|
|
335
|
+
}): Promise<void>;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, 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
|
+
getIntersectionsHeatmapData(params: HeatmapIntersectionsRequestParams): Promise<SmartSearchHeatmapPoint[]>;
|
|
25
|
+
};
|
|
26
|
+
googleCloudStorage: {
|
|
27
|
+
listFiles(prefix?: string): Promise<{
|
|
28
|
+
files: string[];
|
|
29
|
+
folders: string[];
|
|
30
|
+
}>;
|
|
31
|
+
getSignedUrl(fileName: string): Promise<{
|
|
32
|
+
url: string;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
luminance: {
|
|
36
|
+
getReadings(params: {
|
|
37
|
+
cameraExid: CameraExid;
|
|
38
|
+
fromDate: string;
|
|
39
|
+
toDate: string;
|
|
40
|
+
}): Promise<LuminanceReading[]>;
|
|
41
|
+
};
|
|
42
|
+
kits: {
|
|
43
|
+
getMetrics(kitId: string, metrics: GrafanaMetricId[], period?: KitMetricPeriod): Promise<GrafanaKitMetrics>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -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";
|