@adventurelabs/scout-core 1.4.56 → 1.4.57
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.
|
@@ -2488,6 +2488,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2488
2488
|
limit_caller?: number;
|
|
2489
2489
|
min_flight_distance_meters?: number;
|
|
2490
2490
|
min_flight_time_minutes?: number;
|
|
2491
|
+
product_numbers_caller?: string[];
|
|
2491
2492
|
range_end?: string;
|
|
2492
2493
|
range_start?: string;
|
|
2493
2494
|
};
|
|
@@ -2507,6 +2508,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2507
2508
|
limit_caller?: number;
|
|
2508
2509
|
min_flight_distance_meters?: number;
|
|
2509
2510
|
min_flight_time_minutes?: number;
|
|
2511
|
+
product_numbers_caller?: string[];
|
|
2510
2512
|
range_end?: string;
|
|
2511
2513
|
range_start?: string;
|
|
2512
2514
|
};
|
package/dist/store/api.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export interface InfiniteQueryArgs {
|
|
|
15
15
|
minFlightTimeMinutes?: number | null;
|
|
16
16
|
/** Sessions RPC only: minimum distance_total in meters. */
|
|
17
17
|
minFlightDistanceMeters?: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Sessions infinite RPCs only: filter to devices with a matching non-deleted part.
|
|
20
|
+
* Omitted/null = no filter; empty array = no sessions.
|
|
21
|
+
*/
|
|
22
|
+
productNumbers?: string[] | null;
|
|
18
23
|
}
|
|
19
24
|
export interface SessionsInfiniteResponse {
|
|
20
25
|
sessions: ISessionWithCoordinates[];
|
package/dist/store/api.js
CHANGED
|
@@ -16,7 +16,7 @@ export const scoutApi = createApi({
|
|
|
16
16
|
// =====================================================
|
|
17
17
|
getSessionsInfiniteByHerd: builder.query({
|
|
18
18
|
serializeQueryArgs,
|
|
19
|
-
async queryFn({ herdId, limit = 20, cursor, rangeStart, rangeEnd, minFlightTimeMinutes, minFlightDistanceMeters, supabase, }) {
|
|
19
|
+
async queryFn({ herdId, limit = 20, cursor, rangeStart, rangeEnd, minFlightTimeMinutes, minFlightDistanceMeters, productNumbers, supabase, }) {
|
|
20
20
|
try {
|
|
21
21
|
if (!herdId) {
|
|
22
22
|
return {
|
|
@@ -32,6 +32,7 @@ export const scoutApi = createApi({
|
|
|
32
32
|
range_end: rangeEnd ?? null,
|
|
33
33
|
min_flight_time_minutes: minFlightTimeMinutes ?? null,
|
|
34
34
|
min_flight_distance_meters: minFlightDistanceMeters ?? null,
|
|
35
|
+
product_numbers_caller: productNumbers ?? undefined,
|
|
35
36
|
});
|
|
36
37
|
if (error) {
|
|
37
38
|
return {
|
|
@@ -72,7 +73,7 @@ export const scoutApi = createApi({
|
|
|
72
73
|
}),
|
|
73
74
|
getSessionsInfiniteByDevice: builder.query({
|
|
74
75
|
serializeQueryArgs,
|
|
75
|
-
async queryFn({ deviceId, limit = 20, cursor, rangeStart, rangeEnd, minFlightTimeMinutes, minFlightDistanceMeters, supabase, }) {
|
|
76
|
+
async queryFn({ deviceId, limit = 20, cursor, rangeStart, rangeEnd, minFlightTimeMinutes, minFlightDistanceMeters, productNumbers, supabase, }) {
|
|
76
77
|
try {
|
|
77
78
|
if (!deviceId) {
|
|
78
79
|
return {
|
|
@@ -88,6 +89,7 @@ export const scoutApi = createApi({
|
|
|
88
89
|
range_end: rangeEnd ?? null,
|
|
89
90
|
min_flight_time_minutes: minFlightTimeMinutes ?? null,
|
|
90
91
|
min_flight_distance_meters: minFlightDistanceMeters ?? null,
|
|
92
|
+
product_numbers_caller: productNumbers ?? undefined,
|
|
91
93
|
});
|
|
92
94
|
if (error) {
|
|
93
95
|
return {
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -2573,6 +2573,7 @@ export type Database = {
|
|
|
2573
2573
|
limit_caller?: number;
|
|
2574
2574
|
min_flight_distance_meters?: number;
|
|
2575
2575
|
min_flight_time_minutes?: number;
|
|
2576
|
+
product_numbers_caller?: string[];
|
|
2576
2577
|
range_end?: string;
|
|
2577
2578
|
range_start?: string;
|
|
2578
2579
|
};
|
|
@@ -2592,6 +2593,7 @@ export type Database = {
|
|
|
2592
2593
|
limit_caller?: number;
|
|
2593
2594
|
min_flight_distance_meters?: number;
|
|
2594
2595
|
min_flight_time_minutes?: number;
|
|
2596
|
+
product_numbers_caller?: string[];
|
|
2595
2597
|
range_end?: string;
|
|
2596
2598
|
range_start?: string;
|
|
2597
2599
|
};
|