@marqeta/ux-toolkit-sdk-javascript 2.38.0 → 2.39.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.
@@ -13446,13 +13446,6 @@ var TransactionChallengeAuthenticationMethod;
13446
13446
  TransactionChallengeAuthenticationMethod2["KnowledgeBased"] = "KNOWLEDGE_BASED";
13447
13447
  TransactionChallengeAuthenticationMethod2["Other"] = "OTHER";
13448
13448
  })(TransactionChallengeAuthenticationMethod || (TransactionChallengeAuthenticationMethod = exports.TransactionChallengeAuthenticationMethod = {}));
13449
- // src/wla/base/types/ProvisionWalletRequest.ts
13450
- var DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
13451
- (function(DigitalWalletApplePayProvisionRequestDeviceTypeEnum2) {
13452
- DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["MobilePhone"] = "MOBILE_PHONE";
13453
- DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Watch"] = "WATCH";
13454
- DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Tablet"] = "TABLET";
13455
- })(DigitalWalletApplePayProvisionRequestDeviceTypeEnum || (DigitalWalletApplePayProvisionRequestDeviceTypeEnum = exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = {}));
13456
13449
  // src/wla/adapters/RestWlaService.ts
13457
13450
  function _ts_decorate37(decorators, target, key, desc) {
13458
13451
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16079,124 +16072,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
16079
16072
  });
16080
16073
  })();
16081
16074
  }
16082
- },
16083
- {
16084
- key: "getCardEligibility",
16085
- value: function getCardEligibility(request) {
16086
- var _this = this;
16087
- return _async_to_generator(function() {
16088
- var cuiApiBaseUrl, path, error2;
16089
- return _ts_generator(this, function(_state) {
16090
- switch(_state.label){
16091
- case 0:
16092
- logDebug("Checking card eligibility", {
16093
- cardToken: request.card_token,
16094
- adapter: "RestWlaService"
16095
- });
16096
- _state.label = 1;
16097
- case 1:
16098
- _state.trys.push([
16099
- 1,
16100
- 3,
16101
- ,
16102
- 4
16103
- ]);
16104
- cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
16105
- path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card/").concat(request.card_token, "/eligibility");
16106
- return [
16107
- 4,
16108
- _this.httpClient.get(path)
16109
- ];
16110
- case 2:
16111
- _state.sent();
16112
- logInfo("Card is eligible", {
16113
- cardToken: request.card_token,
16114
- adapter: "RestWlaService"
16115
- });
16116
- return [
16117
- 2,
16118
- {
16119
- eligible: true
16120
- }
16121
- ];
16122
- case 3:
16123
- error2 = _state.sent();
16124
- logInfo("Card is not eligible", {
16125
- error: error2,
16126
- cardToken: request.card_token,
16127
- adapter: "RestWlaService"
16128
- });
16129
- return [
16130
- 2,
16131
- {
16132
- eligible: false
16133
- }
16134
- ];
16135
- case 4:
16136
- return [
16137
- 2
16138
- ];
16139
- }
16140
- });
16141
- })();
16142
- }
16143
- },
16144
- {
16145
- key: "postRequestWalletProvisioning",
16146
- value: function postRequestWalletProvisioning(request) {
16147
- var _this = this;
16148
- return _async_to_generator(function() {
16149
- var cuiApiBaseUrl, platform, path, params, result, error2;
16150
- return _ts_generator(this, function(_state) {
16151
- switch(_state.label){
16152
- case 0:
16153
- logDebug("Requesting wallet provisioning", {
16154
- platform: request.platform,
16155
- adapter: "RestWlaService"
16156
- });
16157
- _state.label = 1;
16158
- case 1:
16159
- _state.trys.push([
16160
- 1,
16161
- 3,
16162
- ,
16163
- 4
16164
- ]);
16165
- cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
16166
- platform = request.platform || "ios";
16167
- path = "".concat(cuiApiBaseUrl, "/api/v1/wla/wallet/provision/").concat(platform);
16168
- params = {
16169
- body: JSON.stringify(request)
16170
- };
16171
- return [
16172
- 4,
16173
- _this.httpClient.post(path, params)
16174
- ];
16175
- case 2:
16176
- result = _state.sent();
16177
- logInfo("Wallet provisioning requested successfully", {
16178
- platform: platform,
16179
- adapter: "RestWlaService"
16180
- });
16181
- return [
16182
- 2,
16183
- result
16184
- ];
16185
- case 3:
16186
- error2 = _state.sent();
16187
- logInfo("[ERROR] Unable to request wallet provisioning", {
16188
- error: error2,
16189
- adapter: "RestWlaService"
16190
- });
16191
- throw new MqSDKError("Unable to request wallet provisioning", error2);
16192
- case 4:
16193
- return [
16194
- 2
16195
- ];
16196
- }
16197
- });
16198
- })();
16199
- }
16200
16075
  }
16201
16076
  ]);
16202
16077
  return _RestWlaService;
@@ -17898,106 +17773,6 @@ function _updateDevicePushNotificationsRegistration() {
17898
17773
  return _updateDevicePushNotificationsRegistration.apply(this, arguments);
17899
17774
  }
17900
17775
  __name(updateDevicePushNotificationsRegistration, "updateDevicePushNotificationsRegistration");
17901
- function getCardEligibility(request) {
17902
- return _getCardEligibility.apply(this, arguments);
17903
- }
17904
- function _getCardEligibility() {
17905
- _getCardEligibility = // src/wla/base/interactors/getCardEligibility.ts
17906
- _async_to_generator(function(request) {
17907
- var container2, wlaService, error2;
17908
- return _ts_generator(this, function(_state) {
17909
- switch(_state.label){
17910
- case 0:
17911
- logDebug("Get Card eligibility");
17912
- _state.label = 1;
17913
- case 1:
17914
- _state.trys.push([
17915
- 1,
17916
- 3,
17917
- ,
17918
- 4
17919
- ]);
17920
- container2 = getActiveIocContainer();
17921
- wlaService = container2.get(ITF_WLA_SERVICE);
17922
- return [
17923
- 4,
17924
- wlaService.getCardEligibility(request)
17925
- ];
17926
- case 2:
17927
- return [
17928
- 2,
17929
- _state.sent()
17930
- ];
17931
- case 3:
17932
- error2 = _state.sent();
17933
- logInfo("[ERROR] Failed to get card eligibility", {
17934
- error: error2,
17935
- interactor: "getCardEligibility"
17936
- });
17937
- throw error2;
17938
- case 4:
17939
- return [
17940
- 2
17941
- ];
17942
- }
17943
- });
17944
- });
17945
- return _getCardEligibility.apply(this, arguments);
17946
- }
17947
- __name(getCardEligibility, "getCardEligibility");
17948
- function postProvisionWallet(request) {
17949
- return _postProvisionWallet.apply(this, arguments);
17950
- }
17951
- function _postProvisionWallet() {
17952
- _postProvisionWallet = // src/wla/base/interactors/postProvisionWallet.ts
17953
- _async_to_generator(function(request) {
17954
- var container2, wlaService, result, error2;
17955
- return _ts_generator(this, function(_state) {
17956
- switch(_state.label){
17957
- case 0:
17958
- logDebug("Requesting wallet provisioning", {
17959
- interactor: "postProvisionWallet"
17960
- });
17961
- _state.label = 1;
17962
- case 1:
17963
- _state.trys.push([
17964
- 1,
17965
- 3,
17966
- ,
17967
- 4
17968
- ]);
17969
- container2 = getActiveIocContainer();
17970
- wlaService = container2.get(ITF_WLA_SERVICE);
17971
- return [
17972
- 4,
17973
- wlaService.postRequestWalletProvisioning(request)
17974
- ];
17975
- case 2:
17976
- result = _state.sent();
17977
- logInfo("Wallet provisioning requested successfully", {
17978
- interactor: "postProvisionWallet"
17979
- });
17980
- return [
17981
- 2,
17982
- result
17983
- ];
17984
- case 3:
17985
- error2 = _state.sent();
17986
- logInfo("[ERROR] Failed to request wallet provisioning", {
17987
- error: error2,
17988
- interactor: "postProvisionWallet"
17989
- });
17990
- throw error2;
17991
- case 4:
17992
- return [
17993
- 2
17994
- ];
17995
- }
17996
- });
17997
- });
17998
- return _postProvisionWallet.apply(this, arguments);
17999
- }
18000
- __name(postProvisionWallet, "postProvisionWallet");
18001
17776
  // src/wla/ioc/WlaIocModule.ts
18002
17777
  var WlaIocModule = new (0, _inversify.ContainerModule)(function(bind) {
18003
17778
  bind(ITF_WLA_SERVICE).to(RestWlaService).inSingletonScope();
@@ -32497,41 +32272,534 @@ var mswTransactionsHandlers = [
32497
32272
  return HttpResponse.json(txnIcons_default);
32498
32273
  })
32499
32274
  ];
32500
- // src/ioc/container.ts
32501
- // src/ioc/loadBaseContainerModules.ts
32502
- // src/analytics/ioc/analyticsIOCModule.ts
32503
- var analyticsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
32504
- bind(ITF_ANALYTICS_SERVICE).to(GaMeasurementAnalyticsService).inSingletonScope();
32505
- bind(ITF_SESSION_SERVICE).to(VanillaSessionService).inSingletonScope();
32506
- });
32507
- // src/ioc/loadBaseContainerModules.ts
32508
- function loadBaseContainerModules(container2) {
32509
- container2.load(accountsIOCModule);
32510
- container2.load(analyticsIOCModule);
32511
- container2.load(authIOCModule);
32512
- container2.load(cardsIOCModule);
32513
- container2.load(commonIOCModule);
32514
- container2.load(creditIOCModule);
32515
- container2.load(envConfigIOCModule);
32516
- container2.load(httpClientIOCModule);
32517
- container2.load(statementsIOCModule);
32518
- container2.load(themesIOCModule);
32519
- container2.load(transactionsIOCModule);
32520
- container2.load(moneyMovementIOCModule);
32521
- container2.load(iconsIOCModule);
32522
- container2.load(featureFlagsIOCModule);
32523
- container2.load(usersIOCModule);
32524
- container2.load(kycIOCModule);
32525
- container2.load(kybIOCModule);
32526
- container2.load(disputesIOCModule);
32527
- container2.load(componentsIOCModule);
32528
- container2.load(WlaIocModule);
32529
- container2.load(idpIOCModule);
32530
- container2.load(loggingIOCModule);
32275
+ // src/wallet/adapters/rest/RestWalletService.ts
32276
+ function _ts_decorate85(decorators, target, key, desc) {
32277
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32278
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32279
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
32280
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32531
32281
  }
32532
- __name(loadBaseContainerModules, "loadBaseContainerModules");
32533
- // src/ioc/container.ts
32534
- var container = new (0, _inversify.Container)();
32282
+ __name(_ts_decorate85, "_ts_decorate");
32283
+ function _ts_metadata24(k, v) {
32284
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
32285
+ }
32286
+ __name(_ts_metadata24, "_ts_metadata");
32287
+ var _RestWalletService = /*#__PURE__*/ function() {
32288
+ function _RestWalletService() {
32289
+ _class_call_check(this, _RestWalletService);
32290
+ __publicField(this, "httpClient");
32291
+ }
32292
+ _create_class(_RestWalletService, [
32293
+ {
32294
+ key: "getCardEligibility",
32295
+ value: function getCardEligibility(request) {
32296
+ var _this = this;
32297
+ return _async_to_generator(function() {
32298
+ var cuiApiBaseUrl, path, error2;
32299
+ return _ts_generator(this, function(_state) {
32300
+ switch(_state.label){
32301
+ case 0:
32302
+ logDebug("Checking card eligibility", {
32303
+ cardToken: request.card_token,
32304
+ adapter: "RestWalletService"
32305
+ });
32306
+ _state.label = 1;
32307
+ case 1:
32308
+ _state.trys.push([
32309
+ 1,
32310
+ 3,
32311
+ ,
32312
+ 4
32313
+ ]);
32314
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32315
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/cards/").concat(request.card_token, "/eligibility");
32316
+ return [
32317
+ 4,
32318
+ _this.httpClient.get(path)
32319
+ ];
32320
+ case 2:
32321
+ _state.sent();
32322
+ logInfo("Card is eligible", {
32323
+ cardToken: request.card_token,
32324
+ adapter: "RestWalletService"
32325
+ });
32326
+ return [
32327
+ 2,
32328
+ {
32329
+ eligible: true
32330
+ }
32331
+ ];
32332
+ case 3:
32333
+ error2 = _state.sent();
32334
+ logInfo("Card is not eligible", {
32335
+ error: error2,
32336
+ cardToken: request.card_token,
32337
+ adapter: "RestWalletService"
32338
+ });
32339
+ return [
32340
+ 2,
32341
+ {
32342
+ eligible: false
32343
+ }
32344
+ ];
32345
+ case 4:
32346
+ return [
32347
+ 2
32348
+ ];
32349
+ }
32350
+ });
32351
+ })();
32352
+ }
32353
+ },
32354
+ {
32355
+ key: "postRequestWalletProvisioning",
32356
+ value: function postRequestWalletProvisioning(request) {
32357
+ var _this = this;
32358
+ return _async_to_generator(function() {
32359
+ var cuiApiBaseUrl, platform, path, params, result, error2;
32360
+ return _ts_generator(this, function(_state) {
32361
+ switch(_state.label){
32362
+ case 0:
32363
+ logDebug("Requesting wallet provisioning", {
32364
+ platform: request.platform,
32365
+ adapter: "RestWalletService"
32366
+ });
32367
+ _state.label = 1;
32368
+ case 1:
32369
+ _state.trys.push([
32370
+ 1,
32371
+ 3,
32372
+ ,
32373
+ 4
32374
+ ]);
32375
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32376
+ platform = request.platform || "ios";
32377
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/provision/").concat(platform);
32378
+ params = {
32379
+ body: JSON.stringify(request)
32380
+ };
32381
+ return [
32382
+ 4,
32383
+ _this.httpClient.post(path, params)
32384
+ ];
32385
+ case 2:
32386
+ result = _state.sent();
32387
+ logInfo("Wallet provisioning requested successfully", {
32388
+ platform: platform,
32389
+ adapter: "RestWalletService"
32390
+ });
32391
+ return [
32392
+ 2,
32393
+ result
32394
+ ];
32395
+ case 3:
32396
+ error2 = _state.sent();
32397
+ logInfo("[ERROR] Unable to request wallet provisioning", {
32398
+ error: error2,
32399
+ adapter: "RestWalletService"
32400
+ });
32401
+ throw new MqSDKError("Unable to request wallet provisioning", error2);
32402
+ case 4:
32403
+ return [
32404
+ 2
32405
+ ];
32406
+ }
32407
+ });
32408
+ })();
32409
+ }
32410
+ },
32411
+ {
32412
+ key: "getWalletPendingRequests",
32413
+ value: function getWalletPendingRequests() {
32414
+ var _this = this;
32415
+ return _async_to_generator(function() {
32416
+ var cuiApiBaseUrl, path, data, error2;
32417
+ return _ts_generator(this, function(_state) {
32418
+ switch(_state.label){
32419
+ case 0:
32420
+ logDebug("Getting wallet pending requests", {
32421
+ adapter: "RestWalletService"
32422
+ });
32423
+ _state.label = 1;
32424
+ case 1:
32425
+ _state.trys.push([
32426
+ 1,
32427
+ 3,
32428
+ ,
32429
+ 4
32430
+ ]);
32431
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32432
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/pending-requests");
32433
+ return [
32434
+ 4,
32435
+ _this.httpClient.get(path)
32436
+ ];
32437
+ case 2:
32438
+ data = _state.sent();
32439
+ logInfo("Wallet pending requests retrieved successfully", {
32440
+ adapter: "RestWalletService"
32441
+ });
32442
+ return [
32443
+ 2,
32444
+ data
32445
+ ];
32446
+ case 3:
32447
+ error2 = _state.sent();
32448
+ logInfo("[ERROR] Unable to get wallet pending requests", {
32449
+ error: error2,
32450
+ adapter: "RestWalletService"
32451
+ });
32452
+ throw new MqSDKError("Unable to get wallet pending requests", error2);
32453
+ case 4:
32454
+ return [
32455
+ 2
32456
+ ];
32457
+ }
32458
+ });
32459
+ })();
32460
+ }
32461
+ },
32462
+ {
32463
+ key: "postWalletPendingRequest",
32464
+ value: function postWalletPendingRequest(digitalWalletToken, body) {
32465
+ var _this = this;
32466
+ return _async_to_generator(function() {
32467
+ var cuiApiBaseUrl, path, params, error2;
32468
+ return _ts_generator(this, function(_state) {
32469
+ switch(_state.label){
32470
+ case 0:
32471
+ logDebug("Posting wallet pending request decision", {
32472
+ digitalWalletToken: digitalWalletToken,
32473
+ adapter: "RestWalletService"
32474
+ });
32475
+ _state.label = 1;
32476
+ case 1:
32477
+ _state.trys.push([
32478
+ 1,
32479
+ 3,
32480
+ ,
32481
+ 4
32482
+ ]);
32483
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32484
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/pending-requests/").concat(digitalWalletToken);
32485
+ params = {
32486
+ body: JSON.stringify(body)
32487
+ };
32488
+ return [
32489
+ 4,
32490
+ _this.httpClient.post(path, params)
32491
+ ];
32492
+ case 2:
32493
+ _state.sent();
32494
+ logInfo("Wallet pending request decision posted successfully", {
32495
+ digitalWalletToken: digitalWalletToken,
32496
+ adapter: "RestWalletService"
32497
+ });
32498
+ return [
32499
+ 3,
32500
+ 4
32501
+ ];
32502
+ case 3:
32503
+ error2 = _state.sent();
32504
+ logInfo("[ERROR] Unable to post wallet pending request decision", {
32505
+ error: error2,
32506
+ digitalWalletToken: digitalWalletToken,
32507
+ adapter: "RestWalletService"
32508
+ });
32509
+ throw new MqSDKError("Unable to post wallet pending request decision", error2);
32510
+ case 4:
32511
+ return [
32512
+ 2
32513
+ ];
32514
+ }
32515
+ });
32516
+ })();
32517
+ }
32518
+ }
32519
+ ]);
32520
+ return _RestWalletService;
32521
+ }();
32522
+ __name(_RestWalletService, "RestWalletService");
32523
+ var RestWalletService = _RestWalletService;
32524
+ _ts_decorate85([
32525
+ _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
32526
+ _ts_metadata24("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
32527
+ ], RestWalletService.prototype, "httpClient", void 0);
32528
+ RestWalletService = exports.RestWalletService = _ts_decorate85([
32529
+ _inversify.injectable.call(void 0)
32530
+ ], RestWalletService);
32531
+ // src/wallet/base/services/iWalletService.ts
32532
+ function _ts_decorate86(decorators, target, key, desc) {
32533
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32534
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32535
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
32536
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32537
+ }
32538
+ __name(_ts_decorate86, "_ts_decorate");
32539
+ var _iWalletService = function _iWalletService() {
32540
+ _class_call_check(this, _iWalletService);
32541
+ };
32542
+ __name(_iWalletService, "iWalletService");
32543
+ var iWalletService = _iWalletService;
32544
+ iWalletService = exports.iWalletService = _ts_decorate86([
32545
+ _inversify.injectable.call(void 0)
32546
+ ], iWalletService);
32547
+ // src/wallet/ioc/symbols.ts
32548
+ var ITF_WALLET_SERVICE = Symbol.for("iWalletService");
32549
+ function getCardEligibility(request) {
32550
+ return _getCardEligibility.apply(this, arguments);
32551
+ }
32552
+ function _getCardEligibility() {
32553
+ _getCardEligibility = // src/wallet/base/interactors/getCardEligibility.ts
32554
+ _async_to_generator(function(request) {
32555
+ var container2, walletService, error2;
32556
+ return _ts_generator(this, function(_state) {
32557
+ switch(_state.label){
32558
+ case 0:
32559
+ logDebug("Get Card eligibility");
32560
+ _state.label = 1;
32561
+ case 1:
32562
+ _state.trys.push([
32563
+ 1,
32564
+ 3,
32565
+ ,
32566
+ 4
32567
+ ]);
32568
+ container2 = getActiveIocContainer();
32569
+ walletService = container2.get(ITF_WALLET_SERVICE);
32570
+ return [
32571
+ 4,
32572
+ walletService.getCardEligibility(request)
32573
+ ];
32574
+ case 2:
32575
+ return [
32576
+ 2,
32577
+ _state.sent()
32578
+ ];
32579
+ case 3:
32580
+ error2 = _state.sent();
32581
+ logInfo("[ERROR] Failed to get card eligibility", {
32582
+ error: error2,
32583
+ interactor: "getCardEligibility"
32584
+ });
32585
+ throw error2;
32586
+ case 4:
32587
+ return [
32588
+ 2
32589
+ ];
32590
+ }
32591
+ });
32592
+ });
32593
+ return _getCardEligibility.apply(this, arguments);
32594
+ }
32595
+ __name(getCardEligibility, "getCardEligibility");
32596
+ function getWalletPendingRequests() {
32597
+ return _getWalletPendingRequests.apply(this, arguments);
32598
+ }
32599
+ function _getWalletPendingRequests() {
32600
+ _getWalletPendingRequests = // src/wallet/base/interactors/getWalletPendingRequests.ts
32601
+ _async_to_generator(function() {
32602
+ var container2, walletService, result, error2;
32603
+ return _ts_generator(this, function(_state) {
32604
+ switch(_state.label){
32605
+ case 0:
32606
+ logDebug("Get wallet pending requests", {
32607
+ interactor: "getWalletPendingRequests"
32608
+ });
32609
+ _state.label = 1;
32610
+ case 1:
32611
+ _state.trys.push([
32612
+ 1,
32613
+ 3,
32614
+ ,
32615
+ 4
32616
+ ]);
32617
+ container2 = getActiveIocContainer();
32618
+ walletService = container2.get(ITF_WALLET_SERVICE);
32619
+ return [
32620
+ 4,
32621
+ walletService.getWalletPendingRequests()
32622
+ ];
32623
+ case 2:
32624
+ result = _state.sent();
32625
+ logInfo("Wallet pending requests retrieved successfully", {
32626
+ count: result.count,
32627
+ interactor: "getWalletPendingRequests"
32628
+ });
32629
+ return [
32630
+ 2,
32631
+ result
32632
+ ];
32633
+ case 3:
32634
+ error2 = _state.sent();
32635
+ logInfo("[ERROR] Failed to get wallet pending requests", {
32636
+ error: error2,
32637
+ interactor: "getWalletPendingRequests"
32638
+ });
32639
+ throw error2;
32640
+ case 4:
32641
+ return [
32642
+ 2
32643
+ ];
32644
+ }
32645
+ });
32646
+ });
32647
+ return _getWalletPendingRequests.apply(this, arguments);
32648
+ }
32649
+ __name(getWalletPendingRequests, "getWalletPendingRequests");
32650
+ function postProvisionWallet(request) {
32651
+ return _postProvisionWallet.apply(this, arguments);
32652
+ }
32653
+ function _postProvisionWallet() {
32654
+ _postProvisionWallet = // src/wallet/base/interactors/postProvisionWallet.ts
32655
+ _async_to_generator(function(request) {
32656
+ var container2, walletService, result, error2;
32657
+ return _ts_generator(this, function(_state) {
32658
+ switch(_state.label){
32659
+ case 0:
32660
+ logDebug("Requesting wallet provisioning", {
32661
+ interactor: "postProvisionWallet"
32662
+ });
32663
+ _state.label = 1;
32664
+ case 1:
32665
+ _state.trys.push([
32666
+ 1,
32667
+ 3,
32668
+ ,
32669
+ 4
32670
+ ]);
32671
+ container2 = getActiveIocContainer();
32672
+ walletService = container2.get(ITF_WALLET_SERVICE);
32673
+ return [
32674
+ 4,
32675
+ walletService.postRequestWalletProvisioning(request)
32676
+ ];
32677
+ case 2:
32678
+ result = _state.sent();
32679
+ logInfo("Wallet provisioning requested successfully", {
32680
+ interactor: "postProvisionWallet"
32681
+ });
32682
+ return [
32683
+ 2,
32684
+ result
32685
+ ];
32686
+ case 3:
32687
+ error2 = _state.sent();
32688
+ logInfo("[ERROR] Failed to request wallet provisioning", {
32689
+ error: error2,
32690
+ interactor: "postProvisionWallet"
32691
+ });
32692
+ throw error2;
32693
+ case 4:
32694
+ return [
32695
+ 2
32696
+ ];
32697
+ }
32698
+ });
32699
+ });
32700
+ return _postProvisionWallet.apply(this, arguments);
32701
+ }
32702
+ __name(postProvisionWallet, "postProvisionWallet");
32703
+ function postWalletPendingRequest(digitalWalletToken, body) {
32704
+ return _postWalletPendingRequest.apply(this, arguments);
32705
+ }
32706
+ function _postWalletPendingRequest() {
32707
+ _postWalletPendingRequest = // src/wallet/base/interactors/postWalletPendingRequest.ts
32708
+ _async_to_generator(function(digitalWalletToken, body) {
32709
+ var container2, walletService, error2;
32710
+ return _ts_generator(this, function(_state) {
32711
+ switch(_state.label){
32712
+ case 0:
32713
+ logDebug("Post wallet pending request", {
32714
+ interactor: "postWalletPendingRequest"
32715
+ });
32716
+ _state.label = 1;
32717
+ case 1:
32718
+ _state.trys.push([
32719
+ 1,
32720
+ 3,
32721
+ ,
32722
+ 4
32723
+ ]);
32724
+ container2 = getActiveIocContainer();
32725
+ walletService = container2.get(ITF_WALLET_SERVICE);
32726
+ return [
32727
+ 4,
32728
+ walletService.postWalletPendingRequest(digitalWalletToken, body)
32729
+ ];
32730
+ case 2:
32731
+ _state.sent();
32732
+ logInfo("Wallet pending request updated successfully", {
32733
+ interactor: "postWalletPendingRequest"
32734
+ });
32735
+ return [
32736
+ 3,
32737
+ 4
32738
+ ];
32739
+ case 3:
32740
+ error2 = _state.sent();
32741
+ logInfo("[ERROR] Failed to post wallet pending request", {
32742
+ error: error2,
32743
+ interactor: "postWalletPendingRequest"
32744
+ });
32745
+ throw error2;
32746
+ case 4:
32747
+ return [
32748
+ 2
32749
+ ];
32750
+ }
32751
+ });
32752
+ });
32753
+ return _postWalletPendingRequest.apply(this, arguments);
32754
+ }
32755
+ __name(postWalletPendingRequest, "postWalletPendingRequest");
32756
+ // src/wallet/base/types/ProvisionWalletRequest.ts
32757
+ var DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
32758
+ (function(DigitalWalletApplePayProvisionRequestDeviceTypeEnum2) {
32759
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["MobilePhone"] = "MOBILE_PHONE";
32760
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Watch"] = "WATCH";
32761
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Tablet"] = "TABLET";
32762
+ })(DigitalWalletApplePayProvisionRequestDeviceTypeEnum || (DigitalWalletApplePayProvisionRequestDeviceTypeEnum = exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = {}));
32763
+ // src/wallet/ioc/WalletIocModule.ts
32764
+ var walletIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
32765
+ bind(ITF_WALLET_SERVICE).to(RestWalletService).inSingletonScope();
32766
+ });
32767
+ // src/ioc/container.ts
32768
+ // src/ioc/loadBaseContainerModules.ts
32769
+ // src/analytics/ioc/analyticsIOCModule.ts
32770
+ var analyticsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
32771
+ bind(ITF_ANALYTICS_SERVICE).to(GaMeasurementAnalyticsService).inSingletonScope();
32772
+ bind(ITF_SESSION_SERVICE).to(VanillaSessionService).inSingletonScope();
32773
+ });
32774
+ // src/ioc/loadBaseContainerModules.ts
32775
+ function loadBaseContainerModules(container2) {
32776
+ container2.load(accountsIOCModule);
32777
+ container2.load(analyticsIOCModule);
32778
+ container2.load(authIOCModule);
32779
+ container2.load(cardsIOCModule);
32780
+ container2.load(commonIOCModule);
32781
+ container2.load(creditIOCModule);
32782
+ container2.load(envConfigIOCModule);
32783
+ container2.load(httpClientIOCModule);
32784
+ container2.load(statementsIOCModule);
32785
+ container2.load(themesIOCModule);
32786
+ container2.load(transactionsIOCModule);
32787
+ container2.load(moneyMovementIOCModule);
32788
+ container2.load(iconsIOCModule);
32789
+ container2.load(featureFlagsIOCModule);
32790
+ container2.load(usersIOCModule);
32791
+ container2.load(kycIOCModule);
32792
+ container2.load(kybIOCModule);
32793
+ container2.load(disputesIOCModule);
32794
+ container2.load(componentsIOCModule);
32795
+ container2.load(WlaIocModule);
32796
+ container2.load(walletIOCModule);
32797
+ container2.load(idpIOCModule);
32798
+ container2.load(loggingIOCModule);
32799
+ }
32800
+ __name(loadBaseContainerModules, "loadBaseContainerModules");
32801
+ // src/ioc/container.ts
32802
+ var container = new (0, _inversify.Container)();
32535
32803
  loadBaseContainerModules(container);
32536
32804
  // src/index.ts
32537
32805
  setActiveIocContainer(container);
@@ -32772,7 +33040,6 @@ exports.TransactionChallengeResponseCardNetworkEnum = TransactionChallengeRespon
32772
33040
  exports.TransactionChallengeResponseStateEnum = TransactionChallengeResponseStateEnum;
32773
33041
  exports.TransactionChallengeCancelReason = TransactionChallengeCancelReason;
32774
33042
  exports.TransactionChallengeAuthenticationMethod = TransactionChallengeAuthenticationMethod;
32775
- exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
32776
33043
  exports.RestWlaService = RestWlaService;
32777
33044
  exports.ITF_WLA_SERVICE = ITF_WLA_SERVICE;
32778
33045
  exports.bookTransfer = bookTransfer;
@@ -32816,8 +33083,6 @@ exports.getTransactionChallengeByToken = getTransactionChallengeByToken;
32816
33083
  exports.getNextTransactionChallenge = getNextTransactionChallenge;
32817
33084
  exports.postTransactionChallengeDecision = postTransactionChallengeDecision;
32818
33085
  exports.updateDevicePushNotificationsRegistration = updateDevicePushNotificationsRegistration;
32819
- exports.getCardEligibility = getCardEligibility;
32820
- exports.postProvisionWallet = postProvisionWallet;
32821
33086
  exports.WlaIocModule = WlaIocModule;
32822
33087
  exports.TEST_USER_TOKEN = TEST_USER_TOKEN;
32823
33088
  exports.TEST_DEPOSIT_ACCOUNT = TEST_DEPOSIT_ACCOUNT;
@@ -33062,6 +33327,15 @@ exports.TransactionDetailIconTypeEnum = TransactionDetailIconTypeEnum;
33062
33327
  exports.Direction = Direction;
33063
33328
  exports.transactionsIOCModule = transactionsIOCModule;
33064
33329
  exports.mswTransactionsHandlers = mswTransactionsHandlers;
33330
+ exports.RestWalletService = RestWalletService;
33331
+ exports.iWalletService = iWalletService;
33332
+ exports.ITF_WALLET_SERVICE = ITF_WALLET_SERVICE;
33333
+ exports.getCardEligibility = getCardEligibility;
33334
+ exports.getWalletPendingRequests = getWalletPendingRequests;
33335
+ exports.postProvisionWallet = postProvisionWallet;
33336
+ exports.postWalletPendingRequest = postWalletPendingRequest;
33337
+ exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
33338
+ exports.walletIOCModule = walletIOCModule;
33065
33339
  exports.loadBaseContainerModules = loadBaseContainerModules;
33066
33340
  exports.container = container; /*! Bundled license information:
33067
33341