@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.
@@ -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;
@@ -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
- generateCancelTokenSource: () => CancelTokenSource;
38
- addCancelToken: (token: CancelTokenSource) => void;
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 {};
@@ -48,6 +48,7 @@ export type DroneUploadItem = {
48
48
  modelZip: string;
49
49
  orthomosaicZip: string;
50
50
  reportPdf: string;
51
+ processingLog: string;
51
52
  uploadedBy: string;
52
53
  processingStatus: IngestProcessingStatus | string;
53
54
  modelCesiumAssetId: string;
@@ -17,6 +17,7 @@ export type AvailableDaysRequestPayload = {
17
17
  year: string;
18
18
  month: string;
19
19
  payload?: ApiCredentials;
20
+ cancelToken?: CancelToken;
20
21
  };
21
22
  export type AvailableDaysResponsePayload = {
22
23
  days: Array<number>;
@@ -337,6 +337,7 @@ export type ProjectUserWithRole = {
337
337
  name: string;
338
338
  exid: string;
339
339
  };
340
+ persona: Persona;
340
341
  permissions: string[];
341
342
  role: Role;
342
343
  subRoles: RoleSubRole[];