@@ -2192,6 +2192,10 @@ export enum ReplayFieldKey {
2192
2192
SEEN_BY_ME = 'seen_by_me' ,
2193
2193
URLS = 'urls' ,
2194
2194
URL = 'url' ,
2195
+ USER_GEO_CITY = 'user.geo.city' ,
2196
+ USER_GEO_COUNTRY_CODE = 'user.geo.country_code' ,
2197
+ USER_GEO_REGION = 'user.geo.region' ,
2198
+ USER_GEO_SUBDIVISION = 'user.geo.subdivision' ,
2195
2199
VIEWED_BY_ME = 'viewed_by_me' ,
2196
2200
}
2197
2201
@@ -2255,6 +2259,10 @@ export const REPLAY_FIELDS = [
2255
2259
FieldKey . USER_ID ,
2256
2260
FieldKey . USER_IP ,
2257
2261
FieldKey . USER_USERNAME ,
2262
+ ReplayFieldKey . USER_GEO_CITY ,
2263
+ ReplayFieldKey . USER_GEO_COUNTRY_CODE ,
2264
+ ReplayFieldKey . USER_GEO_REGION ,
2265
+ ReplayFieldKey . USER_GEO_SUBDIVISION ,
2258
2266
ReplayFieldKey . VIEWED_BY_ME ,
2259
2267
FieldKey . OTA_UPDATES_CHANNEL ,
2260
2268
FieldKey . OTA_UPDATES_RUNTIME_VERSION ,
@@ -2364,6 +2372,12 @@ const REPLAY_FIELD_DEFINITIONS: Record<ReplayFieldKey, FieldDefinition> = {
2364
2372
kind : FieldKind . FIELD ,
2365
2373
valueType : FieldValueType . STRING ,
2366
2374
} ,
2375
+ [ ReplayFieldKey . USER_GEO_CITY ] : EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_CITY ] ,
2376
+ [ ReplayFieldKey . USER_GEO_COUNTRY_CODE ] :
2377
+ EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_COUNTRY_CODE ] ,
2378
+ [ ReplayFieldKey . USER_GEO_REGION ] : EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_REGION ] ,
2379
+ [ ReplayFieldKey . USER_GEO_SUBDIVISION ] :
2380
+ EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_SUBDIVISION ] ,
2367
2381
[ ReplayFieldKey . VIEWED_BY_ME ] : {
2368
2382
desc : t ( 'Whether you have seen this replay before. Alias of seen_by_me (true/false)' ) ,
2369
2383
kind : FieldKind . FIELD ,
0 commit comments