@evercam/api 1.0.0-3b6f67124 → 1.0.0-3ff33d7a8
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/dist/api/api/evercamApi.d.ts +2 -2
- package/dist/api/api/ingestApi.d.ts +2 -0
- package/dist/api/types/360.d.ts +9 -0
- package/dist/api/types/axios.d.ts +6 -4
- package/dist/api/types/camera.d.ts +2 -1
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/ingest.d.ts +1 -0
- package/dist/api/types/recording.d.ts +1 -0
- package/dist/api/types/user.d.ts +1 -0
- package/dist/index.js +359 -348
- 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/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -216,10 +216,10 @@ export declare const EvercamApi: {
|
|
|
216
216
|
oldest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
217
217
|
latest(cameraId: string, payload?: ApiCredentials): Promise<Snapshot>;
|
|
218
218
|
nearest(cameraId: string, timestamp: string, payload?: NearestSnapshotRequestPayload, extraParams?: AxiosRequestConfig): Promise<NearestSnapshotResponsePayload>;
|
|
219
|
-
availableDays({ cameraId, year, month, payload, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
219
|
+
availableDays({ cameraId, year, month, payload, cancelToken, }: AvailableDaysRequestPayload): Promise<AvailableDaysResponsePayload>;
|
|
220
220
|
availableHours({ cameraId, year, month, day, payload, cancelToken, }: AvailableHoursRequestPayload): Promise<AvailableHoursResponsePayload>;
|
|
221
221
|
getSnapshot(cameraId: string, dateTime: string): Promise<SnapshotRangeResponsePayload>;
|
|
222
|
-
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload): Promise<SnapshotRangeResponsePayload>;
|
|
222
|
+
getSnapshotRange(cameraId: string, payload: SnapshotRangeRequestPayload, extraParams?: AxiosRequestConfig): Promise<SnapshotRangeResponsePayload>;
|
|
223
223
|
};
|
|
224
224
|
progressPhotos: {
|
|
225
225
|
index(projectId: string): Promise<ProgressPhotosResponsePayload>;
|
|
@@ -110,6 +110,7 @@ export declare const IngestApi: {
|
|
|
110
110
|
modelZip: string;
|
|
111
111
|
orthomosaicZip: string;
|
|
112
112
|
reportPdf: string;
|
|
113
|
+
processingLog: string;
|
|
113
114
|
uploadedBy: string;
|
|
114
115
|
processingStatus: import("@evercam/api/types").IngestProcessingStatus | string;
|
|
115
116
|
modelCesiumAssetId: string;
|
|
@@ -135,6 +136,7 @@ export declare const IngestApi: {
|
|
|
135
136
|
processingStatus: string;
|
|
136
137
|
projectId: string;
|
|
137
138
|
report: string;
|
|
139
|
+
processingLog: string;
|
|
138
140
|
route: unknown | null;
|
|
139
141
|
startPosition: unknown | null;
|
|
140
142
|
tusLinks: unknown | null;
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export type _360WalkV2 = {
|
|
|
92
92
|
processingStatus: string;
|
|
93
93
|
projectId: string;
|
|
94
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
95
96
|
route: unknown | null;
|
|
96
97
|
startPosition: unknown | null;
|
|
97
98
|
tusLinks: unknown | null;
|
|
@@ -278,4 +279,12 @@ export type Generate360MapRequestPayload = {
|
|
|
278
279
|
cameraOffset: string;
|
|
279
280
|
startPoint: string;
|
|
280
281
|
endPoint: string;
|
|
282
|
+
drawingId?: number;
|
|
283
|
+
markers?: Array<{
|
|
284
|
+
position: {
|
|
285
|
+
x: number;
|
|
286
|
+
y: number;
|
|
287
|
+
z: number;
|
|
288
|
+
};
|
|
289
|
+
}>;
|
|
281
290
|
};
|
|
@@ -29,15 +29,17 @@ export type AxiosEnvironment = {
|
|
|
29
29
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
30
30
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
31
31
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
32
|
+
export type RequestManager = {
|
|
33
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
34
|
+
cancelAll: () => void;
|
|
35
|
+
};
|
|
32
36
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
33
37
|
CancelToken: CancelTokenStatic;
|
|
34
38
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
35
39
|
setToken: (token: string) => void;
|
|
36
40
|
setHeader: (headerName: string, value: any) => void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
resetCancelTokens: () => void;
|
|
40
|
-
cancelRequests: () => void;
|
|
41
|
+
createRequestManager: () => RequestManager;
|
|
42
|
+
requestManager: RequestManager;
|
|
41
43
|
env: AxiosEnvironment;
|
|
42
44
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
43
45
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
3
|
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
4
4
|
export type CameraExid = string;
|
|
@@ -80,6 +80,7 @@ export type Camera = {
|
|
|
80
80
|
vendorName: string;
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
83
84
|
};
|
|
84
85
|
export type AdminCamera = {
|
|
85
86
|
id: number;
|
|
@@ -46,4 +46,15 @@ type _EvercamApiError = {
|
|
|
46
46
|
innerError?: _EvercamApiError;
|
|
47
47
|
};
|
|
48
48
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
statusCode?: number;
|
|
51
|
+
message?: string;
|
|
52
|
+
redirect?: {
|
|
53
|
+
url?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
delay?: number;
|
|
56
|
+
};
|
|
57
|
+
withSupportMessage?: boolean;
|
|
58
|
+
isWidget?: boolean;
|
|
59
|
+
};
|
|
49
60
|
export {};
|