@cuenca-mx/cuenca-js 0.0.5-dev.10 → 0.0.5-dev.12

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/build/index.mjs CHANGED
@@ -2,9 +2,10 @@ import axios from 'axios';
2
2
  import Buffer from 'buffer';
3
3
  import { CuencaResponseException, CuencaException, NoResultFound, MultipleResultsFound, InvalidPassword } from './errors/index.mjs';
4
4
  import { Jwt } from './jwt/index.mjs';
5
- import { P as Phase, F as FileFormat, d as dateToUTC, e as enumValueFromString, E as EntryType, T as TransactionStatus, B as BridgeAccountStatus, C as CardFundingType, a as CardIssuer, b as CardStatus, c as CardType, f as CardErrorType, g as CardTransactionType, h as CommissionType, D as DepositNetwork, S as SavingCategory, i as ServiceProviderCategory, j as TransferNetwork, U as UserStatus, V as VerificationType, W as WalletTransactionType } from './data-487ea691.mjs';
6
- import { K as KYCFile, T as TOSAgreements, A as AccountQuery, a as ApiKeyQuery, B as BalanceEntryQuery, b as BillPaymentQuery, c as BridgeAccountQuery, C as CardsQuery, d as CardTransactionQuery, Q as QueryParams, D as DepositQuery, W as WalletQuery, S as StatementQuery, e as TransferQuery, U as UserQuery, f as WalletTransactionQuery } from './identities-32031e5d.mjs';
7
- import { A as ApiKeyUpdateRequest, a as ArpcRequest, C as CardActivationRequest, b as CardRequest, c as CardUpdateRequest, d as CardValidationRequest, S as SavingRequest, T as TransferRequest, U as UserCredentialRequest, e as UserCredentialUpdateRequest, f as UserLoginRequest, g as UserUpdateRequest, V as VerificationRequest, h as VerificationAttemptRequest, W as WalletTransactionRequest } from './walletTransactionRequest-bdcb7e35.mjs';
5
+ import { P as Phase, F as FileFormat, d as dateToUTC, e as enumValueFromString, E as EntryType, T as TransactionStatus, C as CardFundingType, a as CardIssuer, b as CardStatus, c as CardType, f as CardErrorType, g as CardTransactionType, h as CommissionType, D as DepositNetwork, K as KYCFileType, S as SavingCategory, i as ServiceProviderCategory, j as TransferNetwork, V as VerificationStatus, U as UserStatus, k as VerificationType, W as WalletTransactionType } from './data-78294ccf.mjs';
6
+ import { A as Address, K as KYCFile, T as TOSAgreements, a as AccountQuery, b as ApiKeyQuery, B as BalanceEntryQuery, c as BillPaymentQuery, C as CardsQuery, d as CardTransactionQuery, Q as QueryParams, D as DepositQuery, W as WalletQuery, S as StatementQuery, e as TransferQuery, U as UserQuery, f as WalletTransactionQuery } from './identities-fc530905.mjs';
7
+ import { A as ApiKeyUpdateRequest, a as ArpcRequest, C as CardActivationRequest, b as CardRequest, c as CardUpdateRequest, d as CardValidationRequest, U as UploadRequest, K as KYCValidationsRequest, S as SavingRequest, T as TransferRequest, e as UserCredentialRequest, f as UserCredentialUpdateRequest, g as UserLoginRequest, h as UserUpdateRequest, V as VerificationRequest, i as VerificationAttemptRequest, W as WalletTransactionRequest } from './walletTransactionRequest-62e71159.mjs';
8
+ import 'module';
8
9
 
9
10
  /* global window */
10
11
 
@@ -17,7 +18,7 @@ const isNode =
17
18
 
18
19
  const runtimeEnv = { isBrowser, isNode };
19
20
 
20
- const name="@cuenca-mx/cuenca-js";const version="0.0.5-dev.10";const description="Cuenca client for JS";const main="./build/index.cjs";const module="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3"};var pkg = {name:name,version:version,description:description,main:main,module:module,browser:browser,files:files,exports:exports,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
21
+ const name="@cuenca-mx/cuenca-js";const version="0.0.5-dev.12";const description="Cuenca client for JS";const main="./build/index.cjs";const module="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3","form-data":"^4.0.0"};var pkg = {name:name,version:version,description:description,main:main,module:module,browser:browser,files:files,exports:exports,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
21
22
 
22
23
  class Client {
23
24
  constructor({
@@ -124,8 +125,8 @@ class Client {
124
125
  return this.request({ endpoint, format, params });
125
126
  }
126
127
 
127
- async post({ endpoint, data }) {
128
- return this.request({ method: 'POST', endpoint, data });
128
+ async post({ endpoint, data, multipart }) {
129
+ return this.request({ method: 'POST', endpoint, data, multipart });
129
130
  }
130
131
 
131
132
  async patch({ endpoint, data }) {
@@ -141,12 +142,18 @@ class Client {
141
142
  data = null,
142
143
  format = FileFormat.Json,
143
144
  method = 'GET',
145
+ multipart = false,
144
146
  params = null,
145
147
  }) {
146
- const headers = {
147
- 'Content-Type': 'application/json',
148
- Accept: `application/${format.value}`,
149
- };
148
+ let headers;
149
+ if (multipart) {
150
+ headers = data.getHeaders();
151
+ } else {
152
+ headers = {
153
+ 'Content-Type': 'application/json',
154
+ Accept: `application/${format.value}`,
155
+ };
156
+ }
150
157
 
151
158
  if (this.authHeader) {
152
159
  headers.Authorization = this.authHeader;
@@ -166,11 +173,10 @@ class Client {
166
173
  }
167
174
  headers['X-Cuenca-Token'] = this.jwtToken.token;
168
175
  }
169
-
170
176
  const headersInterceptor = this.addHeadersToRequest(headers);
171
177
 
172
178
  const modifiedData = data;
173
- if (modifiedData) {
179
+ if (modifiedData && !multipart) {
174
180
  Object.keys(modifiedData).forEach((k) => {
175
181
  if (modifiedData[k] instanceof Date) {
176
182
  modifiedData[k] = modifiedData[k].toISOString();
@@ -359,64 +365,6 @@ class BillPayment extends Transaction {
359
365
  });
360
366
  }
361
367
 
362
- class BridgeAccount {
363
- constructor({
364
- id,
365
- names,
366
- firstSurname,
367
- secondSurname,
368
- dateOfBirth,
369
- countryOfBirth,
370
- rfc,
371
- curp,
372
- userId,
373
- gender,
374
- phoneNumber,
375
- emailAddress,
376
- govtId,
377
- proofOfAddress,
378
- proofOfLife,
379
- status,
380
- }) {
381
- this.id = id;
382
- this.emailAddress = emailAddress;
383
- this.govtId = govtId;
384
- this.names = names;
385
- this.firstSurname = firstSurname;
386
- this.secondSurname = secondSurname;
387
- this.dateOfBirth = dateOfBirth;
388
- this.countryOfBirth = countryOfBirth;
389
- this.rfc = rfc;
390
- this.curp = curp;
391
- this.userId = userId;
392
- this.gender = gender;
393
- this.phoneNumber = phoneNumber;
394
- this.addressProofs = proofOfAddress;
395
- this.lifeProofs = proofOfLife;
396
- this.status = enumValueFromString(BridgeAccountStatus, status);
397
- }
398
-
399
- static fromObject = ({ status, ...obj }) =>
400
- new BridgeAccount({
401
- id: obj.id,
402
- names: obj.names,
403
- firstSurname: obj.first_surname,
404
- secondSurname: obj.second_surname,
405
- dateOfBirth: obj.date_of_birth,
406
- countryOfBirth: obj.country_of_birth,
407
- rfc: obj.rfc,
408
- curp: obj.curp,
409
- userId: obj.user_id,
410
- gender: obj.gender,
411
- govtId: obj.govt_id,
412
- emailAddress: obj.email_address,
413
- phoneNumber: obj.phone_number,
414
- proofOfAddress: obj.proof_of_address,
415
- proofOfLife: obj.proof_of_life,
416
- status,
417
- });
418
- }
419
-
420
368
  class Card {
421
369
  constructor({
422
370
  createdAt,
@@ -677,6 +625,35 @@ class Deposit extends Transaction {
677
625
  });
678
626
  }
679
627
 
628
+ class File {
629
+ constructor({ extension, type, url, userId }) {
630
+ this.extension = extension;
631
+ this.type = enumValueFromString(KYCFileType, type);
632
+ this.url = url;
633
+ this.userId = userId;
634
+ }
635
+
636
+ static fromObject = ({ extension, type, url, ...obj }) =>
637
+ new File({ extension, type, url, userId: obj.user_id });
638
+ }
639
+
640
+ class KYCValidations {
641
+ constructor({ platformId, attemps, verificationId, filesUri }) {
642
+ this.attemps = attemps;
643
+ this.filesUri = filesUri;
644
+ this.platformId = platformId;
645
+ this.verificationId = verificationId;
646
+ }
647
+
648
+ static fromObject = ({ attemps, ...obj }) =>
649
+ new KYCValidations({
650
+ attemps,
651
+ filesUri: obj.files_uri,
652
+ platformId: obj.platform_id,
653
+ verificationId: obj.verification_id,
654
+ });
655
+ }
656
+
680
657
  class LoginToken {
681
658
  constructor({ id }) {
682
659
  this.id = id;
@@ -832,29 +809,73 @@ class Transfer extends Transaction {
832
809
 
833
810
  class User {
834
811
  constructor({
812
+ address,
813
+ blacklistValidationStatus,
814
+ clabe,
815
+ countryOfBirth,
816
+ createdAt,
817
+ curp,
818
+ dateOfBirth,
835
819
  emailAddress,
820
+ firstSurname,
821
+ gender,
836
822
  govtId,
823
+ id,
837
824
  level,
825
+ names,
826
+ nationality,
838
827
  phoneNumber,
839
828
  proofOfAddress,
840
829
  proofOfLife,
841
830
  requiredLevel,
831
+ rfc,
832
+ secondSurname,
833
+ stateOfBirth,
842
834
  status,
843
835
  termsOfService,
836
+ updatedAt,
844
837
  verificationId,
845
838
  }) {
839
+ this.add = address;
840
+ this.blacklistValidationStatus = enumValueFromString(
841
+ VerificationStatus,
842
+ blacklistValidationStatus,
843
+ );
844
+ this.clabe = clabe;
845
+ this.countryOfBirth = countryOfBirth;
846
+ this.createdAt = dateToUTC(createdAt);
847
+ this.curp = curp;
848
+ this.dateOfBirth = dateOfBirth;
846
849
  this.emailAddress = emailAddress;
850
+ this.firstSurname = firstSurname;
851
+ this.gender = gender;
847
852
  this.govstIds = govtId;
853
+ this.id = id;
848
854
  this.level = level;
855
+ this.names = names;
856
+ this.nationality = nationality;
849
857
  this.phoneNumber = phoneNumber;
850
858
  this.addressProofs = proofOfAddress;
851
859
  this.lifeProofs = proofOfLife;
852
860
  this.requiredLevel = requiredLevel;
861
+ this.rfc = rfc;
862
+ this.secondSurname = secondSurname;
863
+ this.stateOfBirth = stateOfBirth;
853
864
  this.status = enumValueFromString(UserStatus, status);
854
865
  this.terms = termsOfService;
866
+ this.updatedAt = dateToUTC(updatedAt);
855
867
  this.verificationId = verificationId;
856
868
  }
857
869
 
870
+ get address() {
871
+ return this._address;
872
+ }
873
+
874
+ set add(value) {
875
+ if (!value) return;
876
+ this._address = Address.fromObject(value);
877
+ }
878
+
858
879
  get proofOfAddress() {
859
880
  return this._proofOfAddress;
860
881
  }
@@ -891,17 +912,45 @@ class User {
891
912
  this._termsOfService = TOSAgreements.fromObject(value);
892
913
  }
893
914
 
894
- static fromObject = ({ level, status, ...obj }) =>
915
+ static fromObject = ({
916
+ address,
917
+ clabe,
918
+ curp,
919
+ gender,
920
+ id,
921
+ level,
922
+ names,
923
+ nationality,
924
+ rfc,
925
+ status,
926
+ ...obj
927
+ }) =>
895
928
  new User({
929
+ address,
930
+ clabe,
931
+ curp,
932
+ gender,
933
+ id,
896
934
  level,
935
+ names,
936
+ nationality,
937
+ rfc,
897
938
  status,
898
- govtId: obj.govt_id,
939
+ blacklistValidationStatus: obj.blacklist_validation_status,
940
+ countryOfBirth: obj.country_of_birth,
941
+ createdAt: obj.created_at,
942
+ dateOfBirth: obj.date_of_birth,
899
943
  emailAddress: obj.email_address,
944
+ firstSurname: obj.first_surname,
945
+ govtId: obj.govt_id,
900
946
  phoneNumber: obj.phone_number,
901
947
  proofOfAddress: obj.proof_of_address,
902
948
  proofOfLife: obj.proof_of_life,
903
949
  requiredLevel: obj.required_level,
950
+ secondSurname: obj.second_surname,
951
+ stateOfBirth: obj.state_of_birth,
904
952
  termsOfService: obj.terms_of_service,
953
+ updatedAt: obj.updated_at,
905
954
  verificationId: obj.verification_id,
906
955
  });
907
956
  }
@@ -1071,13 +1120,14 @@ const getModelFromPath = (path, obj) => {
1071
1120
  arpc: () => Arpc.fromObject(obj),
1072
1121
  balance_entries: () => BalanceEntry.fromObject(obj),
1073
1122
  bill_payments: () => BillPayment.fromObject(obj),
1074
- 'bridge/accounts': () => BridgeAccount.fromObject(obj),
1075
1123
  cards: () => Card.fromObject(obj),
1076
1124
  card_activations: () => CardActivation.fromObject(obj),
1077
1125
  card_transactions: () => CardTransaction.fromObject(obj),
1078
1126
  card_validations: () => CardValidation.fromObject(obj),
1079
1127
  commissions: () => Commission.fromObject(obj),
1080
1128
  deposits: () => Deposit.fromObject(obj),
1129
+ files: () => File.fromObject(obj),
1130
+ kyc_validations: () => KYCValidations.fromObject(obj),
1081
1131
  login_tokens: () => LoginToken.fromObject(obj),
1082
1132
  savings: () => Saving.fromObject(obj),
1083
1133
  service_providers: () => ServiceProvider.fromObject(obj),
@@ -1143,6 +1193,19 @@ const Updateable = (SuperClass) =>
1143
1193
  }
1144
1194
  };
1145
1195
 
1196
+ const Uploadable = (SuperClass) =>
1197
+ class Uploadable extends SuperClass {
1198
+ async _upload(data) {
1199
+ const response = await this.client.post({
1200
+ endpoint: `/${this.path}`,
1201
+ data,
1202
+ multipart: true,
1203
+ });
1204
+ const model = getModelFromPath(this.path, response);
1205
+ return model;
1206
+ }
1207
+ };
1208
+
1146
1209
  const Deactivable = (SuperClass) =>
1147
1210
  class Deactivable extends SuperClass {
1148
1211
  async _deactivate(id, data) {
@@ -1158,10 +1221,14 @@ const Deactivable = (SuperClass) =>
1158
1221
  const Downlodable = (SuperClass) =>
1159
1222
  class Downlodable extends SuperClass {
1160
1223
  async _download(id, format) {
1224
+ const interceptor = this.client.addConfigToRequest({
1225
+ responseType: 'stream',
1226
+ });
1161
1227
  const byteString = await this.client.get({
1162
1228
  endpoint: `/${this.path}/${id}`,
1163
1229
  format,
1164
1230
  });
1231
+ interceptor.eject();
1165
1232
  return byteString;
1166
1233
  }
1167
1234
  };
@@ -1328,12 +1395,6 @@ class BillPaymentResource extends mix(Resource).with(Queryable, Retrievable) {
1328
1395
  }
1329
1396
  }
1330
1397
 
1331
- class BridegAccountResource extends mix(Resource).with(Queryable, Retrievable) {
1332
- constructor(client) {
1333
- super('bridge/accounts', BridgeAccountQuery, client);
1334
- }
1335
- }
1336
-
1337
1398
  class CardActivationResource extends mix(Resource).with(Creatable) {
1338
1399
  constructor(client) {
1339
1400
  super('card_activations', Object, client);
@@ -1461,6 +1522,39 @@ class DepositResource extends mix(Resource).with(Queryable, Retrievable) {
1461
1522
  }
1462
1523
  }
1463
1524
 
1525
+ class FileResource extends mix(Resource).with(Downlodable, Uploadable) {
1526
+ constructor(client) {
1527
+ super('files', Object, client);
1528
+ }
1529
+
1530
+ async download(id) {
1531
+ const byteString = await this._download(id, FileFormat.Any);
1532
+ return byteString;
1533
+ }
1534
+
1535
+ async upload({ ...req }) {
1536
+ const request = new UploadRequest(req);
1537
+ const fileUpload = await this._upload(request.toFormData());
1538
+ return fileUpload;
1539
+ }
1540
+ }
1541
+
1542
+ class KYCValidationsResource extends mix(Resource).with(
1543
+ Creatable,
1544
+ Retrievable,
1545
+ Queryable,
1546
+ ) {
1547
+ constructor(client) {
1548
+ super('kyc_validations', Object, client);
1549
+ }
1550
+
1551
+ async create(userId = 'me') {
1552
+ const request = new KYCValidationsRequest(userId);
1553
+ const kycValidation = await this._create(request.toObject());
1554
+ return kycValidation;
1555
+ }
1556
+ }
1557
+
1464
1558
  class LoginTokenResource extends mix(Resource).with(Creatable) {
1465
1559
  constructor(client) {
1466
1560
  super('login_tokens', Object, client);
@@ -1747,13 +1841,14 @@ class Cuenca {
1747
1841
  this.apiKeys = new ApiKeyResource(client);
1748
1842
  this.balanceEntries = new BalanceEntryResource(client);
1749
1843
  this.billPayments = new BillPaymentResource(client);
1750
- this.bridgeAccounts = new BridegAccountResource(client);
1751
1844
  this.cardActivations = new CardActivationResource(client);
1752
1845
  this.cards = new CardResource(client);
1753
1846
  this.cardTransactions = new CardTransactionResource(client);
1754
1847
  this.cardValidations = new CardValidationResource(client);
1755
1848
  this.commissions = new CommissionResource(client);
1756
1849
  this.deposits = new DepositResource(client);
1850
+ this.files = new FileResource(client);
1851
+ this.kycValidations = new KYCValidationsResource(client);
1757
1852
  this.loginTokens = new LoginTokenResource(client);
1758
1853
  this.savings = new SavingResource(client);
1759
1854
  this.serviceProviders = new ServiceProviderResource(client);
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var walletTransactionRequest = require('../walletTransactionRequest-8a816a1f.cjs');
5
+ var walletTransactionRequest = require('../walletTransactionRequest-bf22110f.cjs');
6
6
  require('../errors/index.cjs');
7
- require('../data-f85a5287.cjs');
7
+ require('../data-7695e624.cjs');
8
+ require('module');
8
9
 
9
10
 
10
11
 
@@ -14,6 +15,8 @@ exports.CardActivationRequest = walletTransactionRequest.CardActivationRequest;
14
15
  exports.CardRequest = walletTransactionRequest.CardRequest;
15
16
  exports.CardUpdateRequest = walletTransactionRequest.CardUpdateRequest;
16
17
  exports.CardValidationRequest = walletTransactionRequest.CardValidationRequest;
18
+ exports.FileUploadRequest = walletTransactionRequest.UploadRequest;
19
+ exports.KYCValidationsRequeest = walletTransactionRequest.KYCValidationsRequest;
17
20
  exports.SavingRequest = walletTransactionRequest.SavingRequest;
18
21
  exports.TransferRequest = walletTransactionRequest.TransferRequest;
19
22
  exports.UserCredentialRequest = walletTransactionRequest.UserCredentialRequest;
@@ -1,3 +1,4 @@
1
- export { A as ApiKeyUpdateRequest, a as ArpcRequest, C as CardActivationRequest, b as CardRequest, c as CardUpdateRequest, d as CardValidationRequest, S as SavingRequest, T as TransferRequest, U as UserCredentialRequest, e as UserCredentialUpdateRequest, f as UserLoginRequest, g as UserUpdateRequest, h as VerificationAttemptRequest, V as VerificationRequest, W as WalletTransactionRequest } from '../walletTransactionRequest-bdcb7e35.mjs';
1
+ export { A as ApiKeyUpdateRequest, a as ArpcRequest, C as CardActivationRequest, b as CardRequest, c as CardUpdateRequest, d as CardValidationRequest, U as FileUploadRequest, K as KYCValidationsRequeest, S as SavingRequest, T as TransferRequest, e as UserCredentialRequest, f as UserCredentialUpdateRequest, g as UserLoginRequest, h as UserUpdateRequest, i as VerificationAttemptRequest, V as VerificationRequest, W as WalletTransactionRequest } from '../walletTransactionRequest-62e71159.mjs';
2
2
  import '../errors/index.mjs';
3
- import '../data-487ea691.mjs';
3
+ import '../data-78294ccf.mjs';
4
+ import 'module';
@@ -2,13 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var data = require('../data-f85a5287.cjs');
6
- var identities = require('../identities-ab85ec0b.cjs');
5
+ var data = require('../data-7695e624.cjs');
6
+ var identities = require('../identities-7bc2455e.cjs');
7
7
  require('../errors/index.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.BridgeAccountStatus = data.BridgeAccountStatus;
12
11
  exports.CardErrorType = data.CardErrorType;
13
12
  exports.CardFundingType = data.CardFundingType;
14
13
  exports.CardIssuer = data.CardIssuer;
@@ -28,13 +27,14 @@ exports.TrackDataMethod = data.TrackDataMethod;
28
27
  exports.TransactionStatus = data.TransactionStatus;
29
28
  exports.TransferNetwork = data.TransferNetwork;
30
29
  exports.UserStatus = data.UserStatus;
30
+ exports.VerificationStatus = data.VerificationStatus;
31
31
  exports.VerificationType = data.VerificationType;
32
32
  exports.WalletTransactionType = data.WalletTransactionType;
33
33
  exports.AccountQuery = identities.AccountQuery;
34
+ exports.Address = identities.Address;
34
35
  exports.ApiKeyQuery = identities.ApiKeyQuery;
35
36
  exports.BalanceEntryQuery = identities.BalanceEntryQuery;
36
37
  exports.BillPaymentQuery = identities.BillPaymentQuery;
37
- exports.BridgeAccountQuery = identities.BridgeAccountQuery;
38
38
  exports.CardTransactionQuery = identities.CardTransactionQuery;
39
39
  exports.CardsQuery = identities.CardsQuery;
40
40
  exports.DepositQuery = identities.DepositQuery;
@@ -43,6 +43,7 @@ exports.PageSize = identities.PageSize;
43
43
  exports.QueryParams = identities.QueryParams;
44
44
  exports.StatementQuery = identities.StatementQuery;
45
45
  exports.TOSAgreements = identities.TOSAgreements;
46
+ exports.TransactionQuery = identities.TransactionQuery;
46
47
  exports.TransferQuery = identities.TransferQuery;
47
48
  exports.UserQuery = identities.UserQuery;
48
49
  exports.WalletQuery = identities.WalletQuery;
@@ -1,3 +1,3 @@
1
- export { B as BridgeAccountStatus, f as CardErrorType, C as CardFundingType, a as CardIssuer, b as CardStatus, g as CardTransactionType, c as CardType, h as CommissionType, D as DepositNetwork, E as EntryType, F as FileFormat, K as KYCFileType, k as KYCStatus, P as Phase, S as SavingCategory, i as ServiceProviderCategory, l as TrackDataMethod, T as TransactionStatus, j as TransferNetwork, U as UserStatus, V as VerificationType, W as WalletTransactionType } from '../data-487ea691.mjs';
2
- export { A as AccountQuery, a as ApiKeyQuery, B as BalanceEntryQuery, b as BillPaymentQuery, c as BridgeAccountQuery, d as CardTransactionQuery, C as CardsQuery, D as DepositQuery, K as KYCFile, P as PageSize, Q as QueryParams, S as StatementQuery, T as TOSAgreements, e as TransferQuery, U as UserQuery, W as WalletQuery, f as WalletTransactionQuery } from '../identities-32031e5d.mjs';
1
+ export { f as CardErrorType, C as CardFundingType, a as CardIssuer, b as CardStatus, g as CardTransactionType, c as CardType, h as CommissionType, D as DepositNetwork, E as EntryType, F as FileFormat, K as KYCFileType, l as KYCStatus, P as Phase, S as SavingCategory, i as ServiceProviderCategory, m as TrackDataMethod, T as TransactionStatus, j as TransferNetwork, U as UserStatus, V as VerificationStatus, k as VerificationType, W as WalletTransactionType } from '../data-78294ccf.mjs';
2
+ export { a as AccountQuery, A as Address, b as ApiKeyQuery, B as BalanceEntryQuery, c as BillPaymentQuery, d as CardTransactionQuery, C as CardsQuery, D as DepositQuery, K as KYCFile, P as PageSize, Q as QueryParams, S as StatementQuery, T as TOSAgreements, g as TransactionQuery, e as TransferQuery, U as UserQuery, W as WalletQuery, f as WalletTransactionQuery } from '../identities-fc530905.mjs';
3
3
  import '../errors/index.mjs';