@sentiance-react-native/legacy 6.1.2 → 6.2.0-rc.2

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +25 -11
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  declare module "@sentiance-react-native/legacy" {
2
- import {EmitterSubscription, EventSubscriptionVendor, NativeEventEmitter,} from "react-native";
2
+ import {
3
+ EmitterSubscription,
4
+ EventSubscriptionVendor,
5
+ NativeEventEmitter,
6
+ } from "react-native";
3
7
 
4
8
  export type LocationPermission = "ALWAYS" | "ONLY_WHILE_IN_USE" | "NEVER";
5
9
  export type SdkInitState =
@@ -24,7 +28,7 @@ declare module "@sentiance-react-native/legacy" {
24
28
 
25
29
  export type TripType = "TRIP_TYPE_SDK" | "TRIP_TYPE_EXTERNAL";
26
30
  export type SdkEvent =
27
- "SENTIANCE_STATUS_UPDATE_EVENT"
31
+ | "SENTIANCE_STATUS_UPDATE_EVENT"
28
32
  | "SENTIANCE_USER_LINK_EVENT"
29
33
  | "SENTIANCE_USER_ACTIVITY_UPDATE_EVENT"
30
34
  | "SENTIANCE_ON_TRIP_TIMED_OUT_EVENT"
@@ -34,15 +38,17 @@ declare module "@sentiance-react-native/legacy" {
34
38
 
35
39
  export type SDKUserLinkListener = (param: { installId: string }) => void;
36
40
 
37
- export type SDKUserActivityUpdateListener = (userActivity: UserActivity) => void;
41
+ export type SDKUserActivityUpdateListener = (
42
+ userActivity: UserActivity
43
+ ) => void;
38
44
 
39
45
  export type SDKCrashEventListener = (crashEvent: CrashEvent) => void;
40
46
 
41
47
  export type SdkEventListener =
42
- SDKStatusUpdateListener |
43
- SDKUserLinkListener |
44
- SDKUserActivityUpdateListener |
45
- SDKCrashEventListener;
48
+ | SDKStatusUpdateListener
49
+ | SDKUserLinkListener
50
+ | SDKUserActivityUpdateListener
51
+ | SDKCrashEventListener;
46
52
 
47
53
  export enum TransportMode {
48
54
  UNKNOWN = 1,
@@ -85,11 +91,19 @@ declare module "@sentiance-react-native/legacy" {
85
91
  }
86
92
 
87
93
  export interface TripInfo {
88
- type: "TRIP_TYPE_SDK" | "TRIP_TYPE_EXTERNAL" | "TRIP_TYPE_UNRECOGNIZED" | "ANY";
94
+ type:
95
+ | "TRIP_TYPE_SDK"
96
+ | "TRIP_TYPE_EXTERNAL"
97
+ | "TRIP_TYPE_UNRECOGNIZED"
98
+ | "ANY";
89
99
  }
90
100
 
91
101
  export interface UserActivity {
92
- type: "USER_ACTIVITY_TYPE_TRIP" | "USER_ACTIVITY_TYPE_STATIONARY" | "USER_ACTIVITY_TYPE_UNKNOWN" | "USER_ACTIVITY_TYPE_UNRECOGNIZED";
102
+ type:
103
+ | "USER_ACTIVITY_TYPE_TRIP"
104
+ | "USER_ACTIVITY_TYPE_STATIONARY"
105
+ | "USER_ACTIVITY_TYPE_UNKNOWN"
106
+ | "USER_ACTIVITY_TYPE_UNRECOGNIZED";
93
107
  tripInfo?: TripInfo;
94
108
  stationaryInfo?: StationaryInfo;
95
109
  }
@@ -114,14 +128,14 @@ declare module "@sentiance-react-native/legacy" {
114
128
  mobileQuotaStatus: string;
115
129
  diskQuotaStatus: string;
116
130
  locationPermission: LocationPermission;
131
+ isBatterySavingEnabled?: boolean;
132
+ isActivityRecognitionPermGranted?: boolean;
117
133
  isBgAccessPermGranted?: boolean; // iOS only
118
- isActivityRecognitionPermGranted?: boolean; // Android only
119
134
  locationSetting?: string; // Android only
120
135
  isAirplaneModeEnabled?: boolean; // Android only
121
136
  isLocationAvailable?: boolean; // Android only
122
137
  isGooglePlayServicesMissing?: boolean; // Android only
123
138
  isBatteryOptimizationEnabled?: boolean; // Android only
124
- isBatterySavingEnabled?: boolean; // Android only
125
139
  isBackgroundProcessingRestricted?: boolean; // Android only
126
140
  isPreciseLocationAuthorizationGranted: boolean;
127
141
  isSchedulingExactAlarmsPermitted?: boolean; // Android only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentiance-react-native/legacy",
3
- "version": "6.1.2",
3
+ "version": "6.2.0-rc.2",
4
4
  "description": "React Native Sentiance - This module provides a legacy API.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "sentiance"
15
15
  ],
16
16
  "peerDependencies": {
17
- "@sentiance-react-native/crash-detection": "6.1.2"
17
+ "@sentiance-react-native/crash-detection": "6.2.0-rc.2"
18
18
  },
19
19
  "author": "",
20
20
  "license": "",