@cuenca-mx/cuenca-js 0.0.14-dev2 → 0.0.14-dev20

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 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
 
@@ -13,6 +13,16 @@ class AlertStatus {
13
13
 
14
14
  static Reported = new AlertStatus('reported');
15
15
 
16
+ static Questionary = new AlertStatus('questionary');
17
+
18
+ static JustifiedByTime = new AlertStatus('justified_by_time');
19
+
20
+ static AdditionalInformation = new AlertStatus('additional_information');
21
+
22
+ static Documentation = new AlertStatus('documentation');
23
+
24
+ static Xml = new AlertStatus('xml');
25
+
16
26
  constructor(value) {
17
27
  this.value = value;
18
28
  }
@@ -264,6 +274,16 @@ class MLIndicatorPeriod {
264
274
  }
265
275
  }
266
276
 
277
+ class Network {
278
+ static Polygon = new Network('polygon');
279
+
280
+ static Solana = new Network('solana');
281
+
282
+ constructor(value) {
283
+ this.value = value;
284
+ }
285
+ }
286
+
267
287
  class Phase {
268
288
  static Sandbox = new Phase('sandbox-api');
269
289
 
@@ -276,10 +296,10 @@ class Phase {
276
296
  }
277
297
  }
278
298
 
279
- class PLDFinterType {
280
- static Amount = new PLDFinterType('amount');
299
+ class PLDFilterType {
300
+ static Amount = new PLDFilterType('amount');
281
301
 
282
- static Volume = new PLDFinterType('volume');
302
+ static Volume = new PLDFilterType('volume');
283
303
 
284
304
  constructor(value) {
285
305
  this.value = value;
@@ -358,6 +378,18 @@ class SessionType {
358
378
  }
359
379
  }
360
380
 
381
+ class SourceAlertType {
382
+ static Chester = new SourceAlertType('chester');
383
+
384
+ static External = new SourceAlertType('external');
385
+
386
+ static Manual = new SourceAlertType('manual');
387
+
388
+ constructor(value) {
389
+ this.value = value;
390
+ }
391
+ }
392
+
361
393
  class TrackDataMethod {
362
394
  static NotSet = new TrackDataMethod('not_set');
363
395
 
@@ -380,16 +412,6 @@ class TrackDataMethod {
380
412
  }
381
413
  }
382
414
 
383
- class Network {
384
- static Polygon = new Network('polygon');
385
-
386
- static Solana = new Network('solana');
387
-
388
- constructor(value) {
389
- this.value = value;
390
- }
391
- }
392
-
393
415
  class TransactionStatus {
394
416
  static Created = new TransactionStatus('created');
395
417
 
@@ -421,6 +443,8 @@ class UserStatus {
421
443
 
422
444
  static Deactivated = new UserStatus('deactivated');
423
445
 
446
+ static InReview = new UserStatus('in_review');
447
+
424
448
  static Fraud = new UserStatus('fraud');
425
449
 
426
450
  static PldBlocked = new UserStatus('pld_blocked');
@@ -430,6 +454,16 @@ class UserStatus {
430
454
  }
431
455
  }
432
456
 
457
+ class UserType {
458
+ static Moral = new UserType('moral');
459
+
460
+ static Physical = new UserType('physical');
461
+
462
+ constructor(value) {
463
+ this.value = value;
464
+ }
465
+ }
466
+
433
467
  class VerificationStatus {
434
468
  static Created = new VerificationStatus('created');
435
469
 
@@ -479,4 +513,4 @@ const dateToUTC = (date) => {
479
513
  const enumValueFromString = (enumValue, value) =>
480
514
  Object.values(enumValue).find((enumV) => enumV.value === value);
481
515
 
482
- 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, SavingCategory as S, TransactionStatus as T, UserStatus as U, VerificationStatus as V, WalletTransactionType as W, MLIndicatorPeriod as a, MLIndicatorType as b, PLDFinterType 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, ServiceProviderCategory as o, SessionType as p, TransferNetwork as q, VerificationType as r, TrackDataMethod as s };
516
+ 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, SavingCategory as o, ServiceProviderCategory as p, SessionType as q, TransferNetwork as r, VerificationType as s, TrackDataMethod as t, UserType as u };
@@ -15,6 +15,16 @@ class AlertStatus {
15
15
 
16
16
  static Reported = new AlertStatus('reported');
17
17
 
18
+ static Questionary = new AlertStatus('questionary');
19
+
20
+ static JustifiedByTime = new AlertStatus('justified_by_time');
21
+
22
+ static AdditionalInformation = new AlertStatus('additional_information');
23
+
24
+ static Documentation = new AlertStatus('documentation');
25
+
26
+ static Xml = new AlertStatus('xml');
27
+
18
28
  constructor(value) {
19
29
  this.value = value;
20
30
  }
@@ -266,6 +276,16 @@ class MLIndicatorPeriod {
266
276
  }
267
277
  }
268
278
 
279
+ class Network {
280
+ static Polygon = new Network('polygon');
281
+
282
+ static Solana = new Network('solana');
283
+
284
+ constructor(value) {
285
+ this.value = value;
286
+ }
287
+ }
288
+
269
289
  class Phase {
270
290
  static Sandbox = new Phase('sandbox-api');
271
291
 
@@ -278,10 +298,10 @@ class Phase {
278
298
  }
279
299
  }
280
300
 
281
- class PLDFinterType {
282
- static Amount = new PLDFinterType('amount');
301
+ class PLDFilterType {
302
+ static Amount = new PLDFilterType('amount');
283
303
 
284
- static Volume = new PLDFinterType('volume');
304
+ static Volume = new PLDFilterType('volume');
285
305
 
286
306
  constructor(value) {
287
307
  this.value = value;
@@ -360,6 +380,18 @@ class SessionType {
360
380
  }
361
381
  }
362
382
 
383
+ class SourceAlertType {
384
+ static Chester = new SourceAlertType('chester');
385
+
386
+ static External = new SourceAlertType('external');
387
+
388
+ static Manual = new SourceAlertType('manual');
389
+
390
+ constructor(value) {
391
+ this.value = value;
392
+ }
393
+ }
394
+
363
395
  class TrackDataMethod {
364
396
  static NotSet = new TrackDataMethod('not_set');
365
397
 
@@ -382,16 +414,6 @@ class TrackDataMethod {
382
414
  }
383
415
  }
384
416
 
385
- class Network {
386
- static Polygon = new Network('polygon');
387
-
388
- static Solana = new Network('solana');
389
-
390
- constructor(value) {
391
- this.value = value;
392
- }
393
- }
394
-
395
417
  class TransactionStatus {
396
418
  static Created = new TransactionStatus('created');
397
419
 
@@ -423,6 +445,8 @@ class UserStatus {
423
445
 
424
446
  static Deactivated = new UserStatus('deactivated');
425
447
 
448
+ static InReview = new UserStatus('in_review');
449
+
426
450
  static Fraud = new UserStatus('fraud');
427
451
 
428
452
  static PldBlocked = new UserStatus('pld_blocked');
@@ -432,6 +456,16 @@ class UserStatus {
432
456
  }
433
457
  }
434
458
 
459
+ class UserType {
460
+ static Moral = new UserType('moral');
461
+
462
+ static Physical = new UserType('physical');
463
+
464
+ constructor(value) {
465
+ this.value = value;
466
+ }
467
+ }
468
+
435
469
  class VerificationStatus {
436
470
  static Created = new VerificationStatus('created');
437
471
 
@@ -501,15 +535,17 @@ exports.MLIndicatorLevel = MLIndicatorLevel;
501
535
  exports.MLIndicatorPeriod = MLIndicatorPeriod;
502
536
  exports.MLIndicatorType = MLIndicatorType;
503
537
  exports.Network = Network;
504
- exports.PLDFinterType = PLDFinterType;
538
+ exports.PLDFilterType = PLDFilterType;
505
539
  exports.Phase = Phase;
506
540
  exports.SavingCategory = SavingCategory;
507
541
  exports.ServiceProviderCategory = ServiceProviderCategory;
508
542
  exports.SessionType = SessionType;
543
+ exports.SourceAlertType = SourceAlertType;
509
544
  exports.TrackDataMethod = TrackDataMethod;
510
545
  exports.TransactionStatus = TransactionStatus;
511
546
  exports.TransferNetwork = TransferNetwork;
512
547
  exports.UserStatus = UserStatus;
548
+ exports.UserType = UserType;
513
549
  exports.VerificationStatus = VerificationStatus;
514
550
  exports.VerificationType = VerificationType;
515
551
  exports.WalletTransactionType = WalletTransactionType;