@soltech/fluid-common 0.10.55 → 0.10.56

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,7 +231,8 @@ export declare enum TransactionState {
231
231
  PROCESSING = "PROCESSING",
232
232
  WAITING_APPROVAL = "WAITING_APPROVAL",
233
233
  WAITING_INPUT = "WAITING_INPUT",
234
- CANCELLED = "CANCELLED"
234
+ CANCELLED = "CANCELLED",
235
+ BLACKLISTED = "BLACKLISTED"
235
236
  }
236
237
  export interface ProviderTransactionError {
237
238
  action: Action;
@@ -286,59 +287,19 @@ export declare enum KycStatus {
286
287
  PROCESSING = "processing"
287
288
  }
288
289
  export interface UserData {
289
- fullName?: string;
290
+ affiliateId?: string;
290
291
  age?: number;
292
+ email?: string;
291
293
  dayOfMonth?: number;
292
294
  dayOfWeek?: string;
293
295
  depositLimit?: number;
294
- minimumDeposit?: number;
296
+ fullName?: string;
297
+ kycStatus?: KycStatus;
298
+ lifetimeDeposit?: number;
295
299
  maximumDeposit?: number;
300
+ minimumDeposit?: number;
301
+ phoneNumber?: string;
296
302
  previousDeposit?: number;
297
- timeOfDay?: string;
298
- lifetimeDeposit?: number;
299
- kycStatus?: KycStatus;
300
- affiliateId?: string;
301
- tags?: string[];
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
303
  tags?: string[];
304
+ timeOfDay?: string;
339
305
  }
340
- export type TrackingEventDataEnvelope = {
341
- id: string;
342
- environment: 'production' | 'staging' | 'demo';
343
- body: TrackingEventData;
344
- };
package/lib/index.js CHANGED
@@ -39,6 +39,7 @@ 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";
42
43
  })(TransactionState || (TransactionState = {}));
43
44
  export var HttpVerb;
44
45
  (function (HttpVerb) {
@@ -66,14 +67,3 @@ export var KycStatus;
66
67
  KycStatus["UNVERIFIED"] = "unverified";
67
68
  KycStatus["PROCESSING"] = "processing";
68
69
  })(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.55",
3
+ "version": "0.10.56",
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,7 +261,8 @@ export enum TransactionState {
261
261
  PROCESSING = 'PROCESSING',
262
262
  WAITING_APPROVAL = 'WAITING_APPROVAL',
263
263
  WAITING_INPUT = 'WAITING_INPUT',
264
- CANCELLED = 'CANCELLED'
264
+ CANCELLED = 'CANCELLED',
265
+ BLACKLISTED = 'BLACKLISTED'
265
266
  }
266
267
 
267
268
  export interface ProviderTransactionError {
@@ -302,7 +303,7 @@ export enum WithdrawalState {
302
303
  }
303
304
 
304
305
  export interface AvailableBonusWithPaymentMethods {
305
- code: string;
306
+ code: string;
306
307
  paymentMethodFilter?: {
307
308
  applyTo?: BonusPaymentMethod[];
308
309
  excludeFrom?: BonusPaymentMethod[];
@@ -326,64 +327,19 @@ export enum KycStatus {
326
327
  }
327
328
 
328
329
  export interface UserData {
329
- fullName?: string;
330
+ affiliateId?: string;
330
331
  age?: number;
332
+ email?: string;
331
333
  dayOfMonth?: number;
332
334
  dayOfWeek?: string;
333
335
  depositLimit?: number;
334
- minimumDeposit?: number;
336
+ fullName?: string;
337
+ kycStatus?: KycStatus;
338
+ lifetimeDeposit?: number;
335
339
  maximumDeposit?: number;
340
+ minimumDeposit?: number;
341
+ phoneNumber?: string;
336
342
  previousDeposit?: number;
337
- timeOfDay?: string;
338
- lifetimeDeposit?: number;
339
- kycStatus?: KycStatus;
340
- affiliateId?: string;
341
343
  tags?: string[];
344
+ timeOfDay?: string;
342
345
  }
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
- };