@evercam/api 1.0.0-fa346266d → 1.0.0-fce98b41d
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 +2 -0
- package/dist/api/adminApi.d.ts +3 -0
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamLabsApi.d.ts +1 -2
- package/dist/api/weatherApi.d.ts +3 -3
- package/dist/index.js +434 -435
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +2 -2
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +4 -3
- package/dist/types/copilot.d.ts +9 -8
- package/dist/types/detections.d.ts +6 -3
- package/dist/types/siteAnalytics.d.ts +0 -1
- package/dist/types/sitePlanner.d.ts +4 -2
- package/dist/types/timelapse.d.ts +8 -0
- package/dist/types/widget.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/api/adminApi.d.ts
CHANGED
|
@@ -304,4 +304,7 @@ export declare const AdminApi: {
|
|
|
304
304
|
update(id: number, payload: WidgetPayload): Promise<WidgetFull>;
|
|
305
305
|
delete(id: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
306
306
|
};
|
|
307
|
+
zohoDesk: {
|
|
308
|
+
searchTickets(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
309
|
+
};
|
|
307
310
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
1
|
+
import { AxiosDefaults, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from "axios";
|
|
2
2
|
import type { AxiosEnvironment } from "../../types";
|
|
3
3
|
export declare const onRequest: (request: AxiosRequestConfig, axiosEnv: AxiosEnvironment) => Promise<AxiosRequestConfig<any>>;
|
|
4
4
|
export declare const onResponse: (response: AxiosResponse) => any;
|
|
@@ -6,4 +6,5 @@ export declare const onError: (error: AxiosError, axiosEnv: AxiosEnvironment) =>
|
|
|
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>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep,
|
|
1
|
+
import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraVideoConfig, MilesightRequestParams, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
|
|
2
2
|
import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
|
|
3
3
|
export declare function getLabsBaseUrl(): string | null | undefined;
|
|
4
4
|
export declare const EvercamLabsApi: {
|
|
@@ -23,7 +23,6 @@ export declare const EvercamLabsApi: {
|
|
|
23
23
|
};
|
|
24
24
|
detections: {
|
|
25
25
|
getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
|
|
26
|
-
getCranesMovement({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<CountByPeriod[]>;
|
|
27
26
|
};
|
|
28
27
|
googleCloudStorage: {
|
|
29
28
|
listFiles(prefix?: string): Promise<{
|
package/dist/api/weatherApi.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ export declare const WeatherApi: {
|
|
|
3
3
|
current: {
|
|
4
4
|
getCurrentWeather({ projectExid, weatherProvider, }: {
|
|
5
5
|
projectExid: string;
|
|
6
|
-
weatherProvider
|
|
6
|
+
weatherProvider?: WeatherProvider;
|
|
7
7
|
}): Promise<WeatherResponsePayload> | undefined;
|
|
8
8
|
};
|
|
9
9
|
historical: {
|
|
10
10
|
getWeatherBeforeDate({ projectExid, weatherProvider, payload, }: {
|
|
11
11
|
projectExid: string;
|
|
12
|
-
weatherProvider
|
|
12
|
+
weatherProvider?: WeatherProvider;
|
|
13
13
|
payload: HistoryWeatherRequestPayload;
|
|
14
14
|
}): Promise<WeatherResponsePayload> | undefined;
|
|
15
15
|
};
|
|
16
16
|
weather: {
|
|
17
17
|
getWeatherData({ projectExid, weatherProvider, payload, }: {
|
|
18
18
|
projectExid: string;
|
|
19
|
-
weatherProvider
|
|
19
|
+
weatherProvider?: WeatherProvider;
|
|
20
20
|
payload: HistoryWeatherRequestPayload;
|
|
21
21
|
}): Promise<{
|
|
22
22
|
data: WeatherDataResponse[];
|