Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-radar

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-radar - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

android/.idea/codeStyles/Project.xml

88

dist/esm/definitions.d.ts

@@ -6,11 +6,74 @@ declare module '@capacitor/core' {

}
export interface Location {
latitude: number;
longitude: number;
accuracy: number;
}
export interface RadarCallback {
status: string;
location: any;
user: any;
events: any;
location: Location;
user: RadarUser;
events: RadarEvent[];
}
export interface RadarChain {
name: string;
slug: string;
}
export interface RadarEvent {
_id: string;
live: boolean;
type: RadarEventType;
geofence: null | RadarGeofence;
place: null | RadarPlace;
alternatePlaces: null | RadarPlace;
region: null | RadarRegion;
confidence: RadarEventConfidence;
}
export declare enum RadarEventConfidence {
none = 0,
low = 1,
medium = 2,
high = 3
}
export declare type RadarEventType = 'unknown' | 'user.entered_geofence' | 'user.entered_home' | 'user.entered_office' | 'user.entered_place' | 'user.entered_region_country' | 'user.entered_region_dma' | 'user.entered_region_state' | 'user.exited_geofence' | 'user.exited_home' | 'user.exited_office' | 'user.exited_place' | 'user.exited_region_country' | 'user.exited_region_dma' | 'user.exited_region_state' | 'user.nearby_place_chain' | 'user.started_traveling' | 'user.stopped_traveling';
export declare enum RadarEventVerification {
accept = 1,
unverify = 0,
reject = -1
}
export interface RadarGeofence {
_id: string;
description: string;
tag: null | string;
externalId: null | string;
}
export interface RadarInsights {
homeLocation: null | RadarInsightsLocation;
officeLocation: null | RadarInsightsLocation;
state: null | {
home: boolean;
office: boolean;
traveling: boolean;
};
}
export declare enum RadarInsightsConfidence {
none = 0,
low = 1,
medium = 2,
high = 3
}
export interface RadarInsightsLocation {
type: string;
location: RadarInsightsLocation;
confidence: RadarInsightsConfidence;
}
export interface RadarLocationPermissionsCallback {
status: string;
}
export interface RadarPlace {
_id: string;
name: string;
categories: string[];
chain: null | RadarChain;
}
export interface RadarPlugin {

@@ -54,1 +117,20 @@ STATUS: any;

}
export interface RadarRegion {
_id: string;
type: string;
code: string;
name: string;
}
export interface RadarUser {
_id: string;
userId: null | string;
deviceId: null | string;
description: null | string;
geofences: null | RadarGeofence[];
insights: null | RadarInsights;
place: null | RadarPlace;
country: null | RadarRegion;
state: null | RadarRegion;
dma: null | RadarRegion;
postalCode: null | RadarRegion;
}

@@ -0,1 +1,21 @@

export var RadarEventConfidence;
(function (RadarEventConfidence) {
RadarEventConfidence[RadarEventConfidence["none"] = 0] = "none";
RadarEventConfidence[RadarEventConfidence["low"] = 1] = "low";
RadarEventConfidence[RadarEventConfidence["medium"] = 2] = "medium";
RadarEventConfidence[RadarEventConfidence["high"] = 3] = "high";
})(RadarEventConfidence || (RadarEventConfidence = {}));
export var RadarEventVerification;
(function (RadarEventVerification) {
RadarEventVerification[RadarEventVerification["accept"] = 1] = "accept";
RadarEventVerification[RadarEventVerification["unverify"] = 0] = "unverify";
RadarEventVerification[RadarEventVerification["reject"] = -1] = "reject";
})(RadarEventVerification || (RadarEventVerification = {}));
export var RadarInsightsConfidence;
(function (RadarInsightsConfidence) {
RadarInsightsConfidence[RadarInsightsConfidence["none"] = 0] = "none";
RadarInsightsConfidence[RadarInsightsConfidence["low"] = 1] = "low";
RadarInsightsConfidence[RadarInsightsConfidence["medium"] = 2] = "medium";
RadarInsightsConfidence[RadarInsightsConfidence["high"] = 3] = "high";
})(RadarInsightsConfidence || (RadarInsightsConfidence = {}));
//# sourceMappingURL=definitions.js.map

@@ -0,2 +1,3 @@

export * from './definitions';
export * from './web';
//# sourceMappingURL=index.js.map

2

dist/esm/web.js

@@ -61,3 +61,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

user,
events
events,
});

@@ -64,0 +64,0 @@ }

{
"name": "capacitor-radar",
"version": "0.0.7",
"version": "0.0.8",
"description": "Capacitor plugin for Radar, the location context platform",

@@ -5,0 +5,0 @@ "main": "dist/esm/index.js",

@@ -140,3 +140,3 @@ ![Radar](https://github.com/radarlabs/capacitor-radar/raw/master/logo.png)

```javascript
RadarPlugin.getPermissionsStatus().then((result) => {
RadarPlugin.getLocationPermissionsStatus().then((result) => {
// do something with result.status

@@ -155,3 +155,3 @@ });

```javascript
RadarPlugin.requestPermissions({ background });
RadarPlugin.requestLocationPermissions({ background });
```

@@ -158,0 +158,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc