@cuenca-mx/cuenca-js 0.0.14-dev9 → 1.0.1-dev01
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/README.md +3 -1
- package/build/{data-92aab1cc.cjs → data-05b2d807.cjs} +30 -6
- package/build/{data-7e8b28c6.mjs → data-efe9e071.mjs} +28 -6
- package/build/index.cjs +468 -74
- package/build/index.mjs +438 -44
- package/build/requests/index.cjs +3 -2
- package/build/requests/index.mjs +3 -3
- package/build/types/index.cjs +70 -28
- package/build/types/index.mjs +36 -2
- package/build/umd/cuenca.umd.js +1 -1
- package/build/{identities-240756bd.cjs → vulnerableActivity-15f3a6ad.cjs} +475 -215
- package/build/{identities-4686dc22.mjs → vulnerableActivity-a6c1d37e.mjs} +466 -214
- package/build/{walletTransactionRequest-da986c71.cjs → walletTransactionRequest-14260846.cjs} +680 -204
- package/build/{walletTransactionRequest-d05a25a9.mjs → walletTransactionRequest-2f6a4c0e.mjs} +680 -205
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -147,7 +147,9 @@ Fork the repo and send your PR so we can review it! Any and all help is welcomed
|
|
|
147
147
|
#### Testing
|
|
148
148
|
|
|
149
149
|
Be sure to keep coverage at least 99%
|
|
150
|
-
|
|
150
|
+
```js
|
|
151
|
+
cd packages/cuenca-js && node --experimental-vm-modules ./node_modules/.bin/jest
|
|
152
|
+
```
|
|
151
153
|
|
|
152
154
|
## Contact
|
|
153
155
|
|
|
@@ -17,9 +17,9 @@ class AlertStatus {
|
|
|
17
17
|
|
|
18
18
|
static Questionary = new AlertStatus('questionary');
|
|
19
19
|
|
|
20
|
-
static
|
|
20
|
+
static JustifiedByTime = new AlertStatus('justified_by_time');
|
|
21
21
|
|
|
22
|
-
static
|
|
22
|
+
static AdditionalInformation = new AlertStatus('additional_information');
|
|
23
23
|
|
|
24
24
|
static Documentation = new AlertStatus('documentation');
|
|
25
25
|
|
|
@@ -242,6 +242,16 @@ class KYCFileType {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
class KYCValidationSource {
|
|
246
|
+
static Client = new KYCValidationSource('client');
|
|
247
|
+
|
|
248
|
+
static Server = new KYCValidationSource('server');
|
|
249
|
+
|
|
250
|
+
constructor(value) {
|
|
251
|
+
this.value = value;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
245
255
|
class MLIndicatorLevel {
|
|
246
256
|
static Low = new MLIndicatorLevel('low');
|
|
247
257
|
|
|
@@ -298,10 +308,10 @@ class Phase {
|
|
|
298
308
|
}
|
|
299
309
|
}
|
|
300
310
|
|
|
301
|
-
class
|
|
302
|
-
static Amount = new
|
|
311
|
+
class PLDFilterType {
|
|
312
|
+
static Amount = new PLDFilterType('amount');
|
|
303
313
|
|
|
304
|
-
static Volume = new
|
|
314
|
+
static Volume = new PLDFilterType('volume');
|
|
305
315
|
|
|
306
316
|
constructor(value) {
|
|
307
317
|
this.value = value;
|
|
@@ -445,6 +455,8 @@ class UserStatus {
|
|
|
445
455
|
|
|
446
456
|
static Deactivated = new UserStatus('deactivated');
|
|
447
457
|
|
|
458
|
+
static InReview = new UserStatus('in_review');
|
|
459
|
+
|
|
448
460
|
static Fraud = new UserStatus('fraud');
|
|
449
461
|
|
|
450
462
|
static PldBlocked = new UserStatus('pld_blocked');
|
|
@@ -454,6 +466,16 @@ class UserStatus {
|
|
|
454
466
|
}
|
|
455
467
|
}
|
|
456
468
|
|
|
469
|
+
class UserType {
|
|
470
|
+
static Moral = new UserType('moral');
|
|
471
|
+
|
|
472
|
+
static Physical = new UserType('physical');
|
|
473
|
+
|
|
474
|
+
constructor(value) {
|
|
475
|
+
this.value = value;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
457
479
|
class VerificationStatus {
|
|
458
480
|
static Created = new VerificationStatus('created');
|
|
459
481
|
|
|
@@ -519,11 +541,12 @@ exports.DepositNetwork = DepositNetwork;
|
|
|
519
541
|
exports.EntryType = EntryType;
|
|
520
542
|
exports.FileFormat = FileFormat;
|
|
521
543
|
exports.KYCFileType = KYCFileType;
|
|
544
|
+
exports.KYCValidationSource = KYCValidationSource;
|
|
522
545
|
exports.MLIndicatorLevel = MLIndicatorLevel;
|
|
523
546
|
exports.MLIndicatorPeriod = MLIndicatorPeriod;
|
|
524
547
|
exports.MLIndicatorType = MLIndicatorType;
|
|
525
548
|
exports.Network = Network;
|
|
526
|
-
exports.
|
|
549
|
+
exports.PLDFilterType = PLDFilterType;
|
|
527
550
|
exports.Phase = Phase;
|
|
528
551
|
exports.SavingCategory = SavingCategory;
|
|
529
552
|
exports.ServiceProviderCategory = ServiceProviderCategory;
|
|
@@ -533,6 +556,7 @@ exports.TrackDataMethod = TrackDataMethod;
|
|
|
533
556
|
exports.TransactionStatus = TransactionStatus;
|
|
534
557
|
exports.TransferNetwork = TransferNetwork;
|
|
535
558
|
exports.UserStatus = UserStatus;
|
|
559
|
+
exports.UserType = UserType;
|
|
536
560
|
exports.VerificationStatus = VerificationStatus;
|
|
537
561
|
exports.VerificationType = VerificationType;
|
|
538
562
|
exports.WalletTransactionType = WalletTransactionType;
|
|
@@ -15,9 +15,9 @@ class AlertStatus {
|
|
|
15
15
|
|
|
16
16
|
static Questionary = new AlertStatus('questionary');
|
|
17
17
|
|
|
18
|
-
static
|
|
18
|
+
static JustifiedByTime = new AlertStatus('justified_by_time');
|
|
19
19
|
|
|
20
|
-
static
|
|
20
|
+
static AdditionalInformation = new AlertStatus('additional_information');
|
|
21
21
|
|
|
22
22
|
static Documentation = new AlertStatus('documentation');
|
|
23
23
|
|
|
@@ -240,6 +240,16 @@ class KYCFileType {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
+
class KYCValidationSource {
|
|
244
|
+
static Client = new KYCValidationSource('client');
|
|
245
|
+
|
|
246
|
+
static Server = new KYCValidationSource('server');
|
|
247
|
+
|
|
248
|
+
constructor(value) {
|
|
249
|
+
this.value = value;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
243
253
|
class MLIndicatorLevel {
|
|
244
254
|
static Low = new MLIndicatorLevel('low');
|
|
245
255
|
|
|
@@ -296,10 +306,10 @@ class Phase {
|
|
|
296
306
|
}
|
|
297
307
|
}
|
|
298
308
|
|
|
299
|
-
class
|
|
300
|
-
static Amount = new
|
|
309
|
+
class PLDFilterType {
|
|
310
|
+
static Amount = new PLDFilterType('amount');
|
|
301
311
|
|
|
302
|
-
static Volume = new
|
|
312
|
+
static Volume = new PLDFilterType('volume');
|
|
303
313
|
|
|
304
314
|
constructor(value) {
|
|
305
315
|
this.value = value;
|
|
@@ -443,6 +453,8 @@ class UserStatus {
|
|
|
443
453
|
|
|
444
454
|
static Deactivated = new UserStatus('deactivated');
|
|
445
455
|
|
|
456
|
+
static InReview = new UserStatus('in_review');
|
|
457
|
+
|
|
446
458
|
static Fraud = new UserStatus('fraud');
|
|
447
459
|
|
|
448
460
|
static PldBlocked = new UserStatus('pld_blocked');
|
|
@@ -452,6 +464,16 @@ class UserStatus {
|
|
|
452
464
|
}
|
|
453
465
|
}
|
|
454
466
|
|
|
467
|
+
class UserType {
|
|
468
|
+
static Moral = new UserType('moral');
|
|
469
|
+
|
|
470
|
+
static Physical = new UserType('physical');
|
|
471
|
+
|
|
472
|
+
constructor(value) {
|
|
473
|
+
this.value = value;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
455
477
|
class VerificationStatus {
|
|
456
478
|
static Created = new VerificationStatus('created');
|
|
457
479
|
|
|
@@ -501,4 +523,4 @@ const dateToUTC = (date) => {
|
|
|
501
523
|
const enumValueFromString = (enumValue, value) =>
|
|
502
524
|
Object.values(enumValue).find((enumV) => enumV.value === value);
|
|
503
525
|
|
|
504
|
-
export { AlertStatus as A, BridgeAccountStatus as B, Currency as C, DepositNetwork as D, EntryType as E, FileFormat as F, KYCFileType as K, MLIndicatorLevel as M, Network as N, Phase as P, SourceAlertType as S, TransactionStatus as T, UserStatus as U, VerificationStatus as V, WalletTransactionType as W, MLIndicatorPeriod as a, MLIndicatorType as b,
|
|
526
|
+
export { AlertStatus as A, BridgeAccountStatus as B, Currency as C, DepositNetwork as D, EntryType as E, FileFormat as F, KYCFileType as K, MLIndicatorLevel as M, Network as N, Phase as P, SourceAlertType as S, TransactionStatus as T, UserStatus as U, VerificationStatus as V, WalletTransactionType as W, MLIndicatorPeriod as a, MLIndicatorType as b, PLDFilterType as c, dateToUTC as d, enumValueFromString as e, BridgeBankAccountStatus as f, BridgeTransactionType as g, CardFundingType as h, CardIssuer as i, CardStatus as j, CardType as k, CardErrorType as l, CardTransactionType as m, CommissionType as n, KYCValidationSource as o, SavingCategory as p, ServiceProviderCategory as q, SessionType as r, TransferNetwork as s, VerificationType as t, TrackDataMethod as u, UserType as v };
|