ggez-banking-sdk 0.1.81 → 0.1.87
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/api/clients/account.d.ts +19 -0
- package/dist/api/clients/account.js +31 -0
- package/dist/api/clients/auth.d.ts +32 -0
- package/dist/api/clients/auth.js +55 -0
- package/dist/api/clients/blockchain.d.ts +31 -0
- package/dist/api/clients/blockchain.js +54 -0
- package/dist/api/clients/index.d.ts +10 -0
- package/dist/api/clients/index.js +10 -0
- package/dist/api/clients/ipAddressAndLocation.d.ts +13 -0
- package/dist/api/clients/ipAddressAndLocation.js +24 -0
- package/dist/api/clients/limited.d.ts +55 -0
- package/dist/api/clients/limited.js +94 -0
- package/dist/api/clients/order.d.ts +13 -0
- package/dist/api/clients/order.js +24 -0
- package/dist/api/clients/organization.d.ts +33 -0
- package/dist/api/clients/organization.js +58 -0
- package/dist/api/clients/promotion.d.ts +25 -0
- package/dist/api/clients/promotion.js +42 -0
- package/dist/api/clients/transaction.d.ts +19 -0
- package/dist/api/clients/transaction.js +35 -0
- package/dist/api/clients/user.d.ts +453 -0
- package/dist/api/clients/user.js +748 -0
- package/dist/api/data/auth.d.ts +8 -0
- package/dist/api/data/auth.js +48 -0
- package/dist/api/data/blockchain.d.ts +7 -0
- package/dist/api/data/blockchain.js +37 -0
- package/dist/api/data/index.d.ts +7 -0
- package/dist/api/data/index.js +7 -0
- package/dist/api/data/limited.d.ts +5 -0
- package/dist/api/data/limited.js +30 -0
- package/dist/api/data/order.d.ts +4 -0
- package/dist/api/data/order.js +43 -0
- package/dist/api/data/organization.d.ts +6 -0
- package/dist/api/data/organization.js +83 -0
- package/dist/api/data/transaction.d.ts +5 -0
- package/dist/api/data/transaction.js +35 -0
- package/dist/api/data/user/activity.d.ts +0 -0
- package/dist/api/data/user/activity.js +0 -0
- package/dist/api/data/user/address.d.ts +6 -0
- package/dist/api/data/user/address.js +47 -0
- package/dist/api/data/user/auth.d.ts +5 -0
- package/dist/api/data/user/auth.js +32 -0
- package/dist/api/data/user/bankAccount.d.ts +6 -0
- package/dist/api/data/user/bankAccount.js +65 -0
- package/dist/api/data/user/device.d.ts +9 -0
- package/dist/api/data/user/device.js +79 -0
- package/dist/api/data/user/document.d.ts +4 -0
- package/dist/api/data/user/document.js +30 -0
- package/dist/api/data/user/email.d.ts +11 -0
- package/dist/api/data/user/email.js +92 -0
- package/dist/api/data/user/identification.d.ts +5 -0
- package/dist/api/data/user/identification.js +37 -0
- package/dist/api/data/user/index.d.ts +18 -0
- package/dist/api/data/user/index.js +171 -0
- package/dist/api/data/user/personalInfo.d.ts +3 -0
- package/dist/api/data/user/personalInfo.js +12 -0
- package/dist/api/data/user/phone.d.ts +11 -0
- package/dist/api/data/user/phone.js +95 -0
- package/dist/api/data/user/preferences.d.ts +3 -0
- package/dist/api/data/user/preferences.js +12 -0
- package/dist/api/data/user/security.d.ts +7 -0
- package/dist/api/data/user/security.js +76 -0
- package/dist/api/data/user/ticket.d.ts +3 -0
- package/dist/api/data/user/ticket.js +29 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/services/account.d.ts +10 -0
- package/dist/api/services/account.js +29 -0
- package/dist/api/services/auth.d.ts +12 -0
- package/dist/api/services/auth.js +20 -0
- package/dist/api/services/base.d.ts +12 -0
- package/dist/api/services/base.js +61 -0
- package/dist/api/services/blockchain.d.ts +12 -0
- package/dist/api/services/blockchain.js +30 -0
- package/dist/api/services/index.d.ts +15 -0
- package/dist/api/services/index.js +15 -0
- package/dist/api/services/ipAddressAndLocation.d.ts +8 -0
- package/dist/api/services/ipAddressAndLocation.js +18 -0
- package/dist/api/services/limited.d.ts +14 -0
- package/dist/api/services/limited.js +43 -0
- package/dist/api/services/order.d.ts +9 -0
- package/dist/api/services/order.js +24 -0
- package/dist/api/services/organization.d.ts +13 -0
- package/dist/api/services/organization.js +43 -0
- package/dist/api/services/promotion.d.ts +13 -0
- package/dist/api/services/promotion.js +24 -0
- package/dist/api/services/transaction.d.ts +10 -0
- package/dist/api/services/transaction.js +31 -0
- package/dist/api/services/user.d.ts +72 -0
- package/dist/api/services/user.js +341 -0
- package/dist/constants/constants.d.ts +89 -0
- package/dist/constants/constants.js +89 -0
- package/dist/{bank-system/constants → constants}/enum.d.ts +880 -739
- package/dist/{bank-system/constants → constants}/enum.js +1312 -1164
- package/dist/constants/index.js +3 -0
- package/dist/constants/structure.d.ts +79 -0
- package/dist/{bank-system/constants → constants}/structure.js +13 -11
- package/dist/{bank-system/content → content}/accountCurrencies.js +1 -3
- package/dist/{bank-system/content → content}/countries.js +1 -3
- package/dist/{bank-system/content → content}/currencies.js +1 -3
- package/dist/content/index.js +4 -0
- package/dist/{bank-system/content → content}/state.js +1 -3
- package/dist/helper/api/axiosHelper.d.ts +11 -0
- package/dist/helper/api/axiosHelper.js +79 -0
- package/dist/helper/api/index.d.ts +2 -0
- package/dist/helper/api/index.js +2 -0
- package/dist/helper/api/responseHelper.d.ts +16 -0
- package/dist/helper/api/responseHelper.js +30 -0
- package/dist/helper/clientHelper.d.ts +11 -0
- package/dist/helper/clientHelper.js +26 -0
- package/dist/helper/dateTimeHelper.d.ts +8 -0
- package/dist/helper/dateTimeHelper.js +23 -0
- package/dist/helper/deviceHelper.d.ts +6 -0
- package/dist/helper/deviceHelper.js +37 -0
- package/dist/helper/geoHelper.d.ts +11 -0
- package/dist/helper/geoHelper.js +47 -0
- package/dist/helper/index.d.ts +6 -0
- package/dist/helper/index.js +6 -0
- package/dist/helper/userHelper.d.ts +10 -0
- package/dist/{bank-system/helper/index.js → helper/userHelper.js} +52 -165
- package/dist/index.d.ts +6 -8
- package/dist/index.js +5 -66
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api/client/account.d.ts +8 -0
- package/dist/types/api/client/account.js +1 -0
- package/dist/types/api/client/auth.d.ts +8 -0
- package/dist/types/api/client/auth.js +1 -0
- package/dist/types/api/client/blockchain.d.ts +8 -0
- package/dist/types/api/client/blockchain.js +1 -0
- package/dist/types/api/client/index.d.ts +10 -0
- package/dist/types/api/client/index.js +1 -0
- package/dist/types/api/client/ipAddressAndLocation.d.ts +8 -0
- package/dist/types/api/client/ipAddressAndLocation.js +1 -0
- package/dist/types/api/client/limited.d.ts +8 -0
- package/dist/types/api/client/limited.js +1 -0
- package/dist/types/api/client/order.d.ts +8 -0
- package/dist/types/api/client/order.js +1 -0
- package/dist/types/api/client/organization.d.ts +9 -0
- package/dist/types/api/client/organization.js +1 -0
- package/dist/types/api/client/promotion.d.ts +7 -0
- package/dist/types/api/client/promotion.js +1 -0
- package/dist/types/api/client/transaction.d.ts +8 -0
- package/dist/types/api/client/transaction.js +1 -0
- package/dist/types/api/client/user.d.ts +9 -0
- package/dist/types/api/client/user.js +1 -0
- package/dist/types/api/data/account.d.ts +7 -0
- package/dist/types/api/data/account.js +1 -0
- package/dist/types/api/data/auth.d.ts +19 -0
- package/dist/types/api/data/auth.js +1 -0
- package/dist/types/api/data/blockchain.d.ts +60 -0
- package/dist/types/api/data/blockchain.js +1 -0
- package/dist/types/api/data/index.d.ts +9 -0
- package/dist/types/api/data/index.js +1 -0
- package/dist/types/api/data/limited.d.ts +16 -0
- package/dist/types/api/data/limited.js +1 -0
- package/dist/types/api/data/order.d.ts +10 -0
- package/dist/types/api/data/order.js +1 -0
- package/dist/types/api/data/organization.d.ts +37 -0
- package/dist/types/api/data/organization.js +1 -0
- package/dist/types/api/data/transaction.d.ts +22 -0
- package/dist/types/api/data/transaction.js +1 -0
- package/dist/types/api/data/user/address.d.ts +21 -0
- package/dist/types/api/data/user/address.js +1 -0
- package/dist/types/api/data/user/auth.d.ts +8 -0
- package/dist/types/api/data/user/auth.js +1 -0
- package/dist/types/api/data/user/bankAccount.d.ts +32 -0
- package/dist/types/api/data/user/bankAccount.js +1 -0
- package/dist/types/api/data/user/device.d.ts +30 -0
- package/dist/types/api/data/user/device.js +1 -0
- package/dist/types/api/data/user/document.d.ts +17 -0
- package/dist/types/api/data/user/document.js +1 -0
- package/dist/types/api/data/user/email.d.ts +28 -0
- package/dist/types/api/data/user/email.js +1 -0
- package/dist/types/api/data/user/identification.d.ts +17 -0
- package/dist/types/api/data/user/identification.js +1 -0
- package/dist/types/api/data/user/index.d.ts +42 -0
- package/dist/types/api/data/user/index.js +1 -0
- package/dist/types/api/data/user/personalInfo.d.ts +9 -0
- package/dist/types/api/data/user/personalInfo.js +1 -0
- package/dist/types/api/data/user/phone.d.ts +30 -0
- package/dist/types/api/data/user/phone.js +1 -0
- package/dist/types/api/data/user/preferences.d.ts +7 -0
- package/dist/types/api/data/user/preferences.js +1 -0
- package/dist/types/api/data/user/security.d.ts +26 -0
- package/dist/types/api/data/user/security.js +1 -0
- package/dist/types/api/data/user/ticket.d.ts +9 -0
- package/dist/types/api/data/user/ticket.js +1 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/index.js +2 -0
- package/dist/types/banking/account/accountStatementData.d.ts +7 -0
- package/dist/types/banking/account/accountStatementData.js +1 -0
- package/dist/types/banking/account/accountdata.d.ts +19 -0
- package/dist/types/banking/account/accountdata.js +1 -0
- package/dist/types/banking/account/accountstatementdetails.d.ts +18 -0
- package/dist/types/banking/account/accountstatementdetails.js +1 -0
- package/dist/types/banking/account/accountstatementinfo.d.ts +12 -0
- package/dist/types/banking/account/accountstatementinfo.js +1 -0
- package/dist/types/banking/account/accountstatementtransaction.d.ts +15 -0
- package/dist/types/banking/account/accountstatementtransaction.js +1 -0
- package/dist/types/banking/account/chaindata/chaindata.d.ts +8 -0
- package/dist/types/banking/account/chaindata/chaindata.js +1 -0
- package/dist/types/banking/account/chaindata/index.d.ts +1 -0
- package/dist/types/banking/account/chaindata/index.js +1 -0
- package/dist/types/banking/account/creditlimit.d.ts +14 -0
- package/dist/types/banking/account/creditlimit.js +1 -0
- package/dist/types/banking/account/fulfilment.d.ts +17 -0
- package/dist/types/banking/account/fulfilment.js +1 -0
- package/dist/types/banking/account/index.d.ts +13 -0
- package/dist/types/banking/account/index.js +1 -0
- package/dist/types/banking/account/info.d.ts +32 -0
- package/dist/types/banking/account/info.js +1 -0
- package/dist/types/banking/account/limits/dailylimit.d.ts +19 -0
- package/dist/types/banking/account/limits/dailylimit.js +1 -0
- package/dist/types/banking/account/limits/deposit.d.ts +14 -0
- package/dist/types/banking/account/limits/deposit.js +1 -0
- package/dist/types/banking/account/limits/depositinterchange.d.ts +7 -0
- package/dist/types/banking/account/limits/depositinterchange.js +1 -0
- package/dist/types/banking/account/limits/depositmonthly.d.ts +8 -0
- package/dist/types/banking/account/limits/depositmonthly.js +1 -0
- package/dist/types/banking/account/limits/depositpaymentgateway.d.ts +7 -0
- package/dist/types/banking/account/limits/depositpaymentgateway.js +1 -0
- package/dist/types/banking/account/limits/deposityearly.d.ts +8 -0
- package/dist/types/banking/account/limits/deposityearly.js +1 -0
- package/dist/types/banking/account/limits/globaldailylimit.d.ts +11 -0
- package/dist/types/banking/account/limits/globaldailylimit.js +1 -0
- package/dist/types/banking/account/limits/index.d.ts +17 -0
- package/dist/types/banking/account/limits/index.js +1 -0
- package/dist/types/banking/account/limits/limits.d.ts +13 -0
- package/dist/types/banking/account/limits/limits.js +1 -0
- package/dist/types/banking/account/limits/monthlylimit.d.ts +7 -0
- package/dist/types/banking/account/limits/monthlylimit.js +1 -0
- package/dist/types/banking/account/limits/transferreceiving.d.ts +9 -0
- package/dist/types/banking/account/limits/transferreceiving.js +1 -0
- package/dist/types/banking/account/limits/transfersending.d.ts +9 -0
- package/dist/types/banking/account/limits/transfersending.js +1 -0
- package/dist/types/banking/account/limits/withdraw.d.ts +18 -0
- package/dist/types/banking/account/limits/withdraw.js +1 -0
- package/dist/types/banking/account/limits/withdrawinterchange.d.ts +7 -0
- package/dist/types/banking/account/limits/withdrawinterchange.js +1 -0
- package/dist/types/banking/account/limits/withdrawmonthly.d.ts +8 -0
- package/dist/types/banking/account/limits/withdrawmonthly.js +1 -0
- package/dist/types/banking/account/limits/withdraworder.d.ts +7 -0
- package/dist/types/banking/account/limits/withdraworder.js +1 -0
- package/dist/types/banking/account/limits/withdrawpurchaseinterchange.d.ts +7 -0
- package/dist/types/banking/account/limits/withdrawpurchaseinterchange.js +1 -0
- package/dist/types/banking/account/limits/yearlylimit.d.ts +8 -0
- package/dist/types/banking/account/limits/yearlylimit.js +1 -0
- package/dist/types/banking/account/options/bulkshipping.d.ts +11 -0
- package/dist/types/banking/account/options/bulkshipping.js +1 -0
- package/dist/types/banking/account/options/carddetails.d.ts +8 -0
- package/dist/types/banking/account/options/carddetails.js +1 -0
- package/dist/types/banking/account/options/cardproduction.d.ts +23 -0
- package/dist/types/banking/account/options/cardproduction.js +1 -0
- package/dist/types/banking/account/options/courier.d.ts +6 -0
- package/dist/types/banking/account/options/courier.js +1 -0
- package/dist/types/banking/account/options/fulfilment.d.ts +8 -0
- package/dist/types/banking/account/options/fulfilment.js +1 -0
- package/dist/types/banking/account/options/fulfilmentdetails.d.ts +7 -0
- package/dist/types/banking/account/options/fulfilmentdetails.js +1 -0
- package/dist/types/banking/account/options/fulfilmentinfo.d.ts +24 -0
- package/dist/types/banking/account/options/fulfilmentinfo.js +1 -0
- package/dist/types/banking/account/options/index.d.ts +9 -0
- package/dist/types/banking/account/options/index.js +1 -0
- package/dist/types/banking/account/options/options.d.ts +6 -0
- package/dist/types/banking/account/options/options.js +1 -0
- package/dist/types/banking/account/options/security.d.ts +4 -0
- package/dist/types/banking/account/options/security.js +1 -0
- package/dist/types/banking/account/security.d.ts +7 -0
- package/dist/types/banking/account/security.js +1 -0
- package/dist/types/banking/account/tokenization/index.d.ts +4 -0
- package/dist/types/banking/account/tokenization/index.js +1 -0
- package/dist/types/banking/account/tokenization/provision.d.ts +35 -0
- package/dist/types/banking/account/tokenization/provision.js +1 -0
- package/dist/types/banking/account/tokenization/provisionrequest.d.ts +9 -0
- package/dist/types/banking/account/tokenization/provisionrequest.js +1 -0
- package/dist/types/banking/account/tokenization/provisionresponse.d.ts +6 -0
- package/dist/types/banking/account/tokenization/provisionresponse.js +1 -0
- package/dist/types/banking/account/tokenization/tokenization.d.ts +16 -0
- package/dist/types/banking/account/tokenization/tokenization.js +1 -0
- package/dist/types/banking/blockchain/blockchainData.d.ts +8 -0
- package/dist/types/banking/blockchain/blockchainData.js +1 -0
- package/dist/types/banking/blockchain/chainTransactionData.d.ts +8 -0
- package/dist/types/banking/blockchain/chainTransactionData.js +1 -0
- package/dist/types/banking/blockchain/coin.d.ts +5 -0
- package/dist/types/banking/blockchain/coin.js +1 -0
- package/dist/types/banking/blockchain/delegateData.d.ts +3 -0
- package/dist/types/banking/blockchain/delegateData.js +1 -0
- package/dist/types/banking/blockchain/delegationData.d.ts +6 -0
- package/dist/types/banking/blockchain/delegationData.js +1 -0
- package/dist/types/banking/blockchain/index.d.ts +9 -0
- package/dist/types/banking/blockchain/index.js +1 -0
- package/dist/types/banking/blockchain/info.d.ts +16 -0
- package/dist/types/banking/blockchain/info.js +1 -0
- package/dist/types/banking/blockchain/multiSendData.d.ts +6 -0
- package/dist/types/banking/blockchain/multiSendData.js +1 -0
- package/dist/types/banking/blockchain/sendData.d.ts +6 -0
- package/dist/types/banking/blockchain/sendData.js +1 -0
- package/dist/types/banking/blockchain/undelegateData.d.ts +3 -0
- package/dist/types/banking/blockchain/undelegateData.js +1 -0
- package/dist/types/banking/common/archive.d.ts +7 -0
- package/dist/types/banking/common/archive.js +1 -0
- package/dist/types/banking/common/authentication.d.ts +5 -0
- package/dist/types/banking/common/authentication.js +1 -0
- package/dist/types/banking/common/bankextendeddata.d.ts +10 -0
- package/dist/types/banking/common/bankextendeddata.js +1 -0
- package/dist/types/banking/common/baseresult.d.ts +13 -0
- package/dist/types/banking/common/baseresult.js +1 -0
- package/dist/types/banking/common/beneficiaryaddress.d.ts +9 -0
- package/dist/types/banking/common/beneficiaryaddress.js +1 -0
- package/dist/types/banking/common/classification.d.ts +9 -0
- package/dist/types/banking/common/classification.js +1 -0
- package/dist/types/banking/common/contentfile.d.ts +6 -0
- package/dist/types/banking/common/contentfile.js +1 -0
- package/dist/types/banking/common/cryptoaddressextendeddata.d.ts +6 -0
- package/dist/types/banking/common/cryptoaddressextendeddata.js +1 -0
- package/dist/types/banking/common/currencyclouddata.d.ts +65 -0
- package/dist/types/banking/common/currencyclouddata.js +1 -0
- package/dist/types/banking/common/devicecultureinfo.d.ts +26 -0
- package/dist/types/banking/common/devicecultureinfo.js +1 -0
- package/dist/types/banking/common/externalhostinfo.d.ts +9 -0
- package/dist/types/banking/common/externalhostinfo.js +1 -0
- package/dist/types/banking/common/geocoordinates.d.ts +6 -0
- package/dist/types/banking/common/geocoordinates.js +1 -0
- package/dist/types/banking/common/history.d.ts +19 -0
- package/dist/types/banking/common/history.js +1 -0
- package/dist/types/banking/common/index.d.ts +21 -0
- package/dist/types/banking/common/index.js +1 -0
- package/dist/types/banking/common/lastactivity.d.ts +10 -0
- package/dist/types/banking/common/lastactivity.js +1 -0
- package/dist/types/banking/common/notes.d.ts +5 -0
- package/dist/types/banking/common/notes.js +1 -0
- package/dist/types/banking/common/openpayddata.d.ts +34 -0
- package/dist/types/banking/common/openpayddata.js +1 -0
- package/dist/types/banking/common/people/alias.d.ts +10 -0
- package/dist/types/banking/common/people/alias.js +1 -0
- package/dist/types/banking/common/people/billpaydata.d.ts +2 -0
- package/dist/types/banking/common/people/billpaydata.js +1 -0
- package/dist/types/banking/common/people/customerinfo.d.ts +6 -0
- package/dist/types/banking/common/people/customerinfo.js +1 -0
- package/dist/types/banking/common/people/eftdata.d.ts +2 -0
- package/dist/types/banking/common/people/eftdata.js +1 -0
- package/dist/types/banking/common/people/etransferdata.d.ts +6 -0
- package/dist/types/banking/common/people/etransferdata.js +1 -0
- package/dist/types/banking/common/people/index.d.ts +6 -0
- package/dist/types/banking/common/people/index.js +1 -0
- package/dist/types/banking/common/people/peoplesdata.d.ts +7 -0
- package/dist/types/banking/common/people/peoplesdata.js +1 -0
- package/dist/{bank-system/interfaces/commonInterface.d.ts → types/banking/common/result.d.ts} +3 -2
- package/dist/types/banking/common/result.js +1 -0
- package/dist/types/banking/common/security/index.d.ts +2 -0
- package/dist/types/banking/common/security/index.js +1 -0
- package/dist/types/banking/common/security/simplifiedaccessrule.d.ts +5 -0
- package/dist/types/banking/common/security/simplifiedaccessrule.js +1 -0
- package/dist/types/banking/common/security/simplifiedaccessruleinfo.d.ts +13 -0
- package/dist/types/banking/common/security/simplifiedaccessruleinfo.js +1 -0
- package/dist/types/banking/common/snbdata.d.ts +6 -0
- package/dist/types/banking/common/snbdata.js +1 -0
- package/dist/types/banking/common/workinghour.d.ts +11 -0
- package/dist/types/banking/common/workinghour.js +1 -0
- package/dist/types/banking/entities/address.d.ts +24 -0
- package/dist/types/banking/entities/address.js +1 -0
- package/dist/types/banking/entities/bankaccount.d.ts +43 -0
- package/dist/types/banking/entities/bankaccount.js +1 -0
- package/dist/types/banking/entities/creditcard.d.ts +25 -0
- package/dist/types/banking/entities/creditcard.js +1 -0
- package/dist/types/banking/entities/cryptoWallet.d.ts +7 -0
- package/dist/types/banking/entities/cryptoWallet.js +1 -0
- package/dist/types/banking/entities/cryptoaddress.d.ts +18 -0
- package/dist/types/banking/entities/cryptoaddress.js +1 -0
- package/dist/types/banking/entities/customField/index.d.ts +2 -0
- package/dist/types/banking/entities/customField/index.js +1 -0
- package/dist/types/banking/entities/customField/promotionData/giftData.d.ts +12 -0
- package/dist/types/banking/entities/customField/promotionData/giftData.js +1 -0
- package/dist/types/banking/entities/customField/promotionData/index.d.ts +3 -0
- package/dist/types/banking/entities/customField/promotionData/index.js +1 -0
- package/dist/types/banking/entities/customField/promotionData/promotionData.d.ts +7 -0
- package/dist/types/banking/entities/customField/promotionData/promotionData.js +1 -0
- package/dist/types/banking/entities/customField/promotionData/referralData.d.ts +5 -0
- package/dist/types/banking/entities/customField/promotionData/referralData.js +1 -0
- package/dist/types/banking/entities/customField/userAccessControl/action.d.ts +5 -0
- package/dist/types/banking/entities/customField/userAccessControl/action.js +1 -0
- package/dist/types/banking/entities/customField/userAccessControl/index.d.ts +4 -0
- package/dist/types/banking/entities/customField/userAccessControl/index.js +1 -0
- package/dist/types/banking/entities/customField/userAccessControl/page.d.ts +7 -0
- package/dist/types/banking/entities/customField/userAccessControl/page.js +1 -0
- package/dist/types/banking/entities/customField/userAccessControl/section.d.ts +7 -0
- package/dist/types/banking/entities/customField/userAccessControl/section.js +1 -0
- package/dist/types/banking/entities/customField/userAccessControl/userAccessControl.d.ts +5 -0
- package/dist/types/banking/entities/customField/userAccessControl/userAccessControl.js +1 -0
- package/dist/types/banking/entities/device.d.ts +25 -0
- package/dist/types/banking/entities/device.js +1 -0
- package/dist/types/banking/entities/devicehistory.d.ts +19 -0
- package/dist/types/banking/entities/devicehistory.js +1 -0
- package/dist/types/banking/entities/email.d.ts +15 -0
- package/dist/types/banking/entities/email.js +1 -0
- package/dist/types/banking/entities/externalauthentication.d.ts +15 -0
- package/dist/types/banking/entities/externalauthentication.js +1 -0
- package/dist/types/banking/entities/generalrequirements.d.ts +10 -0
- package/dist/types/banking/entities/generalrequirements.js +1 -0
- package/dist/types/banking/entities/identification.d.ts +23 -0
- package/dist/types/banking/entities/identification.js +1 -0
- package/dist/types/banking/entities/index.d.ts +20 -0
- package/dist/types/banking/entities/index.js +1 -0
- package/dist/types/banking/entities/json/IdentificationExtraData.d.ts +5 -0
- package/dist/types/banking/entities/json/IdentificationExtraData.js +1 -0
- package/dist/types/banking/entities/json/device/deviceextendedinfo.d.ts +10 -0
- package/dist/types/banking/entities/json/device/deviceextendedinfo.js +1 -0
- package/dist/types/banking/entities/json/device/index.d.ts +2 -0
- package/dist/types/banking/entities/json/device/index.js +1 -0
- package/dist/types/banking/entities/json/device/siminfo.d.ts +8 -0
- package/dist/types/banking/entities/json/device/siminfo.js +1 -0
- package/dist/types/banking/entities/json/index.d.ts +2 -0
- package/dist/types/banking/entities/json/index.js +1 -0
- package/dist/types/banking/entities/notification.d.ts +9 -0
- package/dist/types/banking/entities/notification.js +1 -0
- package/dist/types/banking/entities/paymentCryptoAddress.d.ts +11 -0
- package/dist/types/banking/entities/paymentCryptoAddress.js +1 -0
- package/dist/types/banking/entities/paymentInfo.d.ts +16 -0
- package/dist/types/banking/entities/paymentInfo.js +1 -0
- package/dist/types/banking/entities/phone.d.ts +16 -0
- package/dist/types/banking/entities/phone.js +1 -0
- package/dist/types/banking/entities/relationship.d.ts +24 -0
- package/dist/types/banking/entities/relationship.js +1 -0
- package/dist/types/banking/entities/socialmedia.d.ts +12 -0
- package/dist/types/banking/entities/socialmedia.js +1 -0
- package/dist/types/banking/entities/termsconditions.d.ts +8 -0
- package/dist/types/banking/entities/termsconditions.js +1 -0
- package/dist/types/banking/group/details.d.ts +9 -0
- package/dist/types/banking/group/details.js +1 -0
- package/dist/types/banking/group/groupdata.d.ts +12 -0
- package/dist/types/banking/group/groupdata.js +1 -0
- package/dist/types/banking/group/groupuser.d.ts +16 -0
- package/dist/types/banking/group/groupuser.js +1 -0
- package/dist/types/banking/group/index.d.ts +7 -0
- package/dist/types/banking/group/index.js +1 -0
- package/dist/types/banking/group/info.d.ts +16 -0
- package/dist/types/banking/group/info.js +1 -0
- package/dist/types/banking/group/localization.d.ts +5 -0
- package/dist/types/banking/group/localization.js +1 -0
- package/dist/types/banking/group/media.d.ts +5 -0
- package/dist/types/banking/group/media.js +1 -0
- package/dist/types/banking/group/settings/classificationinfo.d.ts +7 -0
- package/dist/types/banking/group/settings/classificationinfo.js +1 -0
- package/dist/types/banking/group/settings/companyusers.d.ts +5 -0
- package/dist/types/banking/group/settings/companyusers.js +1 -0
- package/dist/types/banking/group/settings/externalintegration.d.ts +6 -0
- package/dist/types/banking/group/settings/externalintegration.js +1 -0
- package/dist/types/banking/group/settings/fortnox.d.ts +9 -0
- package/dist/types/banking/group/settings/fortnox.js +1 -0
- package/dist/types/banking/group/settings/index.d.ts +8 -0
- package/dist/types/banking/group/settings/index.js +1 -0
- package/dist/types/banking/group/settings/messagingsetup.d.ts +4 -0
- package/dist/types/banking/group/settings/messagingsetup.js +1 -0
- package/dist/types/banking/group/settings/qvitoo.d.ts +15 -0
- package/dist/types/banking/group/settings/qvitoo.js +1 -0
- package/dist/types/banking/group/settings/setting.d.ts +6 -0
- package/dist/types/banking/group/settings/setting.js +1 -0
- package/dist/types/banking/group/settings/voucherrows.d.ts +12 -0
- package/dist/types/banking/group/settings/voucherrows.js +1 -0
- package/dist/types/banking/index.d.ts +11 -0
- package/dist/types/banking/index.js +1 -0
- package/dist/types/banking/oauth/credentialsData.d.ts +16 -0
- package/dist/types/banking/oauth/credentialsData.js +1 -0
- package/dist/types/banking/oauth/index.d.ts +2 -0
- package/dist/types/banking/oauth/index.js +1 -0
- package/dist/types/banking/oauth/tokenData.d.ts +19 -0
- package/dist/types/banking/oauth/tokenData.js +1 -0
- package/dist/types/banking/order/customForm/ggez1.d.ts +20 -0
- package/dist/types/banking/order/customForm/ggez1.js +1 -0
- package/dist/types/banking/order/customForm/ggezGiftRewards.d.ts +12 -0
- package/dist/types/banking/order/customForm/ggezGiftRewards.js +1 -0
- package/dist/types/banking/order/customForm/ggezReferralRewards.d.ts +24 -0
- package/dist/types/banking/order/customForm/ggezReferralRewards.js +1 -0
- package/dist/types/banking/order/customForm/index.d.ts +3 -0
- package/dist/types/banking/order/customForm/index.js +1 -0
- package/dist/types/banking/order/customFormData.d.ts +6 -0
- package/dist/types/banking/order/customFormData.js +1 -0
- package/dist/types/banking/order/features.d.ts +5 -0
- package/dist/types/banking/order/features.js +1 -0
- package/dist/types/banking/order/fee.d.ts +15 -0
- package/dist/types/banking/order/fee.js +1 -0
- package/dist/types/banking/order/fulfilment/fulfilmentInfo.d.ts +12 -0
- package/dist/types/banking/order/fulfilment/fulfilmentInfo.js +1 -0
- package/dist/types/banking/order/fulfilment/index.d.ts +3 -0
- package/dist/types/banking/order/fulfilment/index.js +1 -0
- package/dist/types/banking/order/fulfilment/orderFulfilment.d.ts +15 -0
- package/dist/types/banking/order/fulfilment/orderFulfilment.js +1 -0
- package/dist/types/banking/order/fulfilment/pinCodeFulfilment.d.ts +6 -0
- package/dist/types/banking/order/fulfilment/pinCodeFulfilment.js +1 -0
- package/dist/types/banking/order/index.d.ts +22 -0
- package/dist/types/banking/order/index.js +1 -0
- package/dist/types/banking/order/info.d.ts +30 -0
- package/dist/types/banking/order/info.js +1 -0
- package/dist/types/banking/order/items/index.d.ts +2 -0
- package/dist/types/banking/order/items/index.js +2 -0
- package/dist/types/banking/order/items/info.d.ts +7 -0
- package/dist/types/banking/order/items/info.js +1 -0
- package/dist/types/banking/order/items/orderItem.d.ts +14 -0
- package/dist/types/banking/order/items/orderItem.js +1 -0
- package/dist/types/banking/order/lotteryTicket.d.ts +17 -0
- package/dist/types/banking/order/lotteryTicket.js +1 -0
- package/dist/types/banking/order/orderData.d.ts +12 -0
- package/dist/types/banking/order/orderData.js +1 -0
- package/dist/types/banking/order/orderError.d.ts +14 -0
- package/dist/types/banking/order/orderError.js +1 -0
- package/dist/types/banking/order/paymentMethod.d.ts +12 -0
- package/dist/types/banking/order/paymentMethod.js +1 -0
- package/dist/types/banking/order/pinCode.d.ts +13 -0
- package/dist/types/banking/order/pinCode.js +1 -0
- package/dist/types/banking/order/profit.d.ts +14 -0
- package/dist/types/banking/order/profit.js +1 -0
- package/dist/types/banking/order/promotion.d.ts +2 -0
- package/dist/types/banking/order/promotion.js +1 -0
- package/dist/types/banking/order/reverseData.d.ts +12 -0
- package/dist/types/banking/order/reverseData.js +1 -0
- package/dist/types/banking/order/reverseItem.d.ts +7 -0
- package/dist/types/banking/order/reverseItem.js +1 -0
- package/dist/types/banking/order/reversePinCode.d.ts +4 -0
- package/dist/types/banking/order/reversePinCode.js +1 -0
- package/dist/types/banking/order/ticket.d.ts +2 -0
- package/dist/types/banking/order/ticket.js +1 -0
- package/dist/types/banking/order/topUp.d.ts +4 -0
- package/dist/types/banking/order/topUp.js +1 -0
- package/dist/types/banking/order/variant.d.ts +26 -0
- package/dist/types/banking/order/variant.js +1 -0
- package/dist/types/banking/order/voucher.d.ts +10 -0
- package/dist/types/banking/order/voucher.js +1 -0
- package/dist/types/banking/order/voucherInfo.d.ts +7 -0
- package/dist/types/banking/order/voucherInfo.js +1 -0
- package/dist/types/banking/organization/details.d.ts +7 -0
- package/dist/types/banking/organization/details.js +1 -0
- package/dist/types/banking/organization/index.d.ts +3 -0
- package/dist/types/banking/organization/index.js +1 -0
- package/dist/types/banking/organization/info.d.ts +17 -0
- package/dist/types/banking/organization/info.js +1 -0
- package/dist/types/banking/organization/organizationdata.d.ts +22 -0
- package/dist/types/banking/organization/organizationdata.js +1 -0
- package/dist/types/banking/ticket/content.d.ts +5 -0
- package/dist/types/banking/ticket/content.js +1 -0
- package/dist/types/banking/ticket/history.d.ts +6 -0
- package/dist/types/banking/ticket/history.js +1 -0
- package/dist/types/banking/ticket/index.d.ts +5 -0
- package/dist/types/banking/ticket/index.js +1 -0
- package/dist/types/banking/ticket/info.d.ts +34 -0
- package/dist/types/banking/ticket/info.js +1 -0
- package/dist/types/banking/ticket/subentity.d.ts +7 -0
- package/dist/types/banking/ticket/subentity.js +1 -0
- package/dist/types/banking/ticket/ticketdata.d.ts +7 -0
- package/dist/types/banking/ticket/ticketdata.js +1 -0
- package/dist/types/banking/transaction/billingAddress.d.ts +11 -0
- package/dist/types/banking/transaction/billingAddress.js +1 -0
- package/dist/types/banking/transaction/conversion.d.ts +21 -0
- package/dist/types/banking/transaction/conversion.js +1 -0
- package/dist/types/banking/transaction/exchange.d.ts +10 -0
- package/dist/types/banking/transaction/exchange.js +1 -0
- package/dist/types/banking/transaction/fee.d.ts +9 -0
- package/dist/types/banking/transaction/fee.js +1 -0
- package/dist/types/banking/transaction/index.d.ts +10 -0
- package/dist/types/banking/transaction/index.js +1 -0
- package/dist/types/banking/transaction/info.d.ts +33 -0
- package/dist/types/banking/transaction/info.js +1 -0
- package/dist/types/banking/transaction/receiverInfo.d.ts +8 -0
- package/dist/types/banking/transaction/receiverInfo.js +1 -0
- package/dist/types/banking/transaction/tax.d.ts +9 -0
- package/dist/types/banking/transaction/tax.js +1 -0
- package/dist/types/banking/transaction/transactionData.d.ts +23 -0
- package/dist/types/banking/transaction/transactionData.js +1 -0
- package/dist/types/banking/transaction/transactionInquiry.d.ts +26 -0
- package/dist/types/banking/transaction/transactionInquiry.js +1 -0
- package/dist/types/banking/transaction/transfer.d.ts +10 -0
- package/dist/types/banking/transaction/transfer.js +1 -0
- package/dist/types/banking/user/activity.d.ts +15 -0
- package/dist/types/banking/user/activity.js +1 -0
- package/dist/types/banking/user/attachment.d.ts +9 -0
- package/dist/types/banking/user/attachment.js +1 -0
- package/dist/types/banking/user/commerce/commerce.d.ts +6 -0
- package/dist/types/banking/user/commerce/commerce.js +1 -0
- package/dist/types/banking/user/commerce/index.d.ts +3 -0
- package/dist/types/banking/user/commerce/index.js +1 -0
- package/dist/types/banking/user/commerce/role.d.ts +5 -0
- package/dist/types/banking/user/commerce/role.js +1 -0
- package/dist/types/banking/user/commerce/usercommerceconfiguration.d.ts +6 -0
- package/dist/types/banking/user/commerce/usercommerceconfiguration.js +1 -0
- package/dist/types/banking/user/confirmForgetSecurityData.d.ts +5 -0
- package/dist/types/banking/user/confirmForgetSecurityData.js +1 -0
- package/dist/types/banking/user/confirmSecurityData.d.ts +4 -0
- package/dist/types/banking/user/confirmSecurityData.js +1 -0
- package/dist/types/banking/user/confirmUserSecurity.d.ts +8 -0
- package/dist/types/banking/user/confirmUserSecurity.js +1 -0
- package/dist/types/banking/user/confirmUserSecurityInfo.d.ts +11 -0
- package/dist/types/banking/user/confirmUserSecurityInfo.js +1 -0
- package/dist/types/banking/user/currency.d.ts +7 -0
- package/dist/types/banking/user/currency.js +1 -0
- package/dist/types/banking/user/documentdata.d.ts +8 -0
- package/dist/types/banking/user/documentdata.js +1 -0
- package/dist/types/banking/user/documentinfo.d.ts +25 -0
- package/dist/types/banking/user/documentinfo.js +1 -0
- package/dist/types/banking/user/forgetPassword.d.ts +6 -0
- package/dist/types/banking/user/forgetPassword.js +1 -0
- package/dist/types/banking/user/forgetSecurityData.d.ts +7 -0
- package/dist/types/banking/user/forgetSecurityData.js +1 -0
- package/dist/types/banking/user/forgetSecurityInfo.d.ts +7 -0
- package/dist/types/banking/user/forgetSecurityInfo.js +1 -0
- package/dist/types/banking/user/index.d.ts +36 -0
- package/dist/types/banking/user/index.js +1 -0
- package/dist/types/banking/user/info.d.ts +16 -0
- package/dist/types/banking/user/info.js +1 -0
- package/dist/types/banking/user/personalinfo.d.ts +15 -0
- package/dist/types/banking/user/personalinfo.js +1 -0
- package/dist/types/banking/user/preferences.d.ts +15 -0
- package/dist/types/banking/user/preferences.js +1 -0
- package/dist/types/banking/user/resetPassword.d.ts +5 -0
- package/dist/types/banking/user/resetPassword.js +1 -0
- package/dist/types/banking/user/resetSecurityCode.d.ts +5 -0
- package/dist/types/banking/user/resetSecurityCode.js +1 -0
- package/dist/types/banking/user/resetSecurityData.d.ts +8 -0
- package/dist/types/banking/user/resetSecurityData.js +1 -0
- package/dist/types/banking/user/resetSecurityQuestions.d.ts +8 -0
- package/dist/types/banking/user/resetSecurityQuestions.js +1 -0
- package/dist/types/banking/user/resetUserSecurity.d.ts +7 -0
- package/dist/types/banking/user/resetUserSecurity.js +1 -0
- package/dist/types/banking/user/resetUserSecurityInfo.d.ts +11 -0
- package/dist/types/banking/user/resetUserSecurityInfo.js +1 -0
- package/dist/types/banking/user/security.d.ts +11 -0
- package/dist/types/banking/user/security.js +1 -0
- package/dist/types/banking/user/userauthenticationdata.d.ts +12 -0
- package/dist/types/banking/user/userauthenticationdata.js +1 -0
- package/dist/types/banking/user/usercreditlimit.d.ts +5 -0
- package/dist/types/banking/user/usercreditlimit.js +1 -0
- package/dist/types/banking/user/userdata.d.ts +39 -0
- package/dist/types/banking/user/userdata.js +1 -0
- package/dist/types/banking/user/validateForgetSecurityData.d.ts +7 -0
- package/dist/types/banking/user/validateForgetSecurityData.js +1 -0
- package/dist/types/banking/user/validateLimitedSecurity.d.ts +7 -0
- package/dist/types/banking/user/validateLimitedSecurity.js +1 -0
- package/dist/types/banking/user/validateLimitedSecurityData.d.ts +6 -0
- package/dist/types/banking/user/validateLimitedSecurityData.js +1 -0
- package/dist/types/banking/user/validateSecurityData.d.ts +11 -0
- package/dist/types/banking/user/validateSecurityData.js +1 -0
- package/dist/types/banking/user/validateUserSecurity.d.ts +7 -0
- package/dist/types/banking/user/validateUserSecurity.js +1 -0
- package/dist/types/banking/user/validateUserSecurityInfo.d.ts +11 -0
- package/dist/types/banking/user/validateUserSecurityInfo.js +1 -0
- package/dist/types/banking/user/validation/index.d.ts +2 -0
- package/dist/types/banking/user/validation/index.js +1 -0
- package/dist/types/banking/user/validation/info.d.ts +18 -0
- package/dist/types/banking/user/validation/info.js +1 -0
- package/dist/types/banking/user/validation/validationdata.d.ts +7 -0
- package/dist/types/banking/user/validation/validationdata.js +1 -0
- package/dist/types/banking/user/verifySecurityData.d.ts +8 -0
- package/dist/types/banking/user/verifySecurityData.js +1 -0
- package/dist/types/banking/user/verifyUserSecurity.d.ts +7 -0
- package/dist/types/banking/user/verifyUserSecurity.js +1 -0
- package/dist/types/banking/user/verifyUserSecurityInfo.d.ts +13 -0
- package/dist/types/banking/user/verifyUserSecurityInfo.js +1 -0
- package/dist/types/helper/axiosHelper.d.ts +10 -0
- package/dist/types/helper/axiosHelper.js +1 -0
- package/dist/types/helper/geoHelper.d.ts +8 -0
- package/dist/types/helper/geoHelper.js +1 -0
- package/dist/types/helper/index.d.ts +2 -0
- package/dist/types/helper/index.js +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +1 -0
- package/dist/types/node/amount.d.ts +5 -0
- package/dist/types/node/amount.js +1 -0
- package/dist/types/node/index.d.ts +3 -0
- package/dist/types/node/index.js +3 -0
- package/dist/types/node/lotteryPrize.d.ts +10 -0
- package/dist/types/node/lotteryPrize.js +1 -0
- package/dist/types/node/promotionDetails.d.ts +25 -0
- package/dist/types/node/promotionDetails.js +1 -0
- package/dist/{bank-system/utils → utils}/chainAddressMasking.js +1 -3
- package/dist/{bank-system/utils → utils}/copyText.js +1 -5
- package/dist/utils/countryAndCurrencyData.js +17 -0
- package/dist/{bank-system/utils → utils}/enumToOption.js +2 -5
- package/dist/{bank-system/utils → utils}/generateOneLiner.js +1 -4
- package/dist/{bank-system/utils → utils}/generateSourceId.js +1 -4
- package/dist/utils/getCountryName.js +20 -0
- package/dist/utils/getEnumName.js +6 -0
- package/dist/utils/getStateByCountryCode.js +8 -0
- package/dist/utils/handleEncryption/decryptData.js +35 -0
- package/dist/utils/handleEncryption/encryptData.js +11 -0
- package/dist/utils/handleEncryption/index.js +4 -0
- package/dist/{bank-system/utils → utils}/handleEncryption/key.js +10 -17
- package/dist/{bank-system/utils → utils}/index.d.ts +1 -2
- package/dist/utils/index.js +14 -0
- package/dist/{bank-system/utils → utils}/maskingFunction.js +1 -4
- package/dist/{bank-system/utils → utils}/regex.js +1 -5
- package/dist/{bank-system/utils → utils}/sortUserInfo.js +2 -5
- package/package.json +12 -5
- package/dist/bank-system/constants/constants.d.ts +0 -15
- package/dist/bank-system/constants/constants.js +0 -21
- package/dist/bank-system/constants/index.js +0 -19
- package/dist/bank-system/constants/structure.d.ts +0 -74
- package/dist/bank-system/content/index.js +0 -12
- package/dist/bank-system/helper/data.d.ts +0 -46
- package/dist/bank-system/helper/data.js +0 -57
- package/dist/bank-system/helper/dataStructure.d.ts +0 -3274
- package/dist/bank-system/helper/dataStructure.js +0 -1499
- package/dist/bank-system/helper/index.d.ts +0 -29
- package/dist/bank-system/interfaces/accountInterface.d.ts +0 -27
- package/dist/bank-system/interfaces/accountInterface.js +0 -2
- package/dist/bank-system/interfaces/bankingSystemInterface.d.ts +0 -316
- package/dist/bank-system/interfaces/bankingSystemInterface.js +0 -2
- package/dist/bank-system/interfaces/blockchain.d.ts +0 -149
- package/dist/bank-system/interfaces/blockchain.js +0 -2
- package/dist/bank-system/interfaces/commonInterface.js +0 -2
- package/dist/bank-system/interfaces/deviceInterface.d.ts +0 -34
- package/dist/bank-system/interfaces/deviceInterface.js +0 -2
- package/dist/bank-system/interfaces/index.d.ts +0 -6
- package/dist/bank-system/interfaces/index.js +0 -22
- package/dist/bank-system/interfaces/interface.d.ts +0 -578
- package/dist/bank-system/interfaces/interface.js +0 -2
- package/dist/bank-system/interfaces/organizationInterface.d.ts +0 -119
- package/dist/bank-system/interfaces/organizationInterface.js +0 -2
- package/dist/bank-system/interfaces/promotion.d.ts +0 -47
- package/dist/bank-system/interfaces/promotion.js +0 -2
- package/dist/bank-system/interfaces/signInterface.d.ts +0 -128
- package/dist/bank-system/interfaces/signInterface.js +0 -2
- package/dist/bank-system/interfaces/transactionInterface.d.ts +0 -11
- package/dist/bank-system/interfaces/transactionInterface.js +0 -2
- package/dist/bank-system/restApi/index.d.ts +0 -8
- package/dist/bank-system/restApi/index.js +0 -32
- package/dist/bank-system/services/account.d.ts +0 -39
- package/dist/bank-system/services/account.js +0 -139
- package/dist/bank-system/services/addresses.d.ts +0 -48
- package/dist/bank-system/services/addresses.js +0 -121
- package/dist/bank-system/services/auth.d.ts +0 -90
- package/dist/bank-system/services/auth.js +0 -320
- package/dist/bank-system/services/bankAccount.d.ts +0 -48
- package/dist/bank-system/services/bankAccount.js +0 -122
- package/dist/bank-system/services/blockchain.d.ts +0 -28
- package/dist/bank-system/services/blockchain.js +0 -109
- package/dist/bank-system/services/device.d.ts +0 -46
- package/dist/bank-system/services/device.js +0 -197
- package/dist/bank-system/services/document.d.ts +0 -15
- package/dist/bank-system/services/document.js +0 -48
- package/dist/bank-system/services/email.d.ts +0 -70
- package/dist/bank-system/services/email.js +0 -161
- package/dist/bank-system/services/history.d.ts +0 -14
- package/dist/bank-system/services/history.js +0 -45
- package/dist/bank-system/services/identification.d.ts +0 -37
- package/dist/bank-system/services/identification.js +0 -107
- package/dist/bank-system/services/index.d.ts +0 -19
- package/dist/bank-system/services/index.js +0 -39
- package/dist/bank-system/services/organization.d.ts +0 -28
- package/dist/bank-system/services/organization.js +0 -120
- package/dist/bank-system/services/personalInfo.d.ts +0 -26
- package/dist/bank-system/services/personalInfo.js +0 -86
- package/dist/bank-system/services/phone.d.ts +0 -70
- package/dist/bank-system/services/phone.js +0 -164
- package/dist/bank-system/services/security.d.ts +0 -114
- package/dist/bank-system/services/security.js +0 -271
- package/dist/bank-system/services/ticket.d.ts +0 -15
- package/dist/bank-system/services/ticket.js +0 -55
- package/dist/bank-system/services/token.d.ts +0 -11
- package/dist/bank-system/services/token.js +0 -79
- package/dist/bank-system/services/transaction.d.ts +0 -10
- package/dist/bank-system/services/transaction.js +0 -51
- package/dist/bank-system/services/verifyAndConfirm.d.ts +0 -116
- package/dist/bank-system/services/verifyAndConfirm.js +0 -302
- package/dist/bank-system/utils/blockchainHelper.d.ts +0 -6
- package/dist/bank-system/utils/blockchainHelper.js +0 -41
- package/dist/bank-system/utils/countryAndCurrencyData.js +0 -22
- package/dist/bank-system/utils/fillDeviceDetails.d.ts +0 -23
- package/dist/bank-system/utils/fillDeviceDetails.js +0 -44
- package/dist/bank-system/utils/getCountryName.js +0 -27
- package/dist/bank-system/utils/getEnumName.js +0 -9
- package/dist/bank-system/utils/getStateByCountryCode.js +0 -14
- package/dist/bank-system/utils/handleEncryption/decryptData.js +0 -76
- package/dist/bank-system/utils/handleEncryption/encryptData.js +0 -46
- package/dist/bank-system/utils/handleEncryption/index.js +0 -12
- package/dist/bank-system/utils/index.js +0 -42
- package/dist/bank-system/utils/info.d.ts +0 -8
- package/dist/bank-system/utils/info.js +0 -74
- package/dist/keplr-config/chainInfo.d.ts +0 -8
- package/dist/keplr-config/chainInfo.js +0 -65
- package/dist/{bank-system/constants → constants}/index.d.ts +1 -1
- /package/dist/{bank-system/content → content}/accountCurrencies.d.ts +0 -0
- /package/dist/{bank-system/content → content}/countries.d.ts +0 -0
- /package/dist/{bank-system/content → content}/currencies.d.ts +0 -0
- /package/dist/{bank-system/content → content}/index.d.ts +0 -0
- /package/dist/{bank-system/content → content}/state.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/chainAddressMasking.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/copyText.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/countryAndCurrencyData.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/enumToOption.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/generateOneLiner.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/generateSourceId.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/getCountryName.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/getEnumName.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/getStateByCountryCode.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/handleEncryption/decryptData.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/handleEncryption/encryptData.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/handleEncryption/index.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/handleEncryption/key.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/maskingFunction.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/regex.d.ts +0 -0
- /package/dist/{bank-system/utils → utils}/sortUserInfo.d.ts +0 -0
@@ -1,107 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.useIdentification = void 0;
|
7
|
-
const dataStructure_1 = __importDefault(require("../helper/dataStructure"));
|
8
|
-
const helper_1 = __importDefault(require("../helper"));
|
9
|
-
const restApi_1 = __importDefault(require("../restApi"));
|
10
|
-
const useIdentification = (token, userInfo, userId, baseUrl, geoCoordinates, lang) => {
|
11
|
-
const { checkResponse, headerConfig } = (0, helper_1.default)(userInfo);
|
12
|
-
const { checkGlobalResponse, errorHandler } = checkResponse();
|
13
|
-
const { dataIdentification } = (0, dataStructure_1.default)();
|
14
|
-
const { createDataIdentification, deleteDataIdentification, updateDataIdentification, } = dataIdentification();
|
15
|
-
let endPointIdentification = `v1/user/identification/${userId}`;
|
16
|
-
const headerConfigIdentification = () => {
|
17
|
-
let headersData = {
|
18
|
-
header: true,
|
19
|
-
isUrlEncoded: false,
|
20
|
-
token: token,
|
21
|
-
lang: lang,
|
22
|
-
};
|
23
|
-
let headers = headerConfig(headersData);
|
24
|
-
return headers;
|
25
|
-
};
|
26
|
-
const CreateIdentification = async (values) => {
|
27
|
-
let data = createDataIdentification({
|
28
|
-
...values,
|
29
|
-
geoCoordinates: geoCoordinates,
|
30
|
-
});
|
31
|
-
try {
|
32
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", endPointIdentification, headerConfigIdentification(), data);
|
33
|
-
let { newUserInfo } = checkGlobalResponse("identification", response, "CreateIdentification", "create");
|
34
|
-
return {
|
35
|
-
response: response,
|
36
|
-
newUser: newUserInfo,
|
37
|
-
message: response?.data?.result?.message ??
|
38
|
-
"Identification Created Successfully",
|
39
|
-
status: "success",
|
40
|
-
};
|
41
|
-
}
|
42
|
-
catch (error) {
|
43
|
-
return {
|
44
|
-
response: error.response,
|
45
|
-
newUser: null,
|
46
|
-
message: error.message,
|
47
|
-
status: "failed",
|
48
|
-
};
|
49
|
-
}
|
50
|
-
};
|
51
|
-
const UpdateIdentification = async (values) => {
|
52
|
-
let data = updateDataIdentification({
|
53
|
-
...values,
|
54
|
-
geoCoordinates: geoCoordinates,
|
55
|
-
});
|
56
|
-
try {
|
57
|
-
const response = await restApi_1.default.restApi(baseUrl, "PUT", endPointIdentification, headerConfigIdentification(), data);
|
58
|
-
let { newUserInfo } = checkGlobalResponse("identification", response, "UpdateIdentification", "update");
|
59
|
-
return {
|
60
|
-
response: response,
|
61
|
-
newUser: newUserInfo,
|
62
|
-
message: response?.data?.result?.message ??
|
63
|
-
"Identification Updated Successfully",
|
64
|
-
status: "success",
|
65
|
-
};
|
66
|
-
}
|
67
|
-
catch (error) {
|
68
|
-
return {
|
69
|
-
response: error.response,
|
70
|
-
newUser: null,
|
71
|
-
message: error.message,
|
72
|
-
status: "failed",
|
73
|
-
};
|
74
|
-
}
|
75
|
-
};
|
76
|
-
const DeleteIdentification = async (values) => {
|
77
|
-
let data = deleteDataIdentification({
|
78
|
-
...values,
|
79
|
-
geoCoordinates: geoCoordinates,
|
80
|
-
});
|
81
|
-
try {
|
82
|
-
const response = await restApi_1.default.restApi(baseUrl, "DELETE", endPointIdentification, headerConfigIdentification(), data);
|
83
|
-
let { newUserInfo } = checkGlobalResponse("identification", response, "DeleteIdentification", "delete");
|
84
|
-
return {
|
85
|
-
response: response,
|
86
|
-
newUser: newUserInfo,
|
87
|
-
message: response?.data?.result?.message ??
|
88
|
-
"Identification Deleted Successfully",
|
89
|
-
status: "success",
|
90
|
-
};
|
91
|
-
}
|
92
|
-
catch (error) {
|
93
|
-
return {
|
94
|
-
response: error.response,
|
95
|
-
newUser: null,
|
96
|
-
message: error.message,
|
97
|
-
status: "failed",
|
98
|
-
};
|
99
|
-
}
|
100
|
-
};
|
101
|
-
return {
|
102
|
-
CreateIdentification,
|
103
|
-
UpdateIdentification,
|
104
|
-
DeleteIdentification,
|
105
|
-
};
|
106
|
-
};
|
107
|
-
exports.useIdentification = useIdentification;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { useAuth } from "./auth";
|
2
|
-
import { useAddresses } from "./addresses";
|
3
|
-
import { useBankAccount } from "./bankAccount";
|
4
|
-
import { useDocument } from "./document";
|
5
|
-
import { useEmail } from "./email";
|
6
|
-
import { useIdentification } from "./identification";
|
7
|
-
import { usePersonalInfo } from "./personalInfo";
|
8
|
-
import { usePhone } from "./phone";
|
9
|
-
import { useSecurity } from "./security";
|
10
|
-
import { useToken } from "./token";
|
11
|
-
import { useVerifyAndConfirm } from "./verifyAndConfirm";
|
12
|
-
import { useAccount } from "./account";
|
13
|
-
import { useGetUserLatest } from "./history";
|
14
|
-
import { useDevice } from "./device";
|
15
|
-
import { useTransaction } from "./transaction";
|
16
|
-
import { useOrganization } from "./organization";
|
17
|
-
import { useTicket } from "./ticket";
|
18
|
-
import { useBlockchain } from "./blockchain";
|
19
|
-
export { useAuth, useAddresses, useBankAccount, useDocument, useEmail, useIdentification, usePersonalInfo, usePhone, useSecurity, useToken, useVerifyAndConfirm, useAccount, useGetUserLatest, useDevice, useTransaction, useOrganization, useTicket, useBlockchain, };
|
@@ -1,39 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useBlockchain = exports.useTicket = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useGetUserLatest = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useEmail = exports.useDocument = exports.useBankAccount = exports.useAddresses = exports.useAuth = void 0;
|
4
|
-
const auth_1 = require("./auth");
|
5
|
-
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return auth_1.useAuth; } });
|
6
|
-
const addresses_1 = require("./addresses");
|
7
|
-
Object.defineProperty(exports, "useAddresses", { enumerable: true, get: function () { return addresses_1.useAddresses; } });
|
8
|
-
const bankAccount_1 = require("./bankAccount");
|
9
|
-
Object.defineProperty(exports, "useBankAccount", { enumerable: true, get: function () { return bankAccount_1.useBankAccount; } });
|
10
|
-
const document_1 = require("./document");
|
11
|
-
Object.defineProperty(exports, "useDocument", { enumerable: true, get: function () { return document_1.useDocument; } });
|
12
|
-
const email_1 = require("./email");
|
13
|
-
Object.defineProperty(exports, "useEmail", { enumerable: true, get: function () { return email_1.useEmail; } });
|
14
|
-
const identification_1 = require("./identification");
|
15
|
-
Object.defineProperty(exports, "useIdentification", { enumerable: true, get: function () { return identification_1.useIdentification; } });
|
16
|
-
const personalInfo_1 = require("./personalInfo");
|
17
|
-
Object.defineProperty(exports, "usePersonalInfo", { enumerable: true, get: function () { return personalInfo_1.usePersonalInfo; } });
|
18
|
-
const phone_1 = require("./phone");
|
19
|
-
Object.defineProperty(exports, "usePhone", { enumerable: true, get: function () { return phone_1.usePhone; } });
|
20
|
-
const security_1 = require("./security");
|
21
|
-
Object.defineProperty(exports, "useSecurity", { enumerable: true, get: function () { return security_1.useSecurity; } });
|
22
|
-
const token_1 = require("./token");
|
23
|
-
Object.defineProperty(exports, "useToken", { enumerable: true, get: function () { return token_1.useToken; } });
|
24
|
-
const verifyAndConfirm_1 = require("./verifyAndConfirm");
|
25
|
-
Object.defineProperty(exports, "useVerifyAndConfirm", { enumerable: true, get: function () { return verifyAndConfirm_1.useVerifyAndConfirm; } });
|
26
|
-
const account_1 = require("./account");
|
27
|
-
Object.defineProperty(exports, "useAccount", { enumerable: true, get: function () { return account_1.useAccount; } });
|
28
|
-
const history_1 = require("./history");
|
29
|
-
Object.defineProperty(exports, "useGetUserLatest", { enumerable: true, get: function () { return history_1.useGetUserLatest; } });
|
30
|
-
const device_1 = require("./device");
|
31
|
-
Object.defineProperty(exports, "useDevice", { enumerable: true, get: function () { return device_1.useDevice; } });
|
32
|
-
const transaction_1 = require("./transaction");
|
33
|
-
Object.defineProperty(exports, "useTransaction", { enumerable: true, get: function () { return transaction_1.useTransaction; } });
|
34
|
-
const organization_1 = require("./organization");
|
35
|
-
Object.defineProperty(exports, "useOrganization", { enumerable: true, get: function () { return organization_1.useOrganization; } });
|
36
|
-
const ticket_1 = require("./ticket");
|
37
|
-
Object.defineProperty(exports, "useTicket", { enumerable: true, get: function () { return ticket_1.useTicket; } });
|
38
|
-
const blockchain_1 = require("./blockchain");
|
39
|
-
Object.defineProperty(exports, "useBlockchain", { enumerable: true, get: function () { return blockchain_1.useBlockchain; } });
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { CreateDocumentOrganizationInterface, CreateOrganizationInterface, UpdateOrganizationInterface } from "../interfaces/organizationInterface";
|
2
|
-
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
|
3
|
-
export declare const useOrganization: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
|
4
|
-
CreateOrganization: (values: CreateOrganizationInterface) => Promise<{
|
5
|
-
response: any;
|
6
|
-
newUser: any;
|
7
|
-
message: any;
|
8
|
-
status: string;
|
9
|
-
}>;
|
10
|
-
UpdateOrganization: (values: UpdateOrganizationInterface, organizationId: string) => Promise<{
|
11
|
-
response: any;
|
12
|
-
newUser: any;
|
13
|
-
message: any;
|
14
|
-
status: string;
|
15
|
-
}>;
|
16
|
-
DeleteOrganization: (organizationId: string) => Promise<{
|
17
|
-
response: any;
|
18
|
-
newUser: any;
|
19
|
-
message: any;
|
20
|
-
status: string;
|
21
|
-
}>;
|
22
|
-
CreateDocumentOrganization: (values: CreateDocumentOrganizationInterface, organizationId: string) => Promise<{
|
23
|
-
response: any;
|
24
|
-
newUser: any;
|
25
|
-
message: any;
|
26
|
-
status: string;
|
27
|
-
}>;
|
28
|
-
};
|
@@ -1,120 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.useOrganization = void 0;
|
7
|
-
const restApi_1 = __importDefault(require("../restApi"));
|
8
|
-
const helper_1 = __importDefault(require("../helper"));
|
9
|
-
const dataStructure_1 = __importDefault(require("../helper/dataStructure"));
|
10
|
-
const useOrganization = (token, userInfo, userId, baseUrl, geoCoordinates, lang) => {
|
11
|
-
const { checkResponse, headerConfig } = (0, helper_1.default)(userInfo);
|
12
|
-
const { checkGlobalResponse } = checkResponse();
|
13
|
-
const { dataOrganization } = (0, dataStructure_1.default)();
|
14
|
-
const { dataCreateOrganization, dataUpdateOrganization, dataCreateDocumentOrganization, } = dataOrganization();
|
15
|
-
let endPoint = `v1/Organization`;
|
16
|
-
const headerConfigDevice = () => {
|
17
|
-
let headersData = {
|
18
|
-
header: true,
|
19
|
-
isUrlEncoded: false,
|
20
|
-
token: token,
|
21
|
-
lang: lang,
|
22
|
-
};
|
23
|
-
let headers = headerConfig(headersData);
|
24
|
-
return headers;
|
25
|
-
};
|
26
|
-
const CreateOrganization = async (values) => {
|
27
|
-
let data = dataCreateOrganization({ ...values, geoCoordinates: geoCoordinates }, userId);
|
28
|
-
try {
|
29
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", endPoint, headerConfigDevice(), data);
|
30
|
-
let { newUserInfo } = checkGlobalResponse("organization", response, "CreateOrganization", "createOrganization");
|
31
|
-
return {
|
32
|
-
response: response?.data,
|
33
|
-
newUser: newUserInfo,
|
34
|
-
message: response?.data?.result?.message ?? "Create Organization Successfully",
|
35
|
-
status: "success",
|
36
|
-
};
|
37
|
-
}
|
38
|
-
catch (error) {
|
39
|
-
return {
|
40
|
-
response: error.response,
|
41
|
-
newUser: null,
|
42
|
-
message: error.message,
|
43
|
-
status: "failed",
|
44
|
-
};
|
45
|
-
}
|
46
|
-
};
|
47
|
-
const UpdateOrganization = async (values, organizationId) => {
|
48
|
-
let data = dataUpdateOrganization({ ...values, geoCoordinates: geoCoordinates }, userId);
|
49
|
-
try {
|
50
|
-
const response = await restApi_1.default.restApi(baseUrl, "PUT", `${endPoint}/${organizationId}`, headerConfigDevice(), data);
|
51
|
-
let { newUserInfo } = checkGlobalResponse("organization", response, "UpdateOrganization", "updateOrganization");
|
52
|
-
return {
|
53
|
-
response: response?.data,
|
54
|
-
newUser: newUserInfo,
|
55
|
-
message: response?.data?.result?.message ?? "Update Organization Successfully",
|
56
|
-
status: "success",
|
57
|
-
};
|
58
|
-
}
|
59
|
-
catch (error) {
|
60
|
-
return {
|
61
|
-
response: error.response,
|
62
|
-
newUser: null,
|
63
|
-
message: error.message,
|
64
|
-
status: "failed",
|
65
|
-
};
|
66
|
-
}
|
67
|
-
};
|
68
|
-
const DeleteOrganization = async (organizationId) => {
|
69
|
-
try {
|
70
|
-
const response = await restApi_1.default.restApi(baseUrl, "DELETE", `${endPoint}/${organizationId}`, headerConfigDevice());
|
71
|
-
let { newUserInfo } = checkGlobalResponse("organization", response, "DeleteOrganization", "deleteOrganization");
|
72
|
-
return {
|
73
|
-
response: response?.data,
|
74
|
-
newUser: newUserInfo,
|
75
|
-
message: response?.data?.result?.message ?? "Delete Organization Successfully",
|
76
|
-
status: "success",
|
77
|
-
};
|
78
|
-
}
|
79
|
-
catch (error) {
|
80
|
-
return {
|
81
|
-
response: error.response,
|
82
|
-
newUser: null,
|
83
|
-
message: error.message,
|
84
|
-
status: "failed",
|
85
|
-
};
|
86
|
-
}
|
87
|
-
};
|
88
|
-
const CreateDocumentOrganization = async (values, organizationId) => {
|
89
|
-
let data = dataCreateDocumentOrganization({
|
90
|
-
...values,
|
91
|
-
geoCoordinates: geoCoordinates,
|
92
|
-
});
|
93
|
-
try {
|
94
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", `${endPoint}/document/${organizationId}`, headerConfigDevice(), data);
|
95
|
-
let { newUserInfo } = checkGlobalResponse("organization", response, "CreateDocumentOrganization", "createDocumentOrganization");
|
96
|
-
return {
|
97
|
-
response: response?.data,
|
98
|
-
newUser: newUserInfo,
|
99
|
-
message: response?.data?.result?.message ??
|
100
|
-
"Create Document Organization Successfully",
|
101
|
-
status: "success",
|
102
|
-
};
|
103
|
-
}
|
104
|
-
catch (error) {
|
105
|
-
return {
|
106
|
-
response: error.response,
|
107
|
-
newUser: null,
|
108
|
-
message: error.message,
|
109
|
-
status: "failed",
|
110
|
-
};
|
111
|
-
}
|
112
|
-
};
|
113
|
-
return {
|
114
|
-
CreateOrganization,
|
115
|
-
UpdateOrganization,
|
116
|
-
DeleteOrganization,
|
117
|
-
CreateDocumentOrganization,
|
118
|
-
};
|
119
|
-
};
|
120
|
-
exports.useOrganization = useOrganization;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { UpdatePersonalInfoInterface, UpdateProfilePictureInterface } from "../interfaces/bankingSystemInterface";
|
2
|
-
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
|
3
|
-
export declare const usePersonalInfo: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
|
4
|
-
UpdatePersonalInfo: (values: UpdatePersonalInfoInterface) => Promise<{
|
5
|
-
response: import("axios").AxiosResponse<any, any>;
|
6
|
-
newUser: any;
|
7
|
-
message: any;
|
8
|
-
status: string;
|
9
|
-
} | {
|
10
|
-
response: any;
|
11
|
-
newUser: any;
|
12
|
-
message: any;
|
13
|
-
status: string;
|
14
|
-
}>;
|
15
|
-
UpdateProfilePicture: (values: UpdateProfilePictureInterface) => Promise<{
|
16
|
-
response: import("axios").AxiosResponse<any, any>;
|
17
|
-
newUser: any;
|
18
|
-
message: any;
|
19
|
-
status: string;
|
20
|
-
} | {
|
21
|
-
response: any;
|
22
|
-
newUser: any;
|
23
|
-
message: any;
|
24
|
-
status: string;
|
25
|
-
}>;
|
26
|
-
};
|
@@ -1,86 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.usePersonalInfo = void 0;
|
7
|
-
const dataStructure_1 = __importDefault(require("../helper/dataStructure"));
|
8
|
-
const helper_1 = __importDefault(require("../helper"));
|
9
|
-
const restApi_1 = __importDefault(require("../restApi"));
|
10
|
-
const usePersonalInfo = (token, userInfo, userId, baseUrl, geoCoordinates, lang) => {
|
11
|
-
const { dataPersonalInfo } = (0, dataStructure_1.default)();
|
12
|
-
const { updateDataPersonalInfo, updateProfilePicture } = dataPersonalInfo();
|
13
|
-
const { checkResponse, headerConfig } = (0, helper_1.default)(userInfo);
|
14
|
-
const { checkGlobalResponse, errorHandler } = checkResponse();
|
15
|
-
let endPoint = `v1/user/personal_info/${userId}`;
|
16
|
-
const headerConfigPersonalInfo = () => {
|
17
|
-
let headersData = {
|
18
|
-
header: true,
|
19
|
-
isUrlEncoded: false,
|
20
|
-
token: token,
|
21
|
-
lang: lang,
|
22
|
-
};
|
23
|
-
let headers = headerConfig(headersData);
|
24
|
-
return headers;
|
25
|
-
};
|
26
|
-
const UpdatePersonalInfo = async (values) => {
|
27
|
-
const data = updateDataPersonalInfo({
|
28
|
-
...values,
|
29
|
-
geoCoordinates: geoCoordinates,
|
30
|
-
});
|
31
|
-
try {
|
32
|
-
const response = await restApi_1.default.restApi(baseUrl, "PUT", endPoint, headerConfigPersonalInfo(), data);
|
33
|
-
let { newUserInfo } = checkGlobalResponse("personal_info", response, "UpdatePersonalInfo", "updateObjectInfo");
|
34
|
-
return {
|
35
|
-
response: response,
|
36
|
-
newUser: newUserInfo,
|
37
|
-
message: response?.data?.result?.message ?? "User Info updated Successfully",
|
38
|
-
status: "success",
|
39
|
-
};
|
40
|
-
}
|
41
|
-
catch (error) {
|
42
|
-
return {
|
43
|
-
response: error.response,
|
44
|
-
newUser: null,
|
45
|
-
message: error.message,
|
46
|
-
status: "failed",
|
47
|
-
};
|
48
|
-
}
|
49
|
-
};
|
50
|
-
const UpdateProfilePicture = async (values) => {
|
51
|
-
const data = updateProfilePicture({
|
52
|
-
...values,
|
53
|
-
geoCoordinates: geoCoordinates,
|
54
|
-
});
|
55
|
-
let headersData = {
|
56
|
-
header: true,
|
57
|
-
isUrlEncoded: false,
|
58
|
-
token: values.token ?? token,
|
59
|
-
lang: lang,
|
60
|
-
};
|
61
|
-
let headers = headerConfig(headersData);
|
62
|
-
try {
|
63
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", `V1/User/document/${values.userId ?? userId}`, headers, data);
|
64
|
-
let { newUserInfo } = checkGlobalResponse("personal_info", response, "UpdateProfilePicture", "updateProfilePicture");
|
65
|
-
return {
|
66
|
-
response: response,
|
67
|
-
newUser: newUserInfo,
|
68
|
-
message: response?.data?.result?.message ?? "Picture Updated Successfully",
|
69
|
-
status: "success",
|
70
|
-
};
|
71
|
-
}
|
72
|
-
catch (error) {
|
73
|
-
return {
|
74
|
-
response: error.response,
|
75
|
-
newUser: null,
|
76
|
-
message: error.message,
|
77
|
-
status: "failed",
|
78
|
-
};
|
79
|
-
}
|
80
|
-
};
|
81
|
-
return {
|
82
|
-
UpdatePersonalInfo,
|
83
|
-
UpdateProfilePicture,
|
84
|
-
};
|
85
|
-
};
|
86
|
-
exports.usePersonalInfo = usePersonalInfo;
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
|
2
|
-
import { ConfirmLimitedPhoneInterface, CreateUserPhoneInterface, DeleteUserPhoneInterface, MakeUserPhonePrimaryInterface, UpdateUserPhoneInterface, VerifyLimitedPhoneInterface } from "../interfaces/bankingSystemInterface";
|
3
|
-
export declare const usePhone: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates | null, lang?: string) => {
|
4
|
-
CreateUserPhone: (values: CreateUserPhoneInterface) => Promise<{
|
5
|
-
response: import("axios").AxiosResponse<any, any>;
|
6
|
-
newUser: any;
|
7
|
-
message: any;
|
8
|
-
status: string;
|
9
|
-
} | {
|
10
|
-
response: any;
|
11
|
-
newUser: any;
|
12
|
-
message: any;
|
13
|
-
status: string;
|
14
|
-
}>;
|
15
|
-
DeleteUserPhone: (values: DeleteUserPhoneInterface) => Promise<{
|
16
|
-
response: import("axios").AxiosResponse<any, any>;
|
17
|
-
newUser: any;
|
18
|
-
message: any;
|
19
|
-
status: string;
|
20
|
-
} | {
|
21
|
-
response: any;
|
22
|
-
newUser: any;
|
23
|
-
message: any;
|
24
|
-
status: string;
|
25
|
-
}>;
|
26
|
-
VerifyUserPhone: (values: VerifyLimitedPhoneInterface) => Promise<{
|
27
|
-
response: import("axios").AxiosResponse<any, any>;
|
28
|
-
newUser: any;
|
29
|
-
message: string;
|
30
|
-
status: string;
|
31
|
-
} | {
|
32
|
-
response: any;
|
33
|
-
newUser: any;
|
34
|
-
message: any;
|
35
|
-
status: string;
|
36
|
-
}>;
|
37
|
-
ConfirmUserPhone: (values: ConfirmLimitedPhoneInterface) => Promise<{
|
38
|
-
response: import("axios").AxiosResponse<any, any>;
|
39
|
-
newUser: any;
|
40
|
-
message: any;
|
41
|
-
status: string;
|
42
|
-
} | {
|
43
|
-
response: any;
|
44
|
-
newUser: any;
|
45
|
-
message: any;
|
46
|
-
status: string;
|
47
|
-
}>;
|
48
|
-
UpdateUserPhone: (values: UpdateUserPhoneInterface) => Promise<{
|
49
|
-
response: import("axios").AxiosResponse<any, any>;
|
50
|
-
newUser: any;
|
51
|
-
message: any;
|
52
|
-
status: string;
|
53
|
-
} | {
|
54
|
-
response: any;
|
55
|
-
newUser: any;
|
56
|
-
message: any;
|
57
|
-
status: string;
|
58
|
-
}>;
|
59
|
-
MakeUserPhonePrimary: (values: MakeUserPhonePrimaryInterface) => Promise<{
|
60
|
-
response: import("axios").AxiosResponse<any, any>;
|
61
|
-
newUser: any;
|
62
|
-
message: any;
|
63
|
-
status: string;
|
64
|
-
} | {
|
65
|
-
response: any;
|
66
|
-
newUser: any;
|
67
|
-
message: any;
|
68
|
-
status: string;
|
69
|
-
}>;
|
70
|
-
};
|
@@ -1,164 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.usePhone = void 0;
|
7
|
-
const dataStructure_1 = __importDefault(require("../helper/dataStructure"));
|
8
|
-
const helper_1 = __importDefault(require("../helper"));
|
9
|
-
const restApi_1 = __importDefault(require("../restApi"));
|
10
|
-
const usePhone = (token, userInfo, userId, baseUrl, geoCoordinates, lang) => {
|
11
|
-
const { checkResponse, headerConfig } = (0, helper_1.default)(userInfo);
|
12
|
-
const { checkGlobalResponse, errorHandler } = checkResponse();
|
13
|
-
const { dataPhone } = (0, dataStructure_1.default)();
|
14
|
-
const { confirmDataPhone, createDataPhone, deleteDataPhone, makePrimaryDataPhone, updateDataPhone, verifyDataPhone, } = dataPhone();
|
15
|
-
let endPointPhone = `v1/user/phone/${userId}`;
|
16
|
-
const headerConfigPhone = () => {
|
17
|
-
let headersData = {
|
18
|
-
header: true,
|
19
|
-
isUrlEncoded: false,
|
20
|
-
token: token,
|
21
|
-
lang: lang,
|
22
|
-
};
|
23
|
-
let headers = headerConfig(headersData);
|
24
|
-
return headers;
|
25
|
-
};
|
26
|
-
const CreateUserPhone = async (values) => {
|
27
|
-
let data = createDataPhone({ ...values, geoCoordinates: geoCoordinates });
|
28
|
-
try {
|
29
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", endPointPhone, headerConfigPhone(), data);
|
30
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "CreateUserPhone", "create");
|
31
|
-
return {
|
32
|
-
response: response,
|
33
|
-
newUser: newUserInfo,
|
34
|
-
message: response?.data?.result?.message ?? "Phone Created Successfully",
|
35
|
-
status: "success",
|
36
|
-
};
|
37
|
-
}
|
38
|
-
catch (error) {
|
39
|
-
return {
|
40
|
-
response: error.response,
|
41
|
-
newUser: null,
|
42
|
-
message: error.message,
|
43
|
-
status: "failed",
|
44
|
-
};
|
45
|
-
}
|
46
|
-
};
|
47
|
-
const DeleteUserPhone = async (values) => {
|
48
|
-
let data = deleteDataPhone({ ...values, geoCoordinates: geoCoordinates });
|
49
|
-
try {
|
50
|
-
const response = await restApi_1.default.restApi(baseUrl, "DELETE", endPointPhone, headerConfigPhone(), data);
|
51
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "DeleteUserPhone", "delete");
|
52
|
-
return {
|
53
|
-
response: response,
|
54
|
-
newUser: newUserInfo,
|
55
|
-
message: response?.data?.result?.message ?? "Phone Deleted Successfully",
|
56
|
-
status: "success",
|
57
|
-
};
|
58
|
-
}
|
59
|
-
catch (error) {
|
60
|
-
return {
|
61
|
-
response: error.response,
|
62
|
-
newUser: null,
|
63
|
-
message: error.message,
|
64
|
-
status: "failed",
|
65
|
-
};
|
66
|
-
}
|
67
|
-
};
|
68
|
-
const VerifyUserPhone = async (values) => {
|
69
|
-
let data = verifyDataPhone({ ...values, geoCoordinates: geoCoordinates });
|
70
|
-
try {
|
71
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", `v1/user/security/verify/${userId}`, headerConfigPhone(), data);
|
72
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "VerifyUserPhone");
|
73
|
-
return {
|
74
|
-
response: response,
|
75
|
-
newUser: newUserInfo,
|
76
|
-
message: "Verification Code Message Sent Successfully",
|
77
|
-
status: "success",
|
78
|
-
};
|
79
|
-
}
|
80
|
-
catch (error) {
|
81
|
-
return {
|
82
|
-
response: error.response,
|
83
|
-
newUser: null,
|
84
|
-
message: error.message,
|
85
|
-
status: "failed",
|
86
|
-
};
|
87
|
-
}
|
88
|
-
};
|
89
|
-
const ConfirmUserPhone = async (values) => {
|
90
|
-
let data = confirmDataPhone({ ...values, geoCoordinates: geoCoordinates });
|
91
|
-
try {
|
92
|
-
const response = await restApi_1.default.restApi(baseUrl, "POST", `v1/user/security/confirm/${userId}`, headerConfigPhone(), data);
|
93
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "ConfirmUserPhone", "confirm");
|
94
|
-
return {
|
95
|
-
response: response,
|
96
|
-
newUser: newUserInfo,
|
97
|
-
message: response?.data?.result?.message ?? "Phone Confirmed Successfully",
|
98
|
-
status: "success",
|
99
|
-
};
|
100
|
-
}
|
101
|
-
catch (error) {
|
102
|
-
return {
|
103
|
-
response: error.response,
|
104
|
-
newUser: null,
|
105
|
-
message: error.message,
|
106
|
-
status: "failed",
|
107
|
-
};
|
108
|
-
}
|
109
|
-
};
|
110
|
-
const UpdateUserPhone = async (values) => {
|
111
|
-
let data = updateDataPhone({ ...values, geoCoordinates: geoCoordinates });
|
112
|
-
try {
|
113
|
-
const response = await restApi_1.default.restApi(baseUrl, "PUT", endPointPhone, headerConfigPhone(), data);
|
114
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "UpdateUserPhone", "update");
|
115
|
-
return {
|
116
|
-
response: response,
|
117
|
-
newUser: newUserInfo,
|
118
|
-
message: response?.data?.result?.message ?? "Phone Updated Successfully",
|
119
|
-
status: "success",
|
120
|
-
};
|
121
|
-
}
|
122
|
-
catch (error) {
|
123
|
-
return {
|
124
|
-
response: error.response,
|
125
|
-
newUser: null,
|
126
|
-
message: error.message,
|
127
|
-
status: "failed",
|
128
|
-
};
|
129
|
-
}
|
130
|
-
};
|
131
|
-
const MakeUserPhonePrimary = async (values) => {
|
132
|
-
let data = makePrimaryDataPhone({
|
133
|
-
...values,
|
134
|
-
geoCoordinates: geoCoordinates,
|
135
|
-
});
|
136
|
-
try {
|
137
|
-
const response = await restApi_1.default.restApi(baseUrl, "PUT", endPointPhone, headerConfigPhone(), data);
|
138
|
-
let { newUserInfo } = checkGlobalResponse("phone", response, "MakeUserPhonePrimary", "updatePrimary");
|
139
|
-
return {
|
140
|
-
response: response,
|
141
|
-
newUser: newUserInfo,
|
142
|
-
message: response?.data?.result?.message ?? `${values.number} Now Is Primary`,
|
143
|
-
status: "success",
|
144
|
-
};
|
145
|
-
}
|
146
|
-
catch (error) {
|
147
|
-
return {
|
148
|
-
response: error.response,
|
149
|
-
newUser: null,
|
150
|
-
message: error.message,
|
151
|
-
status: "failed",
|
152
|
-
};
|
153
|
-
}
|
154
|
-
};
|
155
|
-
return {
|
156
|
-
CreateUserPhone,
|
157
|
-
DeleteUserPhone,
|
158
|
-
VerifyUserPhone,
|
159
|
-
ConfirmUserPhone,
|
160
|
-
UpdateUserPhone,
|
161
|
-
MakeUserPhonePrimary,
|
162
|
-
};
|
163
|
-
};
|
164
|
-
exports.usePhone = usePhone;
|