@marqeta/ux-toolkit-sdk-javascript 2.12.0 → 2.13.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/dist/{chunk-E3JHOR62.mjs → chunk-IMAK62CK.mjs} +63 -20
- package/dist/{chunk-WERRBTQD.js → chunk-QVJUSVKU.js} +63 -20
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +456 -456
- package/dist/index.mjs +1 -1
- package/dist/react-native.js +496 -496
- package/dist/react-native.mjs +1 -1
- package/package.json +19 -4
|
@@ -10202,22 +10202,63 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
10202
10202
|
"use strict";
|
|
10203
10203
|
function _MockAccountRepository() {
|
|
10204
10204
|
_class_call_check(this, _MockAccountRepository);
|
|
10205
|
+
__publicField(this, "_accountHolderGroupResponse", null);
|
|
10206
|
+
__publicField(this, "_accountBalancesResponse", new AccountBalancesEntity(mockAccountBalances));
|
|
10207
|
+
__publicField(this, "_depositAccountsResponse", [
|
|
10208
|
+
new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
|
|
10209
|
+
]);
|
|
10205
10210
|
}
|
|
10206
10211
|
_create_class(_MockAccountRepository, [
|
|
10212
|
+
{
|
|
10213
|
+
key: "setAccountHolderGroupResponse",
|
|
10214
|
+
value: function setAccountHolderGroupResponse(response) {
|
|
10215
|
+
this._accountHolderGroupResponse = response;
|
|
10216
|
+
}
|
|
10217
|
+
},
|
|
10218
|
+
{
|
|
10219
|
+
key: "setAccountBalancesResponse",
|
|
10220
|
+
value: function setAccountBalancesResponse(response) {
|
|
10221
|
+
this._accountBalancesResponse = response;
|
|
10222
|
+
}
|
|
10223
|
+
},
|
|
10224
|
+
{
|
|
10225
|
+
key: "setDepositAccountsResponse",
|
|
10226
|
+
value: function setDepositAccountsResponse(response) {
|
|
10227
|
+
this._depositAccountsResponse = response;
|
|
10228
|
+
}
|
|
10229
|
+
},
|
|
10207
10230
|
{
|
|
10208
10231
|
key: "getAccountHolderGroup",
|
|
10209
|
-
value: function getAccountHolderGroup() {
|
|
10210
|
-
|
|
10232
|
+
value: function getAccountHolderGroup(shortCode) {
|
|
10233
|
+
var _this = this;
|
|
10234
|
+
return _async_to_generator(function() {
|
|
10235
|
+
return _ts_generator(this, function(_state) {
|
|
10236
|
+
if (!_this._accountHolderGroupResponse) {
|
|
10237
|
+
throw new Error("Method not implemented.");
|
|
10238
|
+
}
|
|
10239
|
+
if (_instanceof(_this._accountHolderGroupResponse, Error)) {
|
|
10240
|
+
throw _this._accountHolderGroupResponse;
|
|
10241
|
+
}
|
|
10242
|
+
return [
|
|
10243
|
+
2,
|
|
10244
|
+
_this._accountHolderGroupResponse
|
|
10245
|
+
];
|
|
10246
|
+
});
|
|
10247
|
+
})();
|
|
10211
10248
|
}
|
|
10212
10249
|
},
|
|
10213
10250
|
{
|
|
10214
10251
|
key: "getAccountBalances",
|
|
10215
|
-
value: function getAccountBalances() {
|
|
10252
|
+
value: function getAccountBalances(shortCode) {
|
|
10253
|
+
var _this = this;
|
|
10216
10254
|
return _async_to_generator(function() {
|
|
10217
10255
|
return _ts_generator(this, function(_state) {
|
|
10256
|
+
if (_instanceof(_this._accountBalancesResponse, Error)) {
|
|
10257
|
+
throw _this._accountBalancesResponse;
|
|
10258
|
+
}
|
|
10218
10259
|
return [
|
|
10219
10260
|
2,
|
|
10220
|
-
|
|
10261
|
+
_this._accountBalancesResponse
|
|
10221
10262
|
];
|
|
10222
10263
|
});
|
|
10223
10264
|
})();
|
|
@@ -10225,14 +10266,16 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
10225
10266
|
},
|
|
10226
10267
|
{
|
|
10227
10268
|
key: "getDepositAccounts",
|
|
10228
|
-
value: function getDepositAccounts() {
|
|
10269
|
+
value: function getDepositAccounts(shortCode) {
|
|
10270
|
+
var _this = this;
|
|
10229
10271
|
return _async_to_generator(function() {
|
|
10230
10272
|
return _ts_generator(this, function(_state) {
|
|
10273
|
+
if (_instanceof(_this._depositAccountsResponse, Error)) {
|
|
10274
|
+
throw _this._depositAccountsResponse;
|
|
10275
|
+
}
|
|
10231
10276
|
return [
|
|
10232
10277
|
2,
|
|
10233
|
-
|
|
10234
|
-
new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
|
|
10235
|
-
]
|
|
10278
|
+
_this._depositAccountsResponse
|
|
10236
10279
|
];
|
|
10237
10280
|
});
|
|
10238
10281
|
})();
|
|
@@ -10267,7 +10310,7 @@ var _GetAccountHolderGroup = /*#__PURE__*/ function() {
|
|
|
10267
10310
|
_create_class(_GetAccountHolderGroup, [
|
|
10268
10311
|
{
|
|
10269
10312
|
key: "execute",
|
|
10270
|
-
value: function execute() {
|
|
10313
|
+
value: function execute(shortCode) {
|
|
10271
10314
|
var _this = this;
|
|
10272
10315
|
return _async_to_generator(function() {
|
|
10273
10316
|
return _ts_generator(this, function(_state) {
|
|
@@ -10275,7 +10318,7 @@ var _GetAccountHolderGroup = /*#__PURE__*/ function() {
|
|
|
10275
10318
|
case 0:
|
|
10276
10319
|
return [
|
|
10277
10320
|
4,
|
|
10278
|
-
_this.accountRepository.getAccountHolderGroup()
|
|
10321
|
+
_this.accountRepository.getAccountHolderGroup(shortCode)
|
|
10279
10322
|
];
|
|
10280
10323
|
case 1:
|
|
10281
10324
|
return [
|
|
@@ -10321,7 +10364,7 @@ var _GetAccountBalances = /*#__PURE__*/ function() {
|
|
|
10321
10364
|
_create_class(_GetAccountBalances, [
|
|
10322
10365
|
{
|
|
10323
10366
|
key: "execute",
|
|
10324
|
-
value: function execute() {
|
|
10367
|
+
value: function execute(shortCode) {
|
|
10325
10368
|
var _this = this;
|
|
10326
10369
|
return _async_to_generator(function() {
|
|
10327
10370
|
return _ts_generator(this, function(_state) {
|
|
@@ -10329,7 +10372,7 @@ var _GetAccountBalances = /*#__PURE__*/ function() {
|
|
|
10329
10372
|
case 0:
|
|
10330
10373
|
return [
|
|
10331
10374
|
4,
|
|
10332
|
-
_this.accountRepository.getAccountBalances()
|
|
10375
|
+
_this.accountRepository.getAccountBalances(shortCode)
|
|
10333
10376
|
];
|
|
10334
10377
|
case 1:
|
|
10335
10378
|
return [
|
|
@@ -10375,7 +10418,7 @@ var _GetDepositAccounts = /*#__PURE__*/ function() {
|
|
|
10375
10418
|
_create_class(_GetDepositAccounts, [
|
|
10376
10419
|
{
|
|
10377
10420
|
key: "execute",
|
|
10378
|
-
value: function execute() {
|
|
10421
|
+
value: function execute(shortCode) {
|
|
10379
10422
|
var _this = this;
|
|
10380
10423
|
return _async_to_generator(function() {
|
|
10381
10424
|
return _ts_generator(this, function(_state) {
|
|
@@ -10383,7 +10426,7 @@ var _GetDepositAccounts = /*#__PURE__*/ function() {
|
|
|
10383
10426
|
case 0:
|
|
10384
10427
|
return [
|
|
10385
10428
|
4,
|
|
10386
|
-
_this.accountRepository.getDepositAccounts()
|
|
10429
|
+
_this.accountRepository.getDepositAccounts(shortCode)
|
|
10387
10430
|
];
|
|
10388
10431
|
case 1:
|
|
10389
10432
|
return [
|
|
@@ -10432,7 +10475,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10432
10475
|
_create_class(_RestAccountRepository, [
|
|
10433
10476
|
{
|
|
10434
10477
|
key: "getAccountBalances",
|
|
10435
|
-
value: function getAccountBalances() {
|
|
10478
|
+
value: function getAccountBalances(shortCode) {
|
|
10436
10479
|
var _this = this;
|
|
10437
10480
|
return _async_to_generator(function() {
|
|
10438
10481
|
var cuiApiBaseUrl, path, data, err;
|
|
@@ -10446,7 +10489,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10446
10489
|
3
|
|
10447
10490
|
]);
|
|
10448
10491
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10449
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/accountbalance");
|
|
10492
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/accountbalance").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10450
10493
|
return [
|
|
10451
10494
|
4,
|
|
10452
10495
|
_this.httpClient.get(path)
|
|
@@ -10480,7 +10523,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10480
10523
|
},
|
|
10481
10524
|
{
|
|
10482
10525
|
key: "getAccountHolderGroup",
|
|
10483
|
-
value: function getAccountHolderGroup() {
|
|
10526
|
+
value: function getAccountHolderGroup(shortCode) {
|
|
10484
10527
|
var _this = this;
|
|
10485
10528
|
return _async_to_generator(function() {
|
|
10486
10529
|
var cuiApiBaseUrl, path, response, accountHolderGroupResponse, err;
|
|
@@ -10494,7 +10537,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10494
10537
|
3
|
|
10495
10538
|
]);
|
|
10496
10539
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10497
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/accountholdergroup");
|
|
10540
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/accountholdergroup").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10498
10541
|
return [
|
|
10499
10542
|
4,
|
|
10500
10543
|
_this.httpClient.get(path)
|
|
@@ -10529,7 +10572,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10529
10572
|
},
|
|
10530
10573
|
{
|
|
10531
10574
|
key: "getDepositAccounts",
|
|
10532
|
-
value: function getDepositAccounts() {
|
|
10575
|
+
value: function getDepositAccounts(shortCode) {
|
|
10533
10576
|
var _this = this;
|
|
10534
10577
|
return _async_to_generator(function() {
|
|
10535
10578
|
var cuiApiBaseUrl, path, data, updatedAccountsBalanceResponse, err;
|
|
@@ -10543,7 +10586,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10543
10586
|
3
|
|
10544
10587
|
]);
|
|
10545
10588
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10546
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/depositaccounts");
|
|
10589
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/depositaccounts").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10547
10590
|
return [
|
|
10548
10591
|
4,
|
|
10549
10592
|
_this.httpClient.get(path)
|
|
@@ -10298,22 +10298,63 @@ var TEST_DEPOSIT_ACCOUNT = {
|
|
|
10298
10298
|
var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
10299
10299
|
function _MockAccountRepository() {
|
|
10300
10300
|
_class_call_check(this, _MockAccountRepository);
|
|
10301
|
+
__publicField(this, "_accountHolderGroupResponse", null);
|
|
10302
|
+
__publicField(this, "_accountBalancesResponse", new AccountBalancesEntity(mockAccountBalances));
|
|
10303
|
+
__publicField(this, "_depositAccountsResponse", [
|
|
10304
|
+
new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
|
|
10305
|
+
]);
|
|
10301
10306
|
}
|
|
10302
10307
|
_create_class(_MockAccountRepository, [
|
|
10308
|
+
{
|
|
10309
|
+
key: "setAccountHolderGroupResponse",
|
|
10310
|
+
value: function setAccountHolderGroupResponse(response) {
|
|
10311
|
+
this._accountHolderGroupResponse = response;
|
|
10312
|
+
}
|
|
10313
|
+
},
|
|
10314
|
+
{
|
|
10315
|
+
key: "setAccountBalancesResponse",
|
|
10316
|
+
value: function setAccountBalancesResponse(response) {
|
|
10317
|
+
this._accountBalancesResponse = response;
|
|
10318
|
+
}
|
|
10319
|
+
},
|
|
10320
|
+
{
|
|
10321
|
+
key: "setDepositAccountsResponse",
|
|
10322
|
+
value: function setDepositAccountsResponse(response) {
|
|
10323
|
+
this._depositAccountsResponse = response;
|
|
10324
|
+
}
|
|
10325
|
+
},
|
|
10303
10326
|
{
|
|
10304
10327
|
key: "getAccountHolderGroup",
|
|
10305
|
-
value: function getAccountHolderGroup() {
|
|
10306
|
-
|
|
10328
|
+
value: function getAccountHolderGroup(shortCode) {
|
|
10329
|
+
var _this = this;
|
|
10330
|
+
return _async_to_generator(function() {
|
|
10331
|
+
return _ts_generator(this, function(_state) {
|
|
10332
|
+
if (!_this._accountHolderGroupResponse) {
|
|
10333
|
+
throw new Error("Method not implemented.");
|
|
10334
|
+
}
|
|
10335
|
+
if (_instanceof(_this._accountHolderGroupResponse, Error)) {
|
|
10336
|
+
throw _this._accountHolderGroupResponse;
|
|
10337
|
+
}
|
|
10338
|
+
return [
|
|
10339
|
+
2,
|
|
10340
|
+
_this._accountHolderGroupResponse
|
|
10341
|
+
];
|
|
10342
|
+
});
|
|
10343
|
+
})();
|
|
10307
10344
|
}
|
|
10308
10345
|
},
|
|
10309
10346
|
{
|
|
10310
10347
|
key: "getAccountBalances",
|
|
10311
|
-
value: function getAccountBalances() {
|
|
10348
|
+
value: function getAccountBalances(shortCode) {
|
|
10349
|
+
var _this = this;
|
|
10312
10350
|
return _async_to_generator(function() {
|
|
10313
10351
|
return _ts_generator(this, function(_state) {
|
|
10352
|
+
if (_instanceof(_this._accountBalancesResponse, Error)) {
|
|
10353
|
+
throw _this._accountBalancesResponse;
|
|
10354
|
+
}
|
|
10314
10355
|
return [
|
|
10315
10356
|
2,
|
|
10316
|
-
|
|
10357
|
+
_this._accountBalancesResponse
|
|
10317
10358
|
];
|
|
10318
10359
|
});
|
|
10319
10360
|
})();
|
|
@@ -10321,14 +10362,16 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
10321
10362
|
},
|
|
10322
10363
|
{
|
|
10323
10364
|
key: "getDepositAccounts",
|
|
10324
|
-
value: function getDepositAccounts() {
|
|
10365
|
+
value: function getDepositAccounts(shortCode) {
|
|
10366
|
+
var _this = this;
|
|
10325
10367
|
return _async_to_generator(function() {
|
|
10326
10368
|
return _ts_generator(this, function(_state) {
|
|
10369
|
+
if (_instanceof(_this._depositAccountsResponse, Error)) {
|
|
10370
|
+
throw _this._depositAccountsResponse;
|
|
10371
|
+
}
|
|
10327
10372
|
return [
|
|
10328
10373
|
2,
|
|
10329
|
-
|
|
10330
|
-
new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
|
|
10331
|
-
]
|
|
10374
|
+
_this._depositAccountsResponse
|
|
10332
10375
|
];
|
|
10333
10376
|
});
|
|
10334
10377
|
})();
|
|
@@ -10362,7 +10405,7 @@ var _GetAccountHolderGroup = /*#__PURE__*/ function() {
|
|
|
10362
10405
|
_create_class(_GetAccountHolderGroup, [
|
|
10363
10406
|
{
|
|
10364
10407
|
key: "execute",
|
|
10365
|
-
value: function execute() {
|
|
10408
|
+
value: function execute(shortCode) {
|
|
10366
10409
|
var _this = this;
|
|
10367
10410
|
return _async_to_generator(function() {
|
|
10368
10411
|
return _ts_generator(this, function(_state) {
|
|
@@ -10370,7 +10413,7 @@ var _GetAccountHolderGroup = /*#__PURE__*/ function() {
|
|
|
10370
10413
|
case 0:
|
|
10371
10414
|
return [
|
|
10372
10415
|
4,
|
|
10373
|
-
_this.accountRepository.getAccountHolderGroup()
|
|
10416
|
+
_this.accountRepository.getAccountHolderGroup(shortCode)
|
|
10374
10417
|
];
|
|
10375
10418
|
case 1:
|
|
10376
10419
|
return [
|
|
@@ -10414,7 +10457,7 @@ var _GetAccountBalances = /*#__PURE__*/ function() {
|
|
|
10414
10457
|
_create_class(_GetAccountBalances, [
|
|
10415
10458
|
{
|
|
10416
10459
|
key: "execute",
|
|
10417
|
-
value: function execute() {
|
|
10460
|
+
value: function execute(shortCode) {
|
|
10418
10461
|
var _this = this;
|
|
10419
10462
|
return _async_to_generator(function() {
|
|
10420
10463
|
return _ts_generator(this, function(_state) {
|
|
@@ -10422,7 +10465,7 @@ var _GetAccountBalances = /*#__PURE__*/ function() {
|
|
|
10422
10465
|
case 0:
|
|
10423
10466
|
return [
|
|
10424
10467
|
4,
|
|
10425
|
-
_this.accountRepository.getAccountBalances()
|
|
10468
|
+
_this.accountRepository.getAccountBalances(shortCode)
|
|
10426
10469
|
];
|
|
10427
10470
|
case 1:
|
|
10428
10471
|
return [
|
|
@@ -10466,7 +10509,7 @@ var _GetDepositAccounts = /*#__PURE__*/ function() {
|
|
|
10466
10509
|
_create_class(_GetDepositAccounts, [
|
|
10467
10510
|
{
|
|
10468
10511
|
key: "execute",
|
|
10469
|
-
value: function execute() {
|
|
10512
|
+
value: function execute(shortCode) {
|
|
10470
10513
|
var _this = this;
|
|
10471
10514
|
return _async_to_generator(function() {
|
|
10472
10515
|
return _ts_generator(this, function(_state) {
|
|
@@ -10474,7 +10517,7 @@ var _GetDepositAccounts = /*#__PURE__*/ function() {
|
|
|
10474
10517
|
case 0:
|
|
10475
10518
|
return [
|
|
10476
10519
|
4,
|
|
10477
|
-
_this.accountRepository.getDepositAccounts()
|
|
10520
|
+
_this.accountRepository.getDepositAccounts(shortCode)
|
|
10478
10521
|
];
|
|
10479
10522
|
case 1:
|
|
10480
10523
|
return [
|
|
@@ -10520,7 +10563,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10520
10563
|
_create_class(_RestAccountRepository, [
|
|
10521
10564
|
{
|
|
10522
10565
|
key: "getAccountBalances",
|
|
10523
|
-
value: function getAccountBalances() {
|
|
10566
|
+
value: function getAccountBalances(shortCode) {
|
|
10524
10567
|
var _this = this;
|
|
10525
10568
|
return _async_to_generator(function() {
|
|
10526
10569
|
var cuiApiBaseUrl, path, data, err;
|
|
@@ -10534,7 +10577,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10534
10577
|
3
|
|
10535
10578
|
]);
|
|
10536
10579
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10537
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/accountbalance");
|
|
10580
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/accountbalance").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10538
10581
|
return [
|
|
10539
10582
|
4,
|
|
10540
10583
|
_this.httpClient.get(path)
|
|
@@ -10568,7 +10611,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10568
10611
|
},
|
|
10569
10612
|
{
|
|
10570
10613
|
key: "getAccountHolderGroup",
|
|
10571
|
-
value: function getAccountHolderGroup() {
|
|
10614
|
+
value: function getAccountHolderGroup(shortCode) {
|
|
10572
10615
|
var _this = this;
|
|
10573
10616
|
return _async_to_generator(function() {
|
|
10574
10617
|
var cuiApiBaseUrl, path, response, accountHolderGroupResponse, err;
|
|
@@ -10582,7 +10625,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10582
10625
|
3
|
|
10583
10626
|
]);
|
|
10584
10627
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10585
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/accountholdergroup");
|
|
10628
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/accountholdergroup").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10586
10629
|
return [
|
|
10587
10630
|
4,
|
|
10588
10631
|
_this.httpClient.get(path)
|
|
@@ -10617,7 +10660,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10617
10660
|
},
|
|
10618
10661
|
{
|
|
10619
10662
|
key: "getDepositAccounts",
|
|
10620
|
-
value: function getDepositAccounts() {
|
|
10663
|
+
value: function getDepositAccounts(shortCode) {
|
|
10621
10664
|
var _this = this;
|
|
10622
10665
|
return _async_to_generator(function() {
|
|
10623
10666
|
var cuiApiBaseUrl, path, data, updatedAccountsBalanceResponse, err;
|
|
@@ -10631,7 +10674,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
10631
10674
|
3
|
|
10632
10675
|
]);
|
|
10633
10676
|
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
10634
|
-
path = "".concat(cuiApiBaseUrl, "/api/v1/depositaccounts");
|
|
10677
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/depositaccounts").concat(shortCode ? "?short_code=".concat(shortCode) : "");
|
|
10635
10678
|
return [
|
|
10636
10679
|
4,
|
|
10637
10680
|
_this.httpClient.get(path)
|
package/dist/index.d.mts
CHANGED
|
@@ -509,32 +509,38 @@ declare const mockAccountHolderGroup: {
|
|
|
509
509
|
declare const mockDepositAccountJson: DepositAccountEntityJsonType;
|
|
510
510
|
|
|
511
511
|
declare abstract class iAccountRepository {
|
|
512
|
-
abstract getAccountHolderGroup(): Promise<AccountHolderGroupEntity>;
|
|
513
|
-
abstract getAccountBalances(): Promise<AccountBalancesEntity>;
|
|
514
|
-
abstract getDepositAccounts(): Promise<DepositAccountEntity[]>;
|
|
512
|
+
abstract getAccountHolderGroup(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
513
|
+
abstract getAccountBalances(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
514
|
+
abstract getDepositAccounts(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
declare const TEST_USER_TOKEN = "test-user-token";
|
|
518
518
|
declare const TEST_DEPOSIT_ACCOUNT: DepositAccountEntityJsonType;
|
|
519
519
|
declare class MockAccountRepository implements iAccountRepository {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
520
|
+
private _accountHolderGroupResponse;
|
|
521
|
+
private _accountBalancesResponse;
|
|
522
|
+
private _depositAccountsResponse;
|
|
523
|
+
setAccountHolderGroupResponse(response: AccountHolderGroupEntity | Error): void;
|
|
524
|
+
setAccountBalancesResponse(response: AccountBalancesEntity | Error): void;
|
|
525
|
+
setDepositAccountsResponse(response: DepositAccountEntity[] | Error): void;
|
|
526
|
+
getAccountHolderGroup(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
527
|
+
getAccountBalances(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
528
|
+
getDepositAccounts(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
523
529
|
}
|
|
524
530
|
|
|
525
531
|
declare class GetAccountHolderGroup {
|
|
526
532
|
accountRepository: iAccountRepository;
|
|
527
|
-
execute(): Promise<AccountHolderGroupEntity>;
|
|
533
|
+
execute(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
528
534
|
}
|
|
529
535
|
|
|
530
536
|
declare class GetAccountBalances {
|
|
531
537
|
accountRepository: iAccountRepository;
|
|
532
|
-
execute(): Promise<AccountBalancesEntity>;
|
|
538
|
+
execute(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
533
539
|
}
|
|
534
540
|
|
|
535
541
|
declare class GetDepositAccounts {
|
|
536
542
|
accountRepository: iAccountRepository;
|
|
537
|
-
execute(): Promise<DepositAccountEntity[]>;
|
|
543
|
+
execute(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
538
544
|
}
|
|
539
545
|
|
|
540
546
|
declare const accountsIOCModule: ContainerModule;
|
package/dist/index.d.ts
CHANGED
|
@@ -509,32 +509,38 @@ declare const mockAccountHolderGroup: {
|
|
|
509
509
|
declare const mockDepositAccountJson: DepositAccountEntityJsonType;
|
|
510
510
|
|
|
511
511
|
declare abstract class iAccountRepository {
|
|
512
|
-
abstract getAccountHolderGroup(): Promise<AccountHolderGroupEntity>;
|
|
513
|
-
abstract getAccountBalances(): Promise<AccountBalancesEntity>;
|
|
514
|
-
abstract getDepositAccounts(): Promise<DepositAccountEntity[]>;
|
|
512
|
+
abstract getAccountHolderGroup(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
513
|
+
abstract getAccountBalances(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
514
|
+
abstract getDepositAccounts(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
declare const TEST_USER_TOKEN = "test-user-token";
|
|
518
518
|
declare const TEST_DEPOSIT_ACCOUNT: DepositAccountEntityJsonType;
|
|
519
519
|
declare class MockAccountRepository implements iAccountRepository {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
520
|
+
private _accountHolderGroupResponse;
|
|
521
|
+
private _accountBalancesResponse;
|
|
522
|
+
private _depositAccountsResponse;
|
|
523
|
+
setAccountHolderGroupResponse(response: AccountHolderGroupEntity | Error): void;
|
|
524
|
+
setAccountBalancesResponse(response: AccountBalancesEntity | Error): void;
|
|
525
|
+
setDepositAccountsResponse(response: DepositAccountEntity[] | Error): void;
|
|
526
|
+
getAccountHolderGroup(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
527
|
+
getAccountBalances(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
528
|
+
getDepositAccounts(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
523
529
|
}
|
|
524
530
|
|
|
525
531
|
declare class GetAccountHolderGroup {
|
|
526
532
|
accountRepository: iAccountRepository;
|
|
527
|
-
execute(): Promise<AccountHolderGroupEntity>;
|
|
533
|
+
execute(shortCode?: string): Promise<AccountHolderGroupEntity>;
|
|
528
534
|
}
|
|
529
535
|
|
|
530
536
|
declare class GetAccountBalances {
|
|
531
537
|
accountRepository: iAccountRepository;
|
|
532
|
-
execute(): Promise<AccountBalancesEntity>;
|
|
538
|
+
execute(shortCode?: string): Promise<AccountBalancesEntity>;
|
|
533
539
|
}
|
|
534
540
|
|
|
535
541
|
declare class GetDepositAccounts {
|
|
536
542
|
accountRepository: iAccountRepository;
|
|
537
|
-
execute(): Promise<DepositAccountEntity[]>;
|
|
543
|
+
execute(shortCode?: string): Promise<DepositAccountEntity[]>;
|
|
538
544
|
}
|
|
539
545
|
|
|
540
546
|
declare const accountsIOCModule: ContainerModule;
|