capacitor-amplitude
Advanced tools
Comparing version 3.0.0-beta.4 to 3.0.0-beta.5
@@ -10,3 +10,3 @@ export type PropertiesObject = Record<string, any>; | ||
}): Promise<void>; | ||
identifyUser(options: InstanceNameOptions & { | ||
identify(options: InstanceNameOptions & { | ||
properties: PropertiesObject; | ||
@@ -13,0 +13,0 @@ }): Promise<void>; |
@@ -10,3 +10,3 @@ import type { AmplitudeConfiguration, PropertiesObject } from './definitions'; | ||
track(eventName: string, properties?: PropertiesObject): Promise<void>; | ||
identifyUser(properties: PropertiesObject): Promise<void>; | ||
identify(properties: PropertiesObject): Promise<void>; | ||
setUserId(userId: string): Promise<void>; | ||
@@ -17,8 +17,4 @@ setDeviceId(deviceId: string): Promise<void>; | ||
logRevenue(_: unknown): Promise<void>; | ||
getDeviceId(): Promise<{ | ||
deviceId: string; | ||
}>; | ||
getUserId(): Promise<{ | ||
userId: string; | ||
}>; | ||
getDeviceId(): Promise<string>; | ||
getUserId(): Promise<string>; | ||
} |
@@ -22,4 +22,4 @@ import { registerPlugin } from '@capacitor/core'; | ||
} | ||
identifyUser(properties) { | ||
return CapacitorAmplitude.identifyUser({ | ||
identify(properties) { | ||
return CapacitorAmplitude.identify({ | ||
instanceName: this.instanceName, | ||
@@ -59,3 +59,3 @@ properties, | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => ({ deviceId })); | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -65,3 +65,3 @@ getUserId() { | ||
instanceName: this.instanceName, | ||
}).then(({ userId }) => ({ userId })); | ||
}).then(({ userId }) => userId); | ||
} | ||
@@ -68,0 +68,0 @@ } |
@@ -83,4 +83,4 @@ 'use strict'; | ||
} | ||
identifyUser(properties) { | ||
return CapacitorAmplitude.identifyUser({ | ||
identify(properties) { | ||
return CapacitorAmplitude.identify({ | ||
instanceName: this.instanceName, | ||
@@ -120,3 +120,3 @@ properties, | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => ({ deviceId })); | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -126,3 +126,3 @@ getUserId() { | ||
instanceName: this.instanceName, | ||
}).then(({ userId }) => ({ userId })); | ||
}).then(({ userId }) => userId); | ||
} | ||
@@ -129,0 +129,0 @@ } |
@@ -80,4 +80,4 @@ var capacitorAmplitude = (function (exports, core) { | ||
} | ||
identifyUser(properties) { | ||
return CapacitorAmplitude.identifyUser({ | ||
identify(properties) { | ||
return CapacitorAmplitude.identify({ | ||
instanceName: this.instanceName, | ||
@@ -117,3 +117,3 @@ properties, | ||
instanceName: this.instanceName, | ||
}).then(({ deviceId }) => ({ deviceId })); | ||
}).then(({ deviceId }) => deviceId); | ||
} | ||
@@ -123,3 +123,3 @@ getUserId() { | ||
instanceName: this.instanceName, | ||
}).then(({ userId }) => ({ userId })); | ||
}).then(({ userId }) => userId); | ||
} | ||
@@ -126,0 +126,0 @@ } |
{ | ||
"name": "capacitor-amplitude", | ||
"version": "3.0.0-beta.4", | ||
"version": "3.0.0-beta.5", | ||
"description": "Amplitude plugin for capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
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
82220
488