mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[amplitude-js] Give access to Identify and Revenue classes through AmplitudeClient. (#36313)
This commit is contained in:
parent
bd40cfc005
commit
e7615ef16b
@ -107,6 +107,9 @@ module Amplitude.Tests {
|
||||
revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setEventProperties({ 'city': 'San Francisco' });
|
||||
revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setQuantity(5);
|
||||
revenue = new amplitude.Revenue().setProductId('productIdentifier').setPrice(10.99).setRevenueType('purchase');
|
||||
|
||||
identify = new client.Identify()
|
||||
revenue = new client.Revenue()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
3
types/amplitude-js/index.d.ts
vendored
3
types/amplitude-js/index.d.ts
vendored
@ -104,6 +104,9 @@ export class AmplitudeClient {
|
||||
logRevenueV2(revenue_obj: Revenue): LogReturn;
|
||||
logRevenue(pric: number, quantity: number, product: string): LogReturn;
|
||||
logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback): LogReturn;
|
||||
|
||||
Identify: typeof Identify
|
||||
Revenue: typeof Revenue
|
||||
}
|
||||
|
||||
// Proxy methods that get executed on the default AmplitudeClient instance (not all client methods are proxied)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user