@cuenca-mx/cuenca-js 0.0.5-dev0 → 0.0.5
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/{data-38bfc8ad.mjs → data-59d28abe.mjs} +22 -20
- package/build/{data-6451748e.cjs → data-d6c1558d.cjs} +22 -20
- package/build/{identities-0a19fb53.cjs → identities-7d3418fb.cjs} +41 -4
- package/build/{identities-1a22fcdb.mjs → identities-fed398c2.mjs} +40 -5
- package/build/index.cjs +187 -12
- package/build/index.mjs +187 -12
- package/build/requests/index.cjs +5 -2
- package/build/requests/index.mjs +3 -2
- package/build/types/index.cjs +5 -3
- package/build/types/index.mjs +2 -2
- package/build/umd/cuenca.umd.js +1 -1
- package/build/{walletTransactionRequest-2e5deaee.mjs → walletTransactionRequest-826690e7.mjs} +108 -2
- package/build/{walletTransactionRequest-267a5d18.cjs → walletTransactionRequest-d2155aa4.cjs} +109 -1
- package/package.json +3 -2
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, 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, V as VerificationStatus, U as UserStatus, k as VerificationType, W as WalletTransactionType } from './data-
|
|
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,
|
|
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,
|
|
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, 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-59d28abe.mjs';
|
|
6
|
+
import { A as Address, K as KYCFile, T as TOSAgreements, a as AccountQuery, b as ApiKeyQuery, B as BalanceEntryQuery, c as BillPaymentQuery, d as BridgeAccountQuery, C as CardsQuery, e as CardTransactionQuery, Q as QueryParams, D as DepositQuery, W as WalletQuery, S as StatementQuery, f as TransferQuery, U as UserQuery, g as WalletTransactionQuery } from './identities-fed398c2.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-826690e7.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
|
|
21
|
+
const name="@cuenca-mx/cuenca-js";const version="0.0.5";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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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,6 +365,67 @@ class BillPayment extends Transaction {
|
|
|
359
365
|
});
|
|
360
366
|
}
|
|
361
367
|
|
|
368
|
+
class BridgeAccount {
|
|
369
|
+
constructor({
|
|
370
|
+
id,
|
|
371
|
+
names,
|
|
372
|
+
firstSurname,
|
|
373
|
+
secondSurname,
|
|
374
|
+
dateOfBirth,
|
|
375
|
+
countryOfBirth,
|
|
376
|
+
rfc,
|
|
377
|
+
curp,
|
|
378
|
+
userId,
|
|
379
|
+
gender,
|
|
380
|
+
phoneNumber,
|
|
381
|
+
emailAddress,
|
|
382
|
+
clientClabe,
|
|
383
|
+
govtId,
|
|
384
|
+
proofOfAddress,
|
|
385
|
+
proofOfLife,
|
|
386
|
+
status,
|
|
387
|
+
}) {
|
|
388
|
+
this.id = id;
|
|
389
|
+
this.emailAddress = emailAddress;
|
|
390
|
+
this.clientClabe = clientClabe;
|
|
391
|
+
this.govtId = govtId;
|
|
392
|
+
this.names = names;
|
|
393
|
+
this.firstSurname = firstSurname;
|
|
394
|
+
this.secondSurname = secondSurname;
|
|
395
|
+
this.dateOfBirth = dateOfBirth;
|
|
396
|
+
this.countryOfBirth = countryOfBirth;
|
|
397
|
+
this.rfc = rfc;
|
|
398
|
+
this.curp = curp;
|
|
399
|
+
this.userId = userId;
|
|
400
|
+
this.gender = gender;
|
|
401
|
+
this.phoneNumber = phoneNumber;
|
|
402
|
+
this.addressProofs = proofOfAddress;
|
|
403
|
+
this.lifeProofs = proofOfLife;
|
|
404
|
+
this.status = enumValueFromString(BridgeAccountStatus, status);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static fromObject = ({ status, ...obj }) =>
|
|
408
|
+
new BridgeAccount({
|
|
409
|
+
id: obj.id,
|
|
410
|
+
clientClabe: obj.client_clabe,
|
|
411
|
+
names: obj.names,
|
|
412
|
+
firstSurname: obj.first_surname,
|
|
413
|
+
secondSurname: obj.second_surname,
|
|
414
|
+
dateOfBirth: obj.date_of_birth,
|
|
415
|
+
countryOfBirth: obj.country_of_birth,
|
|
416
|
+
rfc: obj.rfc,
|
|
417
|
+
curp: obj.curp,
|
|
418
|
+
userId: obj.user_id,
|
|
419
|
+
gender: obj.gender,
|
|
420
|
+
govtId: obj.govt_id,
|
|
421
|
+
emailAddress: obj.email_address,
|
|
422
|
+
phoneNumber: obj.phone_number,
|
|
423
|
+
proofOfAddress: obj.proof_of_address,
|
|
424
|
+
proofOfLife: obj.proof_of_life,
|
|
425
|
+
status,
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
|
|
362
429
|
class Card {
|
|
363
430
|
constructor({
|
|
364
431
|
createdAt,
|
|
@@ -619,6 +686,35 @@ class Deposit extends Transaction {
|
|
|
619
686
|
});
|
|
620
687
|
}
|
|
621
688
|
|
|
689
|
+
class File {
|
|
690
|
+
constructor({ extension, type, url, userId }) {
|
|
691
|
+
this.extension = extension;
|
|
692
|
+
this.type = enumValueFromString(KYCFileType, type);
|
|
693
|
+
this.url = url;
|
|
694
|
+
this.userId = userId;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
static fromObject = ({ extension, type, url, ...obj }) =>
|
|
698
|
+
new File({ extension, type, url, userId: obj.user_id });
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
class KYCValidations {
|
|
702
|
+
constructor({ platformId, attemps, verificationId, filesUri }) {
|
|
703
|
+
this.attemps = attemps;
|
|
704
|
+
this.filesUri = filesUri;
|
|
705
|
+
this.platformId = platformId;
|
|
706
|
+
this.verificationId = verificationId;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
static fromObject = ({ attemps, ...obj }) =>
|
|
710
|
+
new KYCValidations({
|
|
711
|
+
attemps,
|
|
712
|
+
filesUri: obj.files_uri,
|
|
713
|
+
platformId: obj.platform_id,
|
|
714
|
+
verificationId: obj.verification_id,
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
|
|
622
718
|
class LoginToken {
|
|
623
719
|
constructor({ id }) {
|
|
624
720
|
this.id = id;
|
|
@@ -777,20 +873,25 @@ class User {
|
|
|
777
873
|
address,
|
|
778
874
|
blacklistValidationStatus,
|
|
779
875
|
clabe,
|
|
876
|
+
countryOfBirth,
|
|
780
877
|
createdAt,
|
|
781
878
|
curp,
|
|
879
|
+
dateOfBirth,
|
|
782
880
|
emailAddress,
|
|
783
881
|
firstSurname,
|
|
882
|
+
gender,
|
|
784
883
|
govtId,
|
|
785
884
|
id,
|
|
786
885
|
level,
|
|
787
886
|
names,
|
|
887
|
+
nationality,
|
|
788
888
|
phoneNumber,
|
|
789
889
|
proofOfAddress,
|
|
790
890
|
proofOfLife,
|
|
791
891
|
requiredLevel,
|
|
792
892
|
rfc,
|
|
793
893
|
secondSurname,
|
|
894
|
+
stateOfBirth,
|
|
794
895
|
status,
|
|
795
896
|
termsOfService,
|
|
796
897
|
updatedAt,
|
|
@@ -802,20 +903,25 @@ class User {
|
|
|
802
903
|
blacklistValidationStatus,
|
|
803
904
|
);
|
|
804
905
|
this.clabe = clabe;
|
|
906
|
+
this.countryOfBirth = countryOfBirth;
|
|
805
907
|
this.createdAt = dateToUTC(createdAt);
|
|
806
908
|
this.curp = curp;
|
|
909
|
+
this.dateOfBirth = dateOfBirth;
|
|
807
910
|
this.emailAddress = emailAddress;
|
|
808
911
|
this.firstSurname = firstSurname;
|
|
912
|
+
this.gender = gender;
|
|
809
913
|
this.govstIds = govtId;
|
|
810
914
|
this.id = id;
|
|
811
915
|
this.level = level;
|
|
812
916
|
this.names = names;
|
|
917
|
+
this.nationality = nationality;
|
|
813
918
|
this.phoneNumber = phoneNumber;
|
|
814
919
|
this.addressProofs = proofOfAddress;
|
|
815
920
|
this.lifeProofs = proofOfLife;
|
|
816
921
|
this.requiredLevel = requiredLevel;
|
|
817
922
|
this.rfc = rfc;
|
|
818
923
|
this.secondSurname = secondSurname;
|
|
924
|
+
this.stateOfBirth = stateOfBirth;
|
|
819
925
|
this.status = enumValueFromString(UserStatus, status);
|
|
820
926
|
this.terms = termsOfService;
|
|
821
927
|
this.updatedAt = dateToUTC(updatedAt);
|
|
@@ -871,9 +977,11 @@ class User {
|
|
|
871
977
|
address,
|
|
872
978
|
clabe,
|
|
873
979
|
curp,
|
|
980
|
+
gender,
|
|
874
981
|
id,
|
|
875
982
|
level,
|
|
876
983
|
names,
|
|
984
|
+
nationality,
|
|
877
985
|
rfc,
|
|
878
986
|
status,
|
|
879
987
|
...obj
|
|
@@ -882,13 +990,17 @@ class User {
|
|
|
882
990
|
address,
|
|
883
991
|
clabe,
|
|
884
992
|
curp,
|
|
993
|
+
gender,
|
|
885
994
|
id,
|
|
886
995
|
level,
|
|
887
996
|
names,
|
|
997
|
+
nationality,
|
|
888
998
|
rfc,
|
|
889
999
|
status,
|
|
890
1000
|
blacklistValidationStatus: obj.blacklist_validation_status,
|
|
1001
|
+
countryOfBirth: obj.country_of_birth,
|
|
891
1002
|
createdAt: obj.created_at,
|
|
1003
|
+
dateOfBirth: obj.date_of_birth,
|
|
892
1004
|
emailAddress: obj.email_address,
|
|
893
1005
|
firstSurname: obj.first_surname,
|
|
894
1006
|
govtId: obj.govt_id,
|
|
@@ -897,6 +1009,7 @@ class User {
|
|
|
897
1009
|
proofOfLife: obj.proof_of_life,
|
|
898
1010
|
requiredLevel: obj.required_level,
|
|
899
1011
|
secondSurname: obj.second_surname,
|
|
1012
|
+
stateOfBirth: obj.state_of_birth,
|
|
900
1013
|
termsOfService: obj.terms_of_service,
|
|
901
1014
|
updatedAt: obj.updated_at,
|
|
902
1015
|
verificationId: obj.verification_id,
|
|
@@ -1068,12 +1181,15 @@ const getModelFromPath = (path, obj) => {
|
|
|
1068
1181
|
arpc: () => Arpc.fromObject(obj),
|
|
1069
1182
|
balance_entries: () => BalanceEntry.fromObject(obj),
|
|
1070
1183
|
bill_payments: () => BillPayment.fromObject(obj),
|
|
1184
|
+
'bridge/accounts': () => BridgeAccount.fromObject(obj),
|
|
1071
1185
|
cards: () => Card.fromObject(obj),
|
|
1072
1186
|
card_activations: () => CardActivation.fromObject(obj),
|
|
1073
1187
|
card_transactions: () => CardTransaction.fromObject(obj),
|
|
1074
1188
|
card_validations: () => CardValidation.fromObject(obj),
|
|
1075
1189
|
commissions: () => Commission.fromObject(obj),
|
|
1076
1190
|
deposits: () => Deposit.fromObject(obj),
|
|
1191
|
+
files: () => File.fromObject(obj),
|
|
1192
|
+
kyc_validations: () => KYCValidations.fromObject(obj),
|
|
1077
1193
|
login_tokens: () => LoginToken.fromObject(obj),
|
|
1078
1194
|
savings: () => Saving.fromObject(obj),
|
|
1079
1195
|
service_providers: () => ServiceProvider.fromObject(obj),
|
|
@@ -1139,6 +1255,19 @@ const Updateable = (SuperClass) =>
|
|
|
1139
1255
|
}
|
|
1140
1256
|
};
|
|
1141
1257
|
|
|
1258
|
+
const Uploadable = (SuperClass) =>
|
|
1259
|
+
class Uploadable extends SuperClass {
|
|
1260
|
+
async _upload(data) {
|
|
1261
|
+
const response = await this.client.post({
|
|
1262
|
+
endpoint: `/${this.path}`,
|
|
1263
|
+
data,
|
|
1264
|
+
multipart: true,
|
|
1265
|
+
});
|
|
1266
|
+
const model = getModelFromPath(this.path, response);
|
|
1267
|
+
return model;
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1142
1271
|
const Deactivable = (SuperClass) =>
|
|
1143
1272
|
class Deactivable extends SuperClass {
|
|
1144
1273
|
async _deactivate(id, data) {
|
|
@@ -1154,10 +1283,14 @@ const Deactivable = (SuperClass) =>
|
|
|
1154
1283
|
const Downlodable = (SuperClass) =>
|
|
1155
1284
|
class Downlodable extends SuperClass {
|
|
1156
1285
|
async _download(id, format) {
|
|
1286
|
+
const interceptor = this.client.addConfigToRequest({
|
|
1287
|
+
responseType: 'stream',
|
|
1288
|
+
});
|
|
1157
1289
|
const byteString = await this.client.get({
|
|
1158
1290
|
endpoint: `/${this.path}/${id}`,
|
|
1159
1291
|
format,
|
|
1160
1292
|
});
|
|
1293
|
+
interceptor.eject();
|
|
1161
1294
|
return byteString;
|
|
1162
1295
|
}
|
|
1163
1296
|
};
|
|
@@ -1324,6 +1457,12 @@ class BillPaymentResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
|
1324
1457
|
}
|
|
1325
1458
|
}
|
|
1326
1459
|
|
|
1460
|
+
class BridegAccountResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
1461
|
+
constructor(client) {
|
|
1462
|
+
super('bridge/accounts', BridgeAccountQuery, client);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1327
1466
|
class CardActivationResource extends mix(Resource).with(Creatable) {
|
|
1328
1467
|
constructor(client) {
|
|
1329
1468
|
super('card_activations', Object, client);
|
|
@@ -1451,6 +1590,39 @@ class DepositResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
|
1451
1590
|
}
|
|
1452
1591
|
}
|
|
1453
1592
|
|
|
1593
|
+
class FileResource extends mix(Resource).with(Downlodable, Uploadable) {
|
|
1594
|
+
constructor(client) {
|
|
1595
|
+
super('files', Object, client);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
async download(id) {
|
|
1599
|
+
const byteString = await this._download(id, FileFormat.Any);
|
|
1600
|
+
return byteString;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
async upload({ ...req }) {
|
|
1604
|
+
const request = new UploadRequest(req);
|
|
1605
|
+
const fileUpload = await this._upload(request.toFormData());
|
|
1606
|
+
return fileUpload;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
class KYCValidationsResource extends mix(Resource).with(
|
|
1611
|
+
Creatable,
|
|
1612
|
+
Retrievable,
|
|
1613
|
+
Queryable,
|
|
1614
|
+
) {
|
|
1615
|
+
constructor(client) {
|
|
1616
|
+
super('kyc_validations', Object, client);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
async create(userId = 'me') {
|
|
1620
|
+
const request = new KYCValidationsRequest(userId);
|
|
1621
|
+
const kycValidation = await this._create(request.toObject());
|
|
1622
|
+
return kycValidation;
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1454
1626
|
class LoginTokenResource extends mix(Resource).with(Creatable) {
|
|
1455
1627
|
constructor(client) {
|
|
1456
1628
|
super('login_tokens', Object, client);
|
|
@@ -1737,12 +1909,15 @@ class Cuenca {
|
|
|
1737
1909
|
this.apiKeys = new ApiKeyResource(client);
|
|
1738
1910
|
this.balanceEntries = new BalanceEntryResource(client);
|
|
1739
1911
|
this.billPayments = new BillPaymentResource(client);
|
|
1912
|
+
this.bridgeAccounts = new BridegAccountResource(client);
|
|
1740
1913
|
this.cardActivations = new CardActivationResource(client);
|
|
1741
1914
|
this.cards = new CardResource(client);
|
|
1742
1915
|
this.cardTransactions = new CardTransactionResource(client);
|
|
1743
1916
|
this.cardValidations = new CardValidationResource(client);
|
|
1744
1917
|
this.commissions = new CommissionResource(client);
|
|
1745
1918
|
this.deposits = new DepositResource(client);
|
|
1919
|
+
this.files = new FileResource(client);
|
|
1920
|
+
this.kycValidations = new KYCValidationsResource(client);
|
|
1746
1921
|
this.loginTokens = new LoginTokenResource(client);
|
|
1747
1922
|
this.savings = new SavingResource(client);
|
|
1748
1923
|
this.serviceProviders = new ServiceProviderResource(client);
|
package/build/requests/index.cjs
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var walletTransactionRequest = require('../walletTransactionRequest-
|
|
5
|
+
var walletTransactionRequest = require('../walletTransactionRequest-d2155aa4.cjs');
|
|
6
6
|
require('../errors/index.cjs');
|
|
7
|
-
require('../data-
|
|
7
|
+
require('../data-d6c1558d.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;
|
package/build/requests/index.mjs
CHANGED
|
@@ -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,
|
|
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-826690e7.mjs';
|
|
2
2
|
import '../errors/index.mjs';
|
|
3
|
-
import '../data-
|
|
3
|
+
import '../data-59d28abe.mjs';
|
|
4
|
+
import 'module';
|
package/build/types/index.cjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var data = require('../data-
|
|
6
|
-
var identities = require('../identities-
|
|
5
|
+
var data = require('../data-d6c1558d.cjs');
|
|
6
|
+
var identities = require('../identities-7d3418fb.cjs');
|
|
7
7
|
require('../errors/index.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
exports.BridgeAccountStatus = data.BridgeAccountStatus;
|
|
11
12
|
exports.CardErrorType = data.CardErrorType;
|
|
12
13
|
exports.CardFundingType = data.CardFundingType;
|
|
13
14
|
exports.CardIssuer = data.CardIssuer;
|
|
@@ -19,7 +20,6 @@ exports.DepositNetwork = data.DepositNetwork;
|
|
|
19
20
|
exports.EntryType = data.EntryType;
|
|
20
21
|
exports.FileFormat = data.FileFormat;
|
|
21
22
|
exports.KYCFileType = data.KYCFileType;
|
|
22
|
-
exports.KYCStatus = data.KYCStatus;
|
|
23
23
|
exports.Phase = data.Phase;
|
|
24
24
|
exports.SavingCategory = data.SavingCategory;
|
|
25
25
|
exports.ServiceProviderCategory = data.ServiceProviderCategory;
|
|
@@ -35,6 +35,7 @@ exports.Address = identities.Address;
|
|
|
35
35
|
exports.ApiKeyQuery = identities.ApiKeyQuery;
|
|
36
36
|
exports.BalanceEntryQuery = identities.BalanceEntryQuery;
|
|
37
37
|
exports.BillPaymentQuery = identities.BillPaymentQuery;
|
|
38
|
+
exports.BridgeAccountQuery = identities.BridgeAccountQuery;
|
|
38
39
|
exports.CardTransactionQuery = identities.CardTransactionQuery;
|
|
39
40
|
exports.CardsQuery = identities.CardsQuery;
|
|
40
41
|
exports.DepositQuery = identities.DepositQuery;
|
|
@@ -43,6 +44,7 @@ exports.PageSize = identities.PageSize;
|
|
|
43
44
|
exports.QueryParams = identities.QueryParams;
|
|
44
45
|
exports.StatementQuery = identities.StatementQuery;
|
|
45
46
|
exports.TOSAgreements = identities.TOSAgreements;
|
|
47
|
+
exports.TransactionQuery = identities.TransactionQuery;
|
|
46
48
|
exports.TransferQuery = identities.TransferQuery;
|
|
47
49
|
exports.UserQuery = identities.UserQuery;
|
|
48
50
|
exports.WalletQuery = identities.WalletQuery;
|
package/build/types/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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,
|
|
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,
|
|
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, P as Phase, S as SavingCategory, i as ServiceProviderCategory, l as TrackDataMethod, T as TransactionStatus, j as TransferNetwork, U as UserStatus, V as VerificationStatus, k as VerificationType, W as WalletTransactionType } from '../data-59d28abe.mjs';
|
|
2
|
+
export { a as AccountQuery, A as Address, b as ApiKeyQuery, B as BalanceEntryQuery, c as BillPaymentQuery, d as BridgeAccountQuery, e as CardTransactionQuery, C as CardsQuery, D as DepositQuery, K as KYCFile, P as PageSize, Q as QueryParams, S as StatementQuery, T as TOSAgreements, h as TransactionQuery, f as TransferQuery, U as UserQuery, W as WalletQuery, g as WalletTransactionQuery } from '../identities-fed398c2.mjs';
|
|
3
3
|
import '../errors/index.mjs';
|