@sentiance-react-native/user-context 6.2.0-rc.1 → 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.
|
@@ -125,6 +125,9 @@ public class SentianceUserContextConverter {
|
|
|
125
125
|
userContextMap.putMap("work", convertVenue(userContext.getWork()));
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
// Semantic time
|
|
129
|
+
userContextMap.putString("semanticTime", userContext.getSemanticTime().name());
|
|
130
|
+
|
|
128
131
|
return userContextMap;
|
|
129
132
|
}
|
|
130
133
|
|
package/lib/index.d.ts
CHANGED
|
@@ -188,6 +188,16 @@ declare module "@sentiance-react-native/user-context" {
|
|
|
188
188
|
| "TRAVEL_LONG"
|
|
189
189
|
| "TRAVEL_SHORT"
|
|
190
190
|
|
|
191
|
+
export type SemanticTime =
|
|
192
|
+
| "UNKNOWN"
|
|
193
|
+
| "MORNING"
|
|
194
|
+
| "LATE_MORNING"
|
|
195
|
+
| "LUNCH"
|
|
196
|
+
| "AFTERNOON"
|
|
197
|
+
| "EARLY_EVENING"
|
|
198
|
+
| "EVENING"
|
|
199
|
+
| "NIGHT";
|
|
200
|
+
|
|
191
201
|
export interface Event {
|
|
192
202
|
startTime: string;
|
|
193
203
|
startTimeEpoch: number; // in milliseconds
|
|
@@ -246,6 +256,7 @@ declare module "@sentiance-react-native/user-context" {
|
|
|
246
256
|
lastKnownLocation: GeoLocation | null;
|
|
247
257
|
home: Venue | null;
|
|
248
258
|
work: Venue | null;
|
|
259
|
+
semanticTime: SemanticTime;
|
|
249
260
|
}
|
|
250
261
|
|
|
251
262
|
export interface SentianceUserContext {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentiance-react-native/user-context",
|
|
3
|
-
"version": "6.2.0-rc.
|
|
3
|
+
"version": "6.2.0-rc.2",
|
|
4
4
|
"description": "React Native Sentiance - This module provides an easy API to add user context awareness into your apps.",
|
|
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/core": "6.2.0-rc.
|
|
17
|
+
"@sentiance-react-native/core": "6.2.0-rc.2"
|
|
18
18
|
},
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "",
|