@soltech/fluid-common 0.10.54 → 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 CHANGED
@@ -231,8 +231,7 @@ export declare enum TransactionState {
231
231
  PROCESSING = "PROCESSING",
232
232
  WAITING_APPROVAL = "WAITING_APPROVAL",
233
233
  WAITING_INPUT = "WAITING_INPUT",
234
- CANCELLED = "CANCELLED",
235
- BLACKLISTED = "BLACKLISTED"
234
+ CANCELLED = "CANCELLED"
236
235
  }
237
236
  export interface ProviderTransactionError {
238
237
  action: Action;
@@ -301,3 +300,45 @@ export interface UserData {
301
300
  affiliateId?: string;
302
301
  tags?: string[];
303
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
@@ -39,7 +39,6 @@ export var TransactionState;
39
39
  TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
40
40
  TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
41
41
  TransactionState["CANCELLED"] = "CANCELLED";
42
- TransactionState["BLACKLISTED"] = "BLACKLISTED";
43
42
  })(TransactionState || (TransactionState = {}));
44
43
  export var HttpVerb;
45
44
  (function (HttpVerb) {
@@ -67,3 +66,14 @@ export var KycStatus;
67
66
  KycStatus["UNVERIFIED"] = "unverified";
68
67
  KycStatus["PROCESSING"] = "processing";
69
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.10.54",
3
+ "version": "0.10.55",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -261,8 +261,7 @@ export enum TransactionState {
261
261
  PROCESSING = 'PROCESSING',
262
262
  WAITING_APPROVAL = 'WAITING_APPROVAL',
263
263
  WAITING_INPUT = 'WAITING_INPUT',
264
- CANCELLED = 'CANCELLED',
265
- BLACKLISTED = 'BLACKLISTED'
264
+ CANCELLED = 'CANCELLED'
266
265
  }
267
266
 
268
267
  export interface ProviderTransactionError {
@@ -303,7 +302,7 @@ export enum WithdrawalState {
303
302
  }
304
303
 
305
304
  export interface AvailableBonusWithPaymentMethods {
306
- code: string;
305
+ code: string;
307
306
  paymentMethodFilter?: {
308
307
  applyTo?: BonusPaymentMethod[];
309
308
  excludeFrom?: BonusPaymentMethod[];
@@ -341,3 +340,50 @@ export interface UserData {
341
340
  affiliateId?: string;
342
341
  tags?: string[];
343
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
+ };