@soltech/fluid-common 1.3.5 → 1.4.0
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/AGENTS.md +1 -0
- package/lib/index.d.ts +14 -12
- package/lib/index.js +6 -1
- package/package.json +1 -1
- package/src/index.ts +15 -12
package/AGENTS.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Read this entire file before every task.
|
|
4
4
|
|
|
5
5
|
## Agent Rules & Safety
|
|
6
|
+
- Never edit any files when the current git branch is `main` — always work on a feature branch. Run `git branch --show-current` to confirm before making any changes.
|
|
6
7
|
- Never touch `.env*`, `certs/` or any file containing secrets/credentials.
|
|
7
8
|
- Never introduce new dependencies without asking first.
|
|
8
9
|
- Never rewrite large parts of the codebase unless explicitly requested.
|
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export declare enum PaymentType {
|
|
|
20
20
|
CRYPTO = "Crypto",
|
|
21
21
|
EWALLET = "EWallet"
|
|
22
22
|
}
|
|
23
|
+
export declare enum WindowRedirectType {
|
|
24
|
+
POPUP_WINDOW = "popupWindow",
|
|
25
|
+
BROWSER_TAB = "browserTab",
|
|
26
|
+
NONE = "none"
|
|
27
|
+
}
|
|
23
28
|
export interface WalletRequestBody {
|
|
24
29
|
payload?: object | string;
|
|
25
30
|
payloadOptions?: TransactionOptions;
|
|
@@ -114,7 +119,7 @@ export interface PaymentMethod {
|
|
|
114
119
|
bonusCodes?: string[];
|
|
115
120
|
instructions?: string;
|
|
116
121
|
fees?: PaymentMethodFees;
|
|
117
|
-
|
|
122
|
+
windowRedirectType: WindowRedirectType;
|
|
118
123
|
voucherAmounts?: number[];
|
|
119
124
|
depositHandledByHostSite?: boolean;
|
|
120
125
|
withdrawalHandledByHostSite?: boolean;
|
|
@@ -263,8 +268,7 @@ export declare enum TransactionState {
|
|
|
263
268
|
PROCESSING = "PROCESSING",
|
|
264
269
|
WAITING_APPROVAL = "WAITING_APPROVAL",
|
|
265
270
|
WAITING_INPUT = "WAITING_INPUT",
|
|
266
|
-
CANCELLED = "CANCELLED"
|
|
267
|
-
BLACKLISTED = "BLACKLISTED"
|
|
271
|
+
CANCELLED = "CANCELLED"
|
|
268
272
|
}
|
|
269
273
|
export interface ProviderTransactionError {
|
|
270
274
|
action: Action;
|
|
@@ -320,23 +324,21 @@ export declare enum KycStatus {
|
|
|
320
324
|
PROCESSING = "processing"
|
|
321
325
|
}
|
|
322
326
|
export interface UserData {
|
|
323
|
-
|
|
327
|
+
fullName?: string;
|
|
324
328
|
age?: number;
|
|
325
|
-
email?: string;
|
|
326
329
|
dayOfMonth?: number;
|
|
327
330
|
dayOfWeek?: string;
|
|
328
331
|
depositLimit?: number;
|
|
329
|
-
|
|
332
|
+
minimumDeposit?: number;
|
|
333
|
+
maximumDeposit?: number;
|
|
334
|
+
previousDeposit?: number;
|
|
335
|
+
timeOfDay?: string;
|
|
336
|
+
lifetimeDeposit?: number;
|
|
330
337
|
depositCount?: number;
|
|
331
338
|
daysSinceRegistration?: number;
|
|
332
339
|
kycStatus?: KycStatus;
|
|
333
|
-
|
|
334
|
-
maximumDeposit?: number;
|
|
335
|
-
minimumDeposit?: number;
|
|
336
|
-
phoneNumber?: string;
|
|
337
|
-
previousDeposit?: number;
|
|
340
|
+
affiliateId?: string;
|
|
338
341
|
tags?: string[];
|
|
339
|
-
timeOfDay?: string;
|
|
340
342
|
}
|
|
341
343
|
export interface TrackingEventData {
|
|
342
344
|
id: string;
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,12 @@ export var PaymentType;
|
|
|
24
24
|
PaymentType["CRYPTO"] = "Crypto";
|
|
25
25
|
PaymentType["EWALLET"] = "EWallet";
|
|
26
26
|
})(PaymentType || (PaymentType = {}));
|
|
27
|
+
export var WindowRedirectType;
|
|
28
|
+
(function (WindowRedirectType) {
|
|
29
|
+
WindowRedirectType["POPUP_WINDOW"] = "popupWindow";
|
|
30
|
+
WindowRedirectType["BROWSER_TAB"] = "browserTab";
|
|
31
|
+
WindowRedirectType["NONE"] = "none";
|
|
32
|
+
})(WindowRedirectType || (WindowRedirectType = {}));
|
|
27
33
|
export var EncryptionType;
|
|
28
34
|
(function (EncryptionType) {
|
|
29
35
|
EncryptionType["NO_ENCRYPTION"] = "NO_ENCRYPTION";
|
|
@@ -52,7 +58,6 @@ export var TransactionState;
|
|
|
52
58
|
TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
|
|
53
59
|
TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
|
|
54
60
|
TransactionState["CANCELLED"] = "CANCELLED";
|
|
55
|
-
TransactionState["BLACKLISTED"] = "BLACKLISTED";
|
|
56
61
|
})(TransactionState || (TransactionState = {}));
|
|
57
62
|
export var HttpVerb;
|
|
58
63
|
(function (HttpVerb) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -24,6 +24,12 @@ export enum PaymentType {
|
|
|
24
24
|
EWALLET = 'EWallet'
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export enum WindowRedirectType {
|
|
28
|
+
POPUP_WINDOW = 'popupWindow',
|
|
29
|
+
BROWSER_TAB = 'browserTab',
|
|
30
|
+
NONE = 'none'
|
|
31
|
+
}
|
|
32
|
+
|
|
27
33
|
export interface WalletRequestBody {
|
|
28
34
|
payload?: object | string;
|
|
29
35
|
payloadOptions?: TransactionOptions;
|
|
@@ -128,7 +134,7 @@ export interface PaymentMethod {
|
|
|
128
134
|
bonusCodes?: string[];
|
|
129
135
|
instructions?: string;
|
|
130
136
|
fees?: PaymentMethodFees;
|
|
131
|
-
|
|
137
|
+
windowRedirectType: WindowRedirectType;
|
|
132
138
|
voucherAmounts?: number[];
|
|
133
139
|
depositHandledByHostSite?: boolean;
|
|
134
140
|
withdrawalHandledByHostSite?: boolean;
|
|
@@ -296,8 +302,7 @@ export enum TransactionState {
|
|
|
296
302
|
PROCESSING = 'PROCESSING',
|
|
297
303
|
WAITING_APPROVAL = 'WAITING_APPROVAL',
|
|
298
304
|
WAITING_INPUT = 'WAITING_INPUT',
|
|
299
|
-
CANCELLED = 'CANCELLED'
|
|
300
|
-
BLACKLISTED = 'BLACKLISTED'
|
|
305
|
+
CANCELLED = 'CANCELLED'
|
|
301
306
|
}
|
|
302
307
|
|
|
303
308
|
export interface ProviderTransactionError {
|
|
@@ -363,23 +368,21 @@ export enum KycStatus {
|
|
|
363
368
|
}
|
|
364
369
|
|
|
365
370
|
export interface UserData {
|
|
366
|
-
|
|
371
|
+
fullName?: string;
|
|
367
372
|
age?: number;
|
|
368
|
-
email?: string;
|
|
369
373
|
dayOfMonth?: number;
|
|
370
374
|
dayOfWeek?: string;
|
|
371
375
|
depositLimit?: number;
|
|
372
|
-
|
|
376
|
+
minimumDeposit?: number;
|
|
377
|
+
maximumDeposit?: number;
|
|
378
|
+
previousDeposit?: number;
|
|
379
|
+
timeOfDay?: string;
|
|
380
|
+
lifetimeDeposit?: number;
|
|
373
381
|
depositCount?: number;
|
|
374
382
|
daysSinceRegistration?: number;
|
|
375
383
|
kycStatus?: KycStatus;
|
|
376
|
-
|
|
377
|
-
maximumDeposit?: number;
|
|
378
|
-
minimumDeposit?: number;
|
|
379
|
-
phoneNumber?: string;
|
|
380
|
-
previousDeposit?: number;
|
|
384
|
+
affiliateId?: string;
|
|
381
385
|
tags?: string[];
|
|
382
|
-
timeOfDay?: string;
|
|
383
386
|
}
|
|
384
387
|
|
|
385
388
|
export interface TrackingEventData {
|