ilabs-flir 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilabs-flir",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "FLIR Thermal SDK for React Native - On-Demand Download",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -22,15 +22,54 @@ export interface SDKStatus {
22
22
  nativeLibsExist: boolean;
23
23
  }
24
24
 
25
+ export interface SDKInitResult {
26
+ initialized: boolean;
27
+ message?: string;
28
+ error?: string;
29
+ errorType?: string;
30
+ }
31
+
32
+ export interface FlirDebugInfo {
33
+ sdkAvailable: boolean;
34
+ arch: string;
35
+ sdkClassesLoaded: boolean;
36
+ discoveredDeviceCount: number;
37
+ isConnected: boolean;
38
+ isStreaming: boolean;
39
+ connectedDevice: string;
40
+ }
41
+
42
+ export interface FlirDevice {
43
+ id: string;
44
+ name: string;
45
+ communicationType: 'USB' | 'NETWORK' | 'EMULATOR';
46
+ isEmulator: boolean;
47
+ }
48
+
25
49
  export interface FlirModuleAPI {
50
+ // Temperature APIs
26
51
  getTemperatureFromColor(color: number): Promise<number>;
27
52
  getLatestFramePath(): Promise<string | null>;
28
53
  getTemperatureAt(x: number, y: number): Promise<number>;
54
+
55
+ // Status APIs
29
56
  isEmulator(): Promise<boolean>;
30
57
  isDeviceConnected(): Promise<boolean>;
31
58
  getConnectedDeviceInfo(): Promise<string>;
32
59
  isSDKDownloaded(): Promise<boolean>;
33
60
  getSDKStatus(): Promise<SDKStatus>;
61
+
62
+ // Discovery & Connection APIs
63
+ startDiscovery(): Promise<boolean>;
64
+ stopDiscovery(): Promise<boolean>;
65
+ startEmulator(emulatorType: string): Promise<boolean>;
66
+ connectToDevice(deviceId: string): Promise<boolean>;
67
+ stopFlir(): Promise<boolean>;
68
+ getDiscoveredDevices(): Promise<FlirDevice[]>;
69
+
70
+ // Debug APIs
71
+ initializeSDK(): Promise<SDKInitResult>;
72
+ getDebugInfo(): Promise<FlirDebugInfo>;
34
73
  }
35
74
 
36
75
  export declare const FlirDownload: FlirDownloadAPI;