@soltech/fluid-common 0.10.53 → 0.10.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +42 -0
- package/lib/index.js +11 -0
- package/package.json +1 -1
- package/src/index.ts +48 -1
package/lib/index.d.ts
CHANGED
|
@@ -300,3 +300,45 @@ export interface UserData {
|
|
|
300
300
|
affiliateId?: string;
|
|
301
301
|
tags?: string[];
|
|
302
302
|
}
|
|
303
|
+
export declare enum TrackingEventId {
|
|
304
|
+
DEPOSIT_LIMIT_EXCEEDED = "deposit_limit_exceeded",
|
|
305
|
+
TRANSACTION_ENDPOINT_ERROR = "transaction_endpoint_error",
|
|
306
|
+
ORDERED_DEPOSIT_METHODS = "ordered_deposit_methods",
|
|
307
|
+
SUGGESTED_AMOUNTS = "suggested_amounts",
|
|
308
|
+
TRANSACTION_BLOCKED = "transaction_blocked",
|
|
309
|
+
TRANSACTION_CALLBACK_RESULT = "transaction_callback_result",
|
|
310
|
+
TRANSACTION_INITIATED = "transaction_initiated",
|
|
311
|
+
ACTIVITY_STARTED = "activity_started"
|
|
312
|
+
}
|
|
313
|
+
export interface TrackingEventData {
|
|
314
|
+
id: string;
|
|
315
|
+
event: string;
|
|
316
|
+
operatorId?: string;
|
|
317
|
+
timestamp?: string | number | Date;
|
|
318
|
+
activityId?: string;
|
|
319
|
+
originalActivityId?: string;
|
|
320
|
+
bonusesOffered?: boolean;
|
|
321
|
+
country?: string;
|
|
322
|
+
sessionId?: string;
|
|
323
|
+
userAgent?: string;
|
|
324
|
+
userId?: string;
|
|
325
|
+
[key: string]: unknown;
|
|
326
|
+
}
|
|
327
|
+
export interface ActivityData {
|
|
328
|
+
activityId: string;
|
|
329
|
+
originalActivityId?: string;
|
|
330
|
+
userId: string;
|
|
331
|
+
sessionId: string;
|
|
332
|
+
country: string;
|
|
333
|
+
currency: string;
|
|
334
|
+
operatorId: string;
|
|
335
|
+
userAgent: string;
|
|
336
|
+
startedAt: string;
|
|
337
|
+
affiliateId?: string;
|
|
338
|
+
tags?: string[];
|
|
339
|
+
}
|
|
340
|
+
export type TrackingEventDataEnvelope = {
|
|
341
|
+
id: string;
|
|
342
|
+
environment: 'production' | 'staging' | 'demo';
|
|
343
|
+
body: TrackingEventData;
|
|
344
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -66,3 +66,14 @@ export var KycStatus;
|
|
|
66
66
|
KycStatus["UNVERIFIED"] = "unverified";
|
|
67
67
|
KycStatus["PROCESSING"] = "processing";
|
|
68
68
|
})(KycStatus || (KycStatus = {}));
|
|
69
|
+
export var TrackingEventId;
|
|
70
|
+
(function (TrackingEventId) {
|
|
71
|
+
TrackingEventId["DEPOSIT_LIMIT_EXCEEDED"] = "deposit_limit_exceeded";
|
|
72
|
+
TrackingEventId["TRANSACTION_ENDPOINT_ERROR"] = "transaction_endpoint_error";
|
|
73
|
+
TrackingEventId["ORDERED_DEPOSIT_METHODS"] = "ordered_deposit_methods";
|
|
74
|
+
TrackingEventId["SUGGESTED_AMOUNTS"] = "suggested_amounts";
|
|
75
|
+
TrackingEventId["TRANSACTION_BLOCKED"] = "transaction_blocked";
|
|
76
|
+
TrackingEventId["TRANSACTION_CALLBACK_RESULT"] = "transaction_callback_result";
|
|
77
|
+
TrackingEventId["TRANSACTION_INITIATED"] = "transaction_initiated";
|
|
78
|
+
TrackingEventId["ACTIVITY_STARTED"] = "activity_started";
|
|
79
|
+
})(TrackingEventId || (TrackingEventId = {}));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -302,7 +302,7 @@ export enum WithdrawalState {
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
export interface AvailableBonusWithPaymentMethods {
|
|
305
|
-
|
|
305
|
+
code: string;
|
|
306
306
|
paymentMethodFilter?: {
|
|
307
307
|
applyTo?: BonusPaymentMethod[];
|
|
308
308
|
excludeFrom?: BonusPaymentMethod[];
|
|
@@ -340,3 +340,50 @@ export interface UserData {
|
|
|
340
340
|
affiliateId?: string;
|
|
341
341
|
tags?: string[];
|
|
342
342
|
}
|
|
343
|
+
|
|
344
|
+
export enum TrackingEventId {
|
|
345
|
+
DEPOSIT_LIMIT_EXCEEDED = 'deposit_limit_exceeded',
|
|
346
|
+
TRANSACTION_ENDPOINT_ERROR = 'transaction_endpoint_error',
|
|
347
|
+
ORDERED_DEPOSIT_METHODS = 'ordered_deposit_methods',
|
|
348
|
+
SUGGESTED_AMOUNTS = 'suggested_amounts',
|
|
349
|
+
TRANSACTION_BLOCKED = 'transaction_blocked',
|
|
350
|
+
TRANSACTION_CALLBACK_RESULT = 'transaction_callback_result',
|
|
351
|
+
TRANSACTION_INITIATED = 'transaction_initiated',
|
|
352
|
+
ACTIVITY_STARTED = 'activity_started'
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface TrackingEventData {
|
|
356
|
+
id: string;
|
|
357
|
+
event: string;
|
|
358
|
+
operatorId?: string;
|
|
359
|
+
timestamp?: string | number | Date;
|
|
360
|
+
activityId?: string;
|
|
361
|
+
originalActivityId?: string;
|
|
362
|
+
bonusesOffered?: boolean;
|
|
363
|
+
country?: string;
|
|
364
|
+
sessionId?: string;
|
|
365
|
+
userAgent?: string;
|
|
366
|
+
userId?: string;
|
|
367
|
+
|
|
368
|
+
[key: string]: unknown;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface ActivityData {
|
|
372
|
+
activityId: string,
|
|
373
|
+
originalActivityId?: string,
|
|
374
|
+
userId: string,
|
|
375
|
+
sessionId: string,
|
|
376
|
+
country: string,
|
|
377
|
+
currency: string,
|
|
378
|
+
operatorId: string,
|
|
379
|
+
userAgent: string,
|
|
380
|
+
startedAt: string,
|
|
381
|
+
affiliateId?: string,
|
|
382
|
+
tags?: string[]
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type TrackingEventDataEnvelope = {
|
|
386
|
+
id: string;
|
|
387
|
+
environment: 'production' | 'staging' | 'demo';
|
|
388
|
+
body: TrackingEventData;
|
|
389
|
+
};
|