7
7
* To update run 'ampli pull scraper'
8
8
*
9
9
* Required dependencies: @amplitude/analytics-node@^0.5.0
10
- * Tracking Plan Version: 32
10
+ * Tracking Plan Version: 40
11
11
* Build: 1.0.0
12
12
* Runtime: node.js:typescript-ampli-v2
13
13
*
@@ -25,22 +25,23 @@ export type EventOptions = amplitude.Types.EventOptions;
25
25
export type Result = amplitude . Types . Result ;
26
26
export type NodeOptions = amplitude . Types . NodeOptions ;
27
27
28
- export type Environment = "production" | "development" ;
28
+ export type Environment = "production" | "development" | "testing" ;
29
29
30
30
export const ApiKey : Record < Environment , string > = {
31
31
production : "" ,
32
32
development : "" ,
33
+ testing : "" ,
33
34
} ;
34
35
35
36
/**
36
37
* Default Amplitude configuration options. Contains tracking plan information.
37
38
*/
38
39
export const DefaultConfiguration : NodeOptions = {
39
40
plan : {
40
- version : "32 " ,
41
+ version : "40 " ,
41
42
branch : "main" ,
42
43
source : "scraper" ,
43
- versionId : "e6298d8b-58e2-45e6-a09d-0f244c0489ab " ,
44
+ versionId : "cbc4a092-7d03-473a-bbba-f4fc79ef25b2 " ,
44
45
} ,
45
46
...{
46
47
ingestionMetadata : {
@@ -117,7 +118,7 @@ export interface IdentifyProperties {
117
118
walletType ?: string ;
118
119
}
119
120
120
- export interface FillTransactionCompletedProperties {
121
+ export interface TransferFillConfirmedProperties {
121
122
/**
122
123
* Capital fee percent, in decimals
123
124
*/
@@ -187,7 +188,7 @@ export interface FillTransactionCompletedProperties {
187
188
/**
188
189
* Address of referee, null if no referral used
189
190
*/
190
- referralProgramAddress : string ;
191
+ referralProgramAddress ? : string ;
191
192
/**
192
193
* Relay fee percent, in decimals
193
194
*/
@@ -280,10 +281,10 @@ export class Identify implements BaseEvent {
280
281
}
281
282
}
282
283
283
- export class FillTransactionCompleted implements BaseEvent {
284
- event_type = "FillTransactionCompleted " ;
284
+ export class TransferFillConfirmed implements BaseEvent {
285
+ event_type = "TransferFillConfirmed " ;
285
286
286
- constructor ( public event_properties : FillTransactionCompletedProperties ) {
287
+ constructor ( public event_properties : TransferFillConfirmedProperties ) {
287
288
this . event_properties = event_properties ;
288
289
}
289
290
}
@@ -405,22 +406,22 @@ export class Ampli {
405
406
}
406
407
407
408
/**
408
- * FillTransactionCompleted
409
+ * TransferFillConfirmed
409
410
*
410
- * [View in Tracking Plan](https://data.amplitude.com/risklabs/Risk%20Labs/events/main/latest/FillTransactionCompleted )
411
+ * [View in Tracking Plan](https://data.amplitude.com/risklabs/Risk%20Labs/events/main/latest/TransferFillConfirmed )
411
412
*
412
413
* Owner: Dong-Ha Kim
413
414
*
414
415
* @param userId The user's ID.
415
416
* @param properties The event's properties (e.g. capitalFeePct)
416
417
* @param options Amplitude event options.
417
418
*/
418
- fillTransactionCompleted (
419
+ transferFillConfirmed (
419
420
userId : string | undefined ,
420
- properties : FillTransactionCompletedProperties ,
421
+ properties : TransferFillConfirmedProperties ,
421
422
options ?: EventOptions ,
422
423
) {
423
- return this . track ( userId , new FillTransactionCompleted ( properties ) , options ) ;
424
+ return this . track ( userId , new TransferFillConfirmed ( properties ) , options ) ;
424
425
}
425
426
}
426
427
0 commit comments