@soltech/fluid-common 0.10.56 → 0.10.57

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;
@@ -287,19 +286,36 @@ export declare enum KycStatus {
287
286
  PROCESSING = "processing"
288
287
  }
289
288
  export interface UserData {
290
- affiliateId?: string;
289
+ fullName?: string;
291
290
  age?: number;
292
- email?: string;
293
291
  dayOfMonth?: number;
294
292
  dayOfWeek?: string;
295
293
  depositLimit?: number;
296
- fullName?: string;
297
- kycStatus?: KycStatus;
298
- lifetimeDeposit?: number;
299
- maximumDeposit?: number;
300
294
  minimumDeposit?: number;
301
- phoneNumber?: string;
295
+ maximumDeposit?: number;
302
296
  previousDeposit?: number;
303
- tags?: string[];
304
297
  timeOfDay?: string;
298
+ lifetimeDeposit?: number;
299
+ kycStatus?: KycStatus;
300
+ affiliateId?: string;
301
+ tags?: string[];
305
302
  }
303
+ export interface TrackingEventData {
304
+ id: string;
305
+ event: string;
306
+ operatorId?: string;
307
+ timestamp?: string | number | Date;
308
+ activityId?: string;
309
+ originalActivityId?: string;
310
+ bonusesOffered?: boolean;
311
+ country?: string;
312
+ sessionId?: string;
313
+ userAgent?: string;
314
+ userId?: string;
315
+ [key: string]: unknown;
316
+ }
317
+ export type TrackingEventDataEnvelope = {
318
+ id: string;
319
+ environment: 'production' | 'staging' | 'demo';
320
+ body: TrackingEventData;
321
+ };
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.10.56",
3
+ "version": "0.10.57",
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[];
@@ -327,19 +326,39 @@ export enum KycStatus {
327
326
  }
328
327
 
329
328
  export interface UserData {
330
- affiliateId?: string;
329
+ fullName?: string;
331
330
  age?: number;
332
- email?: string;
333
331
  dayOfMonth?: number;
334
332
  dayOfWeek?: string;
335
333
  depositLimit?: number;
336
- fullName?: string;
337
- kycStatus?: KycStatus;
338
- lifetimeDeposit?: number;
339
- maximumDeposit?: number;
340
334
  minimumDeposit?: number;
341
- phoneNumber?: string;
335
+ maximumDeposit?: number;
342
336
  previousDeposit?: number;
343
- tags?: string[];
344
337
  timeOfDay?: string;
338
+ lifetimeDeposit?: number;
339
+ kycStatus?: KycStatus;
340
+ affiliateId?: string;
341
+ tags?: string[];
345
342
  }
343
+
344
+ export interface TrackingEventData {
345
+ id: string;
346
+ event: string;
347
+ operatorId?: string;
348
+ timestamp?: string | number | Date;
349
+ activityId?: string;
350
+ originalActivityId?: string;
351
+ bonusesOffered?: boolean;
352
+ country?: string;
353
+ sessionId?: string;
354
+ userAgent?: string;
355
+ userId?: string;
356
+
357
+ [key: string]: unknown;
358
+ }
359
+
360
+ export type TrackingEventDataEnvelope = {
361
+ id: string;
362
+ environment: 'production' | 'staging' | 'demo';
363
+ body: TrackingEventData;
364
+ };