@marqeta/ux-toolkit-sdk-javascript 2.38.0 → 2.40.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();
@@ -25495,6 +25270,9 @@ var mockInvalidKybEvaluationRequest = {
25495
25270
  };
25496
25271
  var mockKybEvaluationResponse = {
25497
25272
  status: "COMPLETE",
25273
+ formTitle: "",
25274
+ userInstructions: "",
25275
+ associated_flows: [],
25498
25276
  infoMessage: "KYB verification completed successfully"
25499
25277
  };
25500
25278
  var mockKybEvaluationRequest = {
@@ -25509,6 +25287,9 @@ var mockKybEvaluationRequest = {
25509
25287
  };
25510
25288
  var mockKybVerificationResponse = {
25511
25289
  status: KybEvaluationStatus.IN_PROGRESS,
25290
+ formTitle: "Company Details",
25291
+ userInstructions: "",
25292
+ associated_flows: [],
25512
25293
  schema: {
25513
25294
  properties: {
25514
25295
  "6603a3e6287d3100e9568837": {
@@ -26757,6 +26538,9 @@ var mswKybHandlers = [
26757
26538
  2,
26758
26539
  HttpResponse.json({
26759
26540
  status: "COMPLETE",
26541
+ formTitle: "",
26542
+ userInstructions: "",
26543
+ associated_flows: [],
26760
26544
  infoMessage: "KYB verification completed successfully"
26761
26545
  }, {
26762
26546
  status: 200
@@ -32497,42 +32281,538 @@ var mswTransactionsHandlers = [
32497
32281
  return HttpResponse.json(txnIcons_default);
32498
32282
  })
32499
32283
  ];
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);
32284
+ // src/wallet/adapters/rest/RestWalletService.ts
32285
+ function _ts_decorate85(decorators, target, key, desc) {
32286
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32287
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32288
+ 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;
32289
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32531
32290
  }
32532
- __name(loadBaseContainerModules, "loadBaseContainerModules");
32533
- // src/ioc/container.ts
32534
- var container = new (0, _inversify.Container)();
32535
- loadBaseContainerModules(container);
32291
+ __name(_ts_decorate85, "_ts_decorate");
32292
+ function _ts_metadata24(k, v) {
32293
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
32294
+ }
32295
+ __name(_ts_metadata24, "_ts_metadata");
32296
+ var _RestWalletService = /*#__PURE__*/ function() {
32297
+ function _RestWalletService() {
32298
+ _class_call_check(this, _RestWalletService);
32299
+ __publicField(this, "httpClient");
32300
+ }
32301
+ _create_class(_RestWalletService, [
32302
+ {
32303
+ key: "getCardEligibility",
32304
+ value: function getCardEligibility(request) {
32305
+ var _this = this;
32306
+ return _async_to_generator(function() {
32307
+ var cuiApiBaseUrl, path, error2;
32308
+ return _ts_generator(this, function(_state) {
32309
+ switch(_state.label){
32310
+ case 0:
32311
+ logDebug("Checking card eligibility", {
32312
+ cardToken: request.card_token,
32313
+ platform: request.platform,
32314
+ adapter: "RestWalletService"
32315
+ });
32316
+ _state.label = 1;
32317
+ case 1:
32318
+ _state.trys.push([
32319
+ 1,
32320
+ 3,
32321
+ ,
32322
+ 4
32323
+ ]);
32324
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32325
+ path = request.platform === "ios" ? "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/cards/").concat(request.card_token, "/eligibility") : "".concat(cuiApiBaseUrl, "/api/v1/wla/card/").concat(request.card_token, "/eligibility");
32326
+ return [
32327
+ 4,
32328
+ _this.httpClient.get(path)
32329
+ ];
32330
+ case 2:
32331
+ _state.sent();
32332
+ logInfo("Card is eligible", {
32333
+ cardToken: request.card_token,
32334
+ adapter: "RestWalletService"
32335
+ });
32336
+ return [
32337
+ 2,
32338
+ {
32339
+ eligible: true
32340
+ }
32341
+ ];
32342
+ case 3:
32343
+ error2 = _state.sent();
32344
+ logInfo("Card is not eligible", {
32345
+ error: error2,
32346
+ cardToken: request.card_token,
32347
+ adapter: "RestWalletService"
32348
+ });
32349
+ return [
32350
+ 2,
32351
+ {
32352
+ eligible: false
32353
+ }
32354
+ ];
32355
+ case 4:
32356
+ return [
32357
+ 2
32358
+ ];
32359
+ }
32360
+ });
32361
+ })();
32362
+ }
32363
+ },
32364
+ {
32365
+ key: "postRequestWalletProvisioning",
32366
+ value: function postRequestWalletProvisioning(request) {
32367
+ var _this = this;
32368
+ return _async_to_generator(function() {
32369
+ var cuiApiBaseUrl, platform, path, params, result, error2;
32370
+ return _ts_generator(this, function(_state) {
32371
+ switch(_state.label){
32372
+ case 0:
32373
+ logDebug("Requesting wallet provisioning", {
32374
+ platform: request.platform,
32375
+ adapter: "RestWalletService"
32376
+ });
32377
+ _state.label = 1;
32378
+ case 1:
32379
+ _state.trys.push([
32380
+ 1,
32381
+ 3,
32382
+ ,
32383
+ 4
32384
+ ]);
32385
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32386
+ platform = _nullishCoalesce(request.platform, function() {
32387
+ return "ios";
32388
+ });
32389
+ path = platform === "ios" ? "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/provision/").concat(platform) : "".concat(cuiApiBaseUrl, "/api/v1/wla/wallet/provision/").concat(platform);
32390
+ params = {
32391
+ body: JSON.stringify(request)
32392
+ };
32393
+ return [
32394
+ 4,
32395
+ _this.httpClient.post(path, params)
32396
+ ];
32397
+ case 2:
32398
+ result = _state.sent();
32399
+ logInfo("Wallet provisioning requested successfully", {
32400
+ platform: platform,
32401
+ adapter: "RestWalletService"
32402
+ });
32403
+ return [
32404
+ 2,
32405
+ result
32406
+ ];
32407
+ case 3:
32408
+ error2 = _state.sent();
32409
+ logInfo("[ERROR] Unable to request wallet provisioning", {
32410
+ error: error2,
32411
+ adapter: "RestWalletService"
32412
+ });
32413
+ throw new MqSDKError("Unable to request wallet provisioning", error2);
32414
+ case 4:
32415
+ return [
32416
+ 2
32417
+ ];
32418
+ }
32419
+ });
32420
+ })();
32421
+ }
32422
+ },
32423
+ {
32424
+ key: "getWalletPendingRequests",
32425
+ value: function getWalletPendingRequests() {
32426
+ var _this = this;
32427
+ return _async_to_generator(function() {
32428
+ var cuiApiBaseUrl, path, data, error2;
32429
+ return _ts_generator(this, function(_state) {
32430
+ switch(_state.label){
32431
+ case 0:
32432
+ logDebug("Getting wallet pending requests", {
32433
+ adapter: "RestWalletService"
32434
+ });
32435
+ _state.label = 1;
32436
+ case 1:
32437
+ _state.trys.push([
32438
+ 1,
32439
+ 3,
32440
+ ,
32441
+ 4
32442
+ ]);
32443
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32444
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/pending-requests");
32445
+ return [
32446
+ 4,
32447
+ _this.httpClient.get(path)
32448
+ ];
32449
+ case 2:
32450
+ data = _state.sent();
32451
+ logInfo("Wallet pending requests retrieved successfully", {
32452
+ adapter: "RestWalletService"
32453
+ });
32454
+ return [
32455
+ 2,
32456
+ data
32457
+ ];
32458
+ case 3:
32459
+ error2 = _state.sent();
32460
+ logInfo("[ERROR] Unable to get wallet pending requests", {
32461
+ error: error2,
32462
+ adapter: "RestWalletService"
32463
+ });
32464
+ throw new MqSDKError("Unable to get wallet pending requests", error2);
32465
+ case 4:
32466
+ return [
32467
+ 2
32468
+ ];
32469
+ }
32470
+ });
32471
+ })();
32472
+ }
32473
+ },
32474
+ {
32475
+ key: "postWalletPendingRequest",
32476
+ value: function postWalletPendingRequest(digitalWalletToken, body) {
32477
+ var _this = this;
32478
+ return _async_to_generator(function() {
32479
+ var cuiApiBaseUrl, path, params, error2;
32480
+ return _ts_generator(this, function(_state) {
32481
+ switch(_state.label){
32482
+ case 0:
32483
+ logDebug("Posting wallet pending request decision", {
32484
+ digitalWalletToken: digitalWalletToken,
32485
+ adapter: "RestWalletService"
32486
+ });
32487
+ _state.label = 1;
32488
+ case 1:
32489
+ _state.trys.push([
32490
+ 1,
32491
+ 3,
32492
+ ,
32493
+ 4
32494
+ ]);
32495
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
32496
+ path = "".concat(cuiApiBaseUrl, "/api/v2/user/wallet/pending-requests/").concat(digitalWalletToken);
32497
+ params = {
32498
+ body: JSON.stringify(body)
32499
+ };
32500
+ return [
32501
+ 4,
32502
+ _this.httpClient.post(path, params)
32503
+ ];
32504
+ case 2:
32505
+ _state.sent();
32506
+ logInfo("Wallet pending request decision posted successfully", {
32507
+ digitalWalletToken: digitalWalletToken,
32508
+ adapter: "RestWalletService"
32509
+ });
32510
+ return [
32511
+ 3,
32512
+ 4
32513
+ ];
32514
+ case 3:
32515
+ error2 = _state.sent();
32516
+ logInfo("[ERROR] Unable to post wallet pending request decision", {
32517
+ error: error2,
32518
+ digitalWalletToken: digitalWalletToken,
32519
+ adapter: "RestWalletService"
32520
+ });
32521
+ throw new MqSDKError("Unable to post wallet pending request decision", error2);
32522
+ case 4:
32523
+ return [
32524
+ 2
32525
+ ];
32526
+ }
32527
+ });
32528
+ })();
32529
+ }
32530
+ }
32531
+ ]);
32532
+ return _RestWalletService;
32533
+ }();
32534
+ __name(_RestWalletService, "RestWalletService");
32535
+ var RestWalletService = _RestWalletService;
32536
+ _ts_decorate85([
32537
+ _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
32538
+ _ts_metadata24("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
32539
+ ], RestWalletService.prototype, "httpClient", void 0);
32540
+ RestWalletService = exports.RestWalletService = _ts_decorate85([
32541
+ _inversify.injectable.call(void 0)
32542
+ ], RestWalletService);
32543
+ // src/wallet/base/services/iWalletService.ts
32544
+ function _ts_decorate86(decorators, target, key, desc) {
32545
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32546
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
32547
+ 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;
32548
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
32549
+ }
32550
+ __name(_ts_decorate86, "_ts_decorate");
32551
+ var _iWalletService = function _iWalletService() {
32552
+ _class_call_check(this, _iWalletService);
32553
+ };
32554
+ __name(_iWalletService, "iWalletService");
32555
+ var iWalletService = _iWalletService;
32556
+ iWalletService = exports.iWalletService = _ts_decorate86([
32557
+ _inversify.injectable.call(void 0)
32558
+ ], iWalletService);
32559
+ // src/wallet/ioc/symbols.ts
32560
+ var ITF_WALLET_SERVICE = Symbol.for("iWalletService");
32561
+ function getCardEligibility(request) {
32562
+ return _getCardEligibility.apply(this, arguments);
32563
+ }
32564
+ function _getCardEligibility() {
32565
+ _getCardEligibility = // src/wallet/base/interactors/getCardEligibility.ts
32566
+ _async_to_generator(function(request) {
32567
+ var container2, walletService, error2;
32568
+ return _ts_generator(this, function(_state) {
32569
+ switch(_state.label){
32570
+ case 0:
32571
+ logDebug("Get Card eligibility");
32572
+ _state.label = 1;
32573
+ case 1:
32574
+ _state.trys.push([
32575
+ 1,
32576
+ 3,
32577
+ ,
32578
+ 4
32579
+ ]);
32580
+ container2 = getActiveIocContainer();
32581
+ walletService = container2.get(ITF_WALLET_SERVICE);
32582
+ return [
32583
+ 4,
32584
+ walletService.getCardEligibility(request)
32585
+ ];
32586
+ case 2:
32587
+ return [
32588
+ 2,
32589
+ _state.sent()
32590
+ ];
32591
+ case 3:
32592
+ error2 = _state.sent();
32593
+ logInfo("[ERROR] Failed to get card eligibility", {
32594
+ error: error2,
32595
+ interactor: "getCardEligibility"
32596
+ });
32597
+ throw error2;
32598
+ case 4:
32599
+ return [
32600
+ 2
32601
+ ];
32602
+ }
32603
+ });
32604
+ });
32605
+ return _getCardEligibility.apply(this, arguments);
32606
+ }
32607
+ __name(getCardEligibility, "getCardEligibility");
32608
+ function getWalletPendingRequests() {
32609
+ return _getWalletPendingRequests.apply(this, arguments);
32610
+ }
32611
+ function _getWalletPendingRequests() {
32612
+ _getWalletPendingRequests = // src/wallet/base/interactors/getWalletPendingRequests.ts
32613
+ _async_to_generator(function() {
32614
+ var container2, walletService, result, error2;
32615
+ return _ts_generator(this, function(_state) {
32616
+ switch(_state.label){
32617
+ case 0:
32618
+ logDebug("Get wallet pending requests", {
32619
+ interactor: "getWalletPendingRequests"
32620
+ });
32621
+ _state.label = 1;
32622
+ case 1:
32623
+ _state.trys.push([
32624
+ 1,
32625
+ 3,
32626
+ ,
32627
+ 4
32628
+ ]);
32629
+ container2 = getActiveIocContainer();
32630
+ walletService = container2.get(ITF_WALLET_SERVICE);
32631
+ return [
32632
+ 4,
32633
+ walletService.getWalletPendingRequests()
32634
+ ];
32635
+ case 2:
32636
+ result = _state.sent();
32637
+ logInfo("Wallet pending requests retrieved successfully", {
32638
+ count: result.count,
32639
+ interactor: "getWalletPendingRequests"
32640
+ });
32641
+ return [
32642
+ 2,
32643
+ result
32644
+ ];
32645
+ case 3:
32646
+ error2 = _state.sent();
32647
+ logInfo("[ERROR] Failed to get wallet pending requests", {
32648
+ error: error2,
32649
+ interactor: "getWalletPendingRequests"
32650
+ });
32651
+ throw error2;
32652
+ case 4:
32653
+ return [
32654
+ 2
32655
+ ];
32656
+ }
32657
+ });
32658
+ });
32659
+ return _getWalletPendingRequests.apply(this, arguments);
32660
+ }
32661
+ __name(getWalletPendingRequests, "getWalletPendingRequests");
32662
+ function postProvisionWallet(request) {
32663
+ return _postProvisionWallet.apply(this, arguments);
32664
+ }
32665
+ function _postProvisionWallet() {
32666
+ _postProvisionWallet = // src/wallet/base/interactors/postProvisionWallet.ts
32667
+ _async_to_generator(function(request) {
32668
+ var container2, walletService, result, error2;
32669
+ return _ts_generator(this, function(_state) {
32670
+ switch(_state.label){
32671
+ case 0:
32672
+ logDebug("Requesting wallet provisioning", {
32673
+ interactor: "postProvisionWallet"
32674
+ });
32675
+ _state.label = 1;
32676
+ case 1:
32677
+ _state.trys.push([
32678
+ 1,
32679
+ 3,
32680
+ ,
32681
+ 4
32682
+ ]);
32683
+ container2 = getActiveIocContainer();
32684
+ walletService = container2.get(ITF_WALLET_SERVICE);
32685
+ return [
32686
+ 4,
32687
+ walletService.postRequestWalletProvisioning(request)
32688
+ ];
32689
+ case 2:
32690
+ result = _state.sent();
32691
+ logInfo("Wallet provisioning requested successfully", {
32692
+ interactor: "postProvisionWallet"
32693
+ });
32694
+ return [
32695
+ 2,
32696
+ result
32697
+ ];
32698
+ case 3:
32699
+ error2 = _state.sent();
32700
+ logInfo("[ERROR] Failed to request wallet provisioning", {
32701
+ error: error2,
32702
+ interactor: "postProvisionWallet"
32703
+ });
32704
+ throw error2;
32705
+ case 4:
32706
+ return [
32707
+ 2
32708
+ ];
32709
+ }
32710
+ });
32711
+ });
32712
+ return _postProvisionWallet.apply(this, arguments);
32713
+ }
32714
+ __name(postProvisionWallet, "postProvisionWallet");
32715
+ function postWalletPendingRequest(digitalWalletToken, body) {
32716
+ return _postWalletPendingRequest.apply(this, arguments);
32717
+ }
32718
+ function _postWalletPendingRequest() {
32719
+ _postWalletPendingRequest = // src/wallet/base/interactors/postWalletPendingRequest.ts
32720
+ _async_to_generator(function(digitalWalletToken, body) {
32721
+ var container2, walletService, error2;
32722
+ return _ts_generator(this, function(_state) {
32723
+ switch(_state.label){
32724
+ case 0:
32725
+ logDebug("Post wallet pending request", {
32726
+ interactor: "postWalletPendingRequest"
32727
+ });
32728
+ _state.label = 1;
32729
+ case 1:
32730
+ _state.trys.push([
32731
+ 1,
32732
+ 3,
32733
+ ,
32734
+ 4
32735
+ ]);
32736
+ container2 = getActiveIocContainer();
32737
+ walletService = container2.get(ITF_WALLET_SERVICE);
32738
+ return [
32739
+ 4,
32740
+ walletService.postWalletPendingRequest(digitalWalletToken, body)
32741
+ ];
32742
+ case 2:
32743
+ _state.sent();
32744
+ logInfo("Wallet pending request updated successfully", {
32745
+ interactor: "postWalletPendingRequest"
32746
+ });
32747
+ return [
32748
+ 3,
32749
+ 4
32750
+ ];
32751
+ case 3:
32752
+ error2 = _state.sent();
32753
+ logInfo("[ERROR] Failed to post wallet pending request", {
32754
+ error: error2,
32755
+ interactor: "postWalletPendingRequest"
32756
+ });
32757
+ throw error2;
32758
+ case 4:
32759
+ return [
32760
+ 2
32761
+ ];
32762
+ }
32763
+ });
32764
+ });
32765
+ return _postWalletPendingRequest.apply(this, arguments);
32766
+ }
32767
+ __name(postWalletPendingRequest, "postWalletPendingRequest");
32768
+ // src/wallet/base/types/ProvisionWalletRequest.ts
32769
+ var DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
32770
+ (function(DigitalWalletApplePayProvisionRequestDeviceTypeEnum2) {
32771
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["MobilePhone"] = "MOBILE_PHONE";
32772
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Watch"] = "WATCH";
32773
+ DigitalWalletApplePayProvisionRequestDeviceTypeEnum2["Tablet"] = "TABLET";
32774
+ })(DigitalWalletApplePayProvisionRequestDeviceTypeEnum || (DigitalWalletApplePayProvisionRequestDeviceTypeEnum = exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = {}));
32775
+ // src/wallet/ioc/WalletIocModule.ts
32776
+ var walletIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
32777
+ bind(ITF_WALLET_SERVICE).to(RestWalletService).inSingletonScope();
32778
+ });
32779
+ // src/ioc/container.ts
32780
+ // src/ioc/loadBaseContainerModules.ts
32781
+ // src/analytics/ioc/analyticsIOCModule.ts
32782
+ var analyticsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
32783
+ bind(ITF_ANALYTICS_SERVICE).to(GaMeasurementAnalyticsService).inSingletonScope();
32784
+ bind(ITF_SESSION_SERVICE).to(VanillaSessionService).inSingletonScope();
32785
+ });
32786
+ // src/ioc/loadBaseContainerModules.ts
32787
+ function loadBaseContainerModules(container2) {
32788
+ container2.load(accountsIOCModule);
32789
+ container2.load(analyticsIOCModule);
32790
+ container2.load(authIOCModule);
32791
+ container2.load(cardsIOCModule);
32792
+ container2.load(commonIOCModule);
32793
+ container2.load(creditIOCModule);
32794
+ container2.load(envConfigIOCModule);
32795
+ container2.load(httpClientIOCModule);
32796
+ container2.load(statementsIOCModule);
32797
+ container2.load(themesIOCModule);
32798
+ container2.load(transactionsIOCModule);
32799
+ container2.load(moneyMovementIOCModule);
32800
+ container2.load(iconsIOCModule);
32801
+ container2.load(featureFlagsIOCModule);
32802
+ container2.load(usersIOCModule);
32803
+ container2.load(kycIOCModule);
32804
+ container2.load(kybIOCModule);
32805
+ container2.load(disputesIOCModule);
32806
+ container2.load(componentsIOCModule);
32807
+ container2.load(WlaIocModule);
32808
+ container2.load(walletIOCModule);
32809
+ container2.load(idpIOCModule);
32810
+ container2.load(loggingIOCModule);
32811
+ }
32812
+ __name(loadBaseContainerModules, "loadBaseContainerModules");
32813
+ // src/ioc/container.ts
32814
+ var container = new (0, _inversify.Container)();
32815
+ loadBaseContainerModules(container);
32536
32816
  // src/index.ts
32537
32817
  setActiveIocContainer(container);
32538
32818
  exports.__name = __name;
@@ -32772,7 +33052,6 @@ exports.TransactionChallengeResponseCardNetworkEnum = TransactionChallengeRespon
32772
33052
  exports.TransactionChallengeResponseStateEnum = TransactionChallengeResponseStateEnum;
32773
33053
  exports.TransactionChallengeCancelReason = TransactionChallengeCancelReason;
32774
33054
  exports.TransactionChallengeAuthenticationMethod = TransactionChallengeAuthenticationMethod;
32775
- exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
32776
33055
  exports.RestWlaService = RestWlaService;
32777
33056
  exports.ITF_WLA_SERVICE = ITF_WLA_SERVICE;
32778
33057
  exports.bookTransfer = bookTransfer;
@@ -32816,8 +33095,6 @@ exports.getTransactionChallengeByToken = getTransactionChallengeByToken;
32816
33095
  exports.getNextTransactionChallenge = getNextTransactionChallenge;
32817
33096
  exports.postTransactionChallengeDecision = postTransactionChallengeDecision;
32818
33097
  exports.updateDevicePushNotificationsRegistration = updateDevicePushNotificationsRegistration;
32819
- exports.getCardEligibility = getCardEligibility;
32820
- exports.postProvisionWallet = postProvisionWallet;
32821
33098
  exports.WlaIocModule = WlaIocModule;
32822
33099
  exports.TEST_USER_TOKEN = TEST_USER_TOKEN;
32823
33100
  exports.TEST_DEPOSIT_ACCOUNT = TEST_DEPOSIT_ACCOUNT;
@@ -33062,6 +33339,15 @@ exports.TransactionDetailIconTypeEnum = TransactionDetailIconTypeEnum;
33062
33339
  exports.Direction = Direction;
33063
33340
  exports.transactionsIOCModule = transactionsIOCModule;
33064
33341
  exports.mswTransactionsHandlers = mswTransactionsHandlers;
33342
+ exports.RestWalletService = RestWalletService;
33343
+ exports.iWalletService = iWalletService;
33344
+ exports.ITF_WALLET_SERVICE = ITF_WALLET_SERVICE;
33345
+ exports.getCardEligibility = getCardEligibility;
33346
+ exports.getWalletPendingRequests = getWalletPendingRequests;
33347
+ exports.postProvisionWallet = postProvisionWallet;
33348
+ exports.postWalletPendingRequest = postWalletPendingRequest;
33349
+ exports.DigitalWalletApplePayProvisionRequestDeviceTypeEnum = DigitalWalletApplePayProvisionRequestDeviceTypeEnum;
33350
+ exports.walletIOCModule = walletIOCModule;
33065
33351
  exports.loadBaseContainerModules = loadBaseContainerModules;
33066
33352
  exports.container = container; /*! Bundled license information:
33067
33353