@stashfin/grpc 1.2.764 → 1.2.765

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.
Files changed (363) hide show
  1. package/package.json +1 -1
  2. package/ts/banking/aa/getaasupport.js +2 -2
  3. package/ts/banking/aa/getbanklist.js +2 -2
  4. package/ts/banking/aa/getcustomerbank.js +2 -2
  5. package/ts/banking/aa/getrpdlink.js +2 -2
  6. package/ts/banking/aa/initiate.js +2 -2
  7. package/ts/banking/aa/initiatepennydrop.js +2 -2
  8. package/ts/banking/aa/netbankinginitiate.js +2 -2
  9. package/ts/banking/aa/pollingrpd.js +2 -2
  10. package/ts/banking.d.ts +16 -16
  11. package/ts/banking.js +2 -2
  12. package/ts/bbps/getbills.js +2 -2
  13. package/ts/bbps.d.ts +2 -2
  14. package/ts/bbps.js +2 -2
  15. package/ts/bureau/getbasicdetails.js +2 -2
  16. package/ts/bureau/getbureauscore.js +2 -2
  17. package/ts/bureau/getcibilwebtoken.js +2 -2
  18. package/ts/bureau/getdbrcolending.js +2 -2
  19. package/ts/bureau/getdemogs.js +2 -2
  20. package/ts/bureau/getobligation.js +2 -2
  21. package/ts/bureau/getreport.js +2 -2
  22. package/ts/bureau/ischrenabled.js +2 -2
  23. package/ts/bureau.d.ts +16 -16
  24. package/ts/bureau.js +2 -2
  25. package/ts/ckyc/ckycdownload.js +2 -2
  26. package/ts/ckyc/ckycsearch.js +2 -2
  27. package/ts/ckyc.d.ts +4 -4
  28. package/ts/ckyc.js +2 -2
  29. package/ts/colender/disburseLoan.js +2 -2
  30. package/ts/colender/forecloseLoan.js +2 -2
  31. package/ts/colender/repayLoan.js +2 -2
  32. package/ts/colender.d.ts +6 -6
  33. package/ts/colender.js +2 -2
  34. package/ts/communications/bureauidwhatsapp.d.ts +38 -0
  35. package/ts/communications/bureauidwhatsapp.js +161 -0
  36. package/ts/communications.d.ts +28 -0
  37. package/ts/communications.js +24 -0
  38. package/ts/customers/aa/getaatxnstatus.js +2 -2
  39. package/ts/customers/aa/getbanklist.js +2 -2
  40. package/ts/customers/aa/initiate.js +2 -2
  41. package/ts/customers/accidentprotectionplan.js +2 -2
  42. package/ts/customers/addaddress.js +2 -2
  43. package/ts/customers/addbankaccountdetails.js +2 -2
  44. package/ts/customers/addfathersname.js +2 -2
  45. package/ts/customers/addgstnumber.js +2 -2
  46. package/ts/customers/addmoredetails.js +2 -2
  47. package/ts/customers/addsuspendedcustomer.js +2 -2
  48. package/ts/customers/adduserapps.d.ts +2 -2
  49. package/ts/customers/adduserapps.js +2 -2
  50. package/ts/customers/applyclijourney.js +2 -2
  51. package/ts/customers/bulksms.js +2 -2
  52. package/ts/customers/cb/cbapplicationrejecteddata.js +2 -2
  53. package/ts/customers/cb/cbpaynow.js +2 -2
  54. package/ts/customers/cb/cbsignup.js +2 -2
  55. package/ts/customers/cb/getcbtxnstatus.js +2 -2
  56. package/ts/customers/cb/getcreditbuilder.js +2 -2
  57. package/ts/customers/cb/getpaymentsummary.js +2 -2
  58. package/ts/customers/cb/insurancedetails.js +2 -2
  59. package/ts/customers/cb/lesscsimprove.js +2 -2
  60. package/ts/customers/cb/morecsimprove.js +2 -2
  61. package/ts/customers/cb/paynow.d.ts +36 -0
  62. package/ts/customers/cb/paynow.js +133 -0
  63. package/ts/customers/cb/savecreditbuilder.js +2 -2
  64. package/ts/customers/cb/updatecbstandalonecancellation.js +2 -2
  65. package/ts/customers/cb/updatecbstandaloneconfirmation.js +2 -2
  66. package/ts/customers/cb/updatecbstandalonejourney.js +2 -2
  67. package/ts/customers/cb/updatecbtxnstatus.js +2 -2
  68. package/ts/customers/changempin.js +2 -2
  69. package/ts/customers/createcustomerreference.js +2 -2
  70. package/ts/customers/createvanumber.js +2 -2
  71. package/ts/customers/customerinfo.js +2 -2
  72. package/ts/customers/deletedocument.js +2 -2
  73. package/ts/customers/deleteprofile.js +2 -2
  74. package/ts/customers/disablempin.js +2 -2
  75. package/ts/customers/enach/gettxnstatus.js +2 -2
  76. package/ts/customers/enach/getweburl.js +2 -2
  77. package/ts/customers/enach/updateenachtxnstatus.js +2 -2
  78. package/ts/customers/enach/updatetxnstatus.d.ts +36 -0
  79. package/ts/customers/enach/updatetxnstatus.js +133 -0
  80. package/ts/customers/fetchrcprofile.js +2 -2
  81. package/ts/customers/floatingvideos.js +2 -2
  82. package/ts/customers/forceupdate.js +2 -2
  83. package/ts/customers/forgotmpin.js +2 -2
  84. package/ts/customers/forgotmpinverify.js +2 -2
  85. package/ts/customers/freedom/addressconfirmation.js +2 -2
  86. package/ts/customers/freedom/freedompaynow.js +2 -2
  87. package/ts/customers/freedom/getfreedomtxnstatus.js +2 -2
  88. package/ts/customers/freedom/updateadditionalverification.js +2 -2
  89. package/ts/customers/freedom/updatefreedomtxnstatus.js +2 -2
  90. package/ts/customers/getaddresslist.js +2 -2
  91. package/ts/customers/getappsubmittedscreen.js +2 -2
  92. package/ts/customers/getbankaccountdetails.js +2 -2
  93. package/ts/customers/getbasicinfo.js +2 -2
  94. package/ts/customers/getcities.js +2 -2
  95. package/ts/customers/getclistatus.js +2 -2
  96. package/ts/customers/getcompanyaccdetails.js +2 -2
  97. package/ts/customers/getcustomerbyid.js +2 -2
  98. package/ts/customers/getcustomerdetailsbymobile.js +2 -2
  99. package/ts/customers/getdashboard.js +2 -2
  100. package/ts/customers/getdashboardmaincard.js +2 -2
  101. package/ts/customers/getdocuments.js +2 -2
  102. package/ts/customers/getglobalpopups.js +2 -2
  103. package/ts/customers/getlimit.js +2 -2
  104. package/ts/customers/getloclimit.js +2 -2
  105. package/ts/customers/getmessengermode.js +2 -2
  106. package/ts/customers/getoccupationlist.js +2 -2
  107. package/ts/customers/getpaymentoptions.js +2 -2
  108. package/ts/customers/getprofessionalinfo.js +2 -2
  109. package/ts/customers/getprofile.js +2 -2
  110. package/ts/customers/getselfieetxnid.js +2 -2
  111. package/ts/customers/getstates.js +2 -2
  112. package/ts/customers/getstep.js +2 -2
  113. package/ts/customers/getsyncstatus.js +2 -2
  114. package/ts/customers/getvanumber.js +2 -2
  115. package/ts/customers/lamf/applylamf.js +2 -2
  116. package/ts/customers/lamf/sendlamfotp.js +2 -2
  117. package/ts/customers/lamf/sendlamfpledgeotp.js +2 -2
  118. package/ts/customers/lamf/updatelamfjourney.d.ts +34 -0
  119. package/ts/customers/lamf/updatelamfjourney.js +104 -0
  120. package/ts/customers/lamf/verifylamfotp.js +2 -2
  121. package/ts/customers/lamf/verifylamfpledgeotp.js +2 -2
  122. package/ts/customers/logout.js +2 -2
  123. package/ts/customers/pd/getbanklist.js +2 -2
  124. package/ts/customers/pd/validatebankaccount.js +2 -2
  125. package/ts/customers/profilebasic.js +2 -2
  126. package/ts/customers/profileupdatetnc.js +2 -2
  127. package/ts/customers/resetbanner.js +2 -2
  128. package/ts/customers/restoreaccount.js +2 -2
  129. package/ts/customers/rpd/getrpdlink.js +2 -2
  130. package/ts/customers/rpd/getrpdtransactionstatus.js +2 -2
  131. package/ts/customers/rpd/mockpayment.js +2 -2
  132. package/ts/customers/saveappslist.js +2 -2
  133. package/ts/customers/savebasicdetails.js +2 -2
  134. package/ts/customers/savelimit.js +2 -2
  135. package/ts/customers/saveunlocklimit.js +2 -2
  136. package/ts/customers/sendotp.js +2 -2
  137. package/ts/customers/sendotptoemail.js +2 -2
  138. package/ts/customers/setmpin.js +2 -2
  139. package/ts/customers/skipscreen.js +2 -2
  140. package/ts/customers/submituploadeddocuments.js +2 -2
  141. package/ts/customers/syncdecisionengine.js +2 -2
  142. package/ts/customers/updatecategory.js +2 -2
  143. package/ts/customers/updatecongratulationstep.js +2 -2
  144. package/ts/customers/updatecustomerbyid.js +2 -2
  145. package/ts/customers/updatedlnumber.js +2 -2
  146. package/ts/customers/updatedob.js +2 -2
  147. package/ts/customers/updatelocstatus.js +2 -2
  148. package/ts/customers/updatemobilesendotp.js +2 -2
  149. package/ts/customers/updatemobileverifyotp.js +2 -2
  150. package/ts/customers/updateokyctxn.js +2 -2
  151. package/ts/customers/updatesanctionamount.js +2 -2
  152. package/ts/customers/updateselfieetxn.js +2 -2
  153. package/ts/customers/updatesyncstatus.js +2 -2
  154. package/ts/customers/updatevehiclenumber.js +2 -2
  155. package/ts/customers/uploaddocuments.js +2 -2
  156. package/ts/customers/validatepan.js +2 -2
  157. package/ts/customers/verifympin.js +2 -2
  158. package/ts/customers/verifyotp.js +2 -2
  159. package/ts/customers/verifyotptoemail.js +2 -2
  160. package/ts/customers.d.ts +238 -238
  161. package/ts/customers.js +2 -2
  162. package/ts/decisionengine/decisionengine.d.ts +40 -0
  163. package/ts/decisionengine/decisionengine.js +191 -0
  164. package/ts/decisionengine/decisionenginetrigger.js +2 -2
  165. package/ts/decisionengine/locdisbursalapproval.js +2 -2
  166. package/ts/decisionengine/saveconsent.js +2 -2
  167. package/ts/decisionengine.d.ts +6 -6
  168. package/ts/decisionengine.js +2 -2
  169. package/ts/deveqxcustomers.d.ts +30 -30
  170. package/ts/deveqxcustomers.js +2 -2
  171. package/ts/devupi.d.ts +54 -54
  172. package/ts/devupi.js +2 -2
  173. package/ts/documents/getagreement.js +2 -2
  174. package/ts/documents/getfinancialdoc.js +2 -2
  175. package/ts/documents.d.ts +4 -4
  176. package/ts/documents.js +2 -2
  177. package/ts/eqxcustomer.d.ts +44 -44
  178. package/ts/eqxcustomer.js +2 -2
  179. package/ts/eqxcustomers/authenticateuser.js +2 -2
  180. package/ts/eqxcustomers/creditguidance.js +2 -2
  181. package/ts/eqxcustomers/getbankaccount.js +2 -2
  182. package/ts/eqxcustomers/getcustomerbyid.js +2 -2
  183. package/ts/eqxcustomers/getcustomerbymobile.js +2 -2
  184. package/ts/eqxcustomers/getdashboard.js +2 -2
  185. package/ts/eqxcustomers/getdashboardmaincard.js +2 -2
  186. package/ts/eqxcustomers/getlandinghomepage.js +2 -2
  187. package/ts/eqxcustomers/getloanplans.js +2 -2
  188. package/ts/eqxcustomers/getnotifications.js +2 -2
  189. package/ts/eqxcustomers/getstashscorecustomerprofile.js +2 -2
  190. package/ts/eqxcustomers/gettnc.js +2 -2
  191. package/ts/eqxcustomers/gettokens.js +2 -2
  192. package/ts/eqxcustomers/iscustomerregistered.js +2 -2
  193. package/ts/eqxcustomers/sendotp.js +2 -2
  194. package/ts/eqxcustomers/truecallerlogin.js +2 -2
  195. package/ts/eqxcustomers/updatecustomer.js +2 -2
  196. package/ts/eqxcustomers/updatenotification.js +2 -2
  197. package/ts/eqxcustomers/updatepushid.js +2 -2
  198. package/ts/eqxcustomers/updatesubscriptionstatus.js +2 -2
  199. package/ts/eqxcustomers/verifyotp.js +2 -2
  200. package/ts/eqxcustomers/verifytoken.js +2 -2
  201. package/ts/example.d.ts +4 -4
  202. package/ts/example.js +2 -2
  203. package/ts/feepayments/getbanklist.js +2 -2
  204. package/ts/feepayments.d.ts +2 -2
  205. package/ts/feepayments.js +2 -2
  206. package/ts/growth/checkplanstatus.d.ts +48 -0
  207. package/ts/growth/checkplanstatus.js +200 -0
  208. package/ts/growth/getattachplandetails.d.ts +53 -0
  209. package/ts/growth/getattachplandetails.js +270 -0
  210. package/ts/growth/getchrpaymentstatus.d.ts +49 -0
  211. package/ts/growth/getchrpaymentstatus.js +213 -0
  212. package/ts/growth/getchrpdfurl.js +2 -2
  213. package/ts/growth/getchrplans.d.ts +49 -0
  214. package/ts/growth/getchrplans.js +212 -0
  215. package/ts/growth/getchrreport.d.ts +67 -0
  216. package/ts/growth/getchrreport.js +504 -0
  217. package/ts/growth/getchrreportdata.js +2 -2
  218. package/ts/growth/getchrsubscriptionplan.js +2 -2
  219. package/ts/growth/getchrvideourl.js +2 -2
  220. package/ts/growth/getcredithealthreport.d.ts +98 -0
  221. package/ts/growth/getcredithealthreport.js +617 -0
  222. package/ts/growth/initiatepayment.d.ts +52 -0
  223. package/ts/growth/initiatepayment.js +259 -0
  224. package/ts/growth/notifychrpayment.d.ts +42 -0
  225. package/ts/growth/notifychrpayment.js +219 -0
  226. package/ts/growth/processchrpayment.d.ts +39 -0
  227. package/ts/growth/processchrpayment.js +177 -0
  228. package/ts/growth.d.ts +8 -8
  229. package/ts/growth.js +2 -2
  230. package/ts/kyc/amldetails.js +2 -2
  231. package/ts/kyc/authbridgepancomprehend.js +2 -2
  232. package/ts/kyc/bureauidwhatsapp.js +2 -2
  233. package/ts/kyc/facematch.js +2 -2
  234. package/ts/kyc/fetchaadhaarbypan.js +2 -2
  235. package/ts/kyc/fetchemploymenthistory.js +2 -2
  236. package/ts/kyc/fetchuanlist.js +2 -2
  237. package/ts/kyc/getselfietxnid.js +2 -2
  238. package/ts/kyc/getselfieurl.js +2 -2
  239. package/ts/kyc/nsdlpanvalidate.js +2 -2
  240. package/ts/kyc/okyclinkhyperverge.d.ts +62 -0
  241. package/ts/kyc/okyclinkhyperverge.js +281 -0
  242. package/ts/kyc.d.ts +34 -20
  243. package/ts/kyc.js +12 -2
  244. package/ts/lamf/getloandetails.js +2 -2
  245. package/ts/lamf/submitotp.js +2 -2
  246. package/ts/lamf/validateuser.js +2 -2
  247. package/ts/lamf.d.ts +6 -6
  248. package/ts/lamf.js +2 -2
  249. package/ts/loans/addreference.js +2 -2
  250. package/ts/loans/amortization.js +2 -2
  251. package/ts/loans/approveloan.js +2 -2
  252. package/ts/loans/banklist.js +2 -2
  253. package/ts/loans/calculateemi.js +2 -2
  254. package/ts/loans/cbloan.js +2 -2
  255. package/ts/loans/createlamfloan.js +2 -2
  256. package/ts/loans/createpenalty.js +2 -2
  257. package/ts/loans/creditlimit.js +2 -2
  258. package/ts/loans/emimoredetails.js +2 -2
  259. package/ts/loans/fcppayment.js +2 -2
  260. package/ts/loans/forecloseamount.d.ts +36 -0
  261. package/ts/loans/forecloseamount.js +133 -0
  262. package/ts/loans/foreclosepayment.js +2 -2
  263. package/ts/loans/futurepaymentmoredetails.d.ts +51 -0
  264. package/ts/loans/futurepaymentmoredetails.js +243 -0
  265. package/ts/loans/getaddonslist.js +2 -2
  266. package/ts/loans/getbankdetails.js +2 -2
  267. package/ts/loans/getbilldetails.js +2 -2
  268. package/ts/loans/getcbloandetails.js +2 -2
  269. package/ts/loans/getchrdetails.js +2 -2
  270. package/ts/loans/getcustomerloanstatus.js +2 -2
  271. package/ts/loans/getforecloseamount.js +2 -2
  272. package/ts/loans/getloanbyid.js +2 -2
  273. package/ts/loans/getlocconfirms.js +2 -2
  274. package/ts/loans/getlocdetails.js +2 -2
  275. package/ts/loans/getlocdisburse.js +2 -2
  276. package/ts/loans/getloctenure.js +2 -2
  277. package/ts/loans/getlocwithdraw.js +2 -2
  278. package/ts/loans/getlocwithdrawform.js +2 -2
  279. package/ts/loans/getnextdueamount.js +2 -2
  280. package/ts/loans/getpaymentoptions.js +2 -2
  281. package/ts/loans/getpendingemiamount.js +2 -2
  282. package/ts/loans/getsetubilldetails.js +2 -2
  283. package/ts/loans/getsummarystaticfields.js +2 -2
  284. package/ts/loans/gettransactionstatus.js +2 -2
  285. package/ts/loans/getusedlimit.js +2 -2
  286. package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
  287. package/ts/loans/getvirtualaccountnumber.js +117 -0
  288. package/ts/loans/getvirtualbankinfo.js +2 -2
  289. package/ts/loans/loansummary.js +2 -2
  290. package/ts/loans/locrequested.js +2 -2
  291. package/ts/loans/manualpaymentallocation.js +2 -2
  292. package/ts/loans/paymentallocation.js +2 -2
  293. package/ts/loans/paymenthistory.js +2 -2
  294. package/ts/loans/paynow.js +2 -2
  295. package/ts/loans/refund.js +2 -2
  296. package/ts/loans/restructureloan.js +2 -2
  297. package/ts/loans/rollback.js +2 -2
  298. package/ts/loans/rollbackextrapayment.d.ts +37 -0
  299. package/ts/loans/rollbackextrapayment.js +149 -0
  300. package/ts/loans/sendemail.js +2 -2
  301. package/ts/loans/sendnocemail.js +2 -2
  302. package/ts/loans/transactionlist.js +2 -2
  303. package/ts/loans/updatecollectionview.js +2 -2
  304. package/ts/loans/updateinstallments.js +2 -2
  305. package/ts/loans/updateloan.js +2 -2
  306. package/ts/loans/updatetransactionstatus.js +2 -2
  307. package/ts/loans.d.ts +100 -100
  308. package/ts/loans.js +2 -2
  309. package/ts/payments/checkpaymentstatus.js +2 -2
  310. package/ts/payments/fundtransfer.js +2 -2
  311. package/ts/payments/getpaymentoptions.js +2 -2
  312. package/ts/payments/initiatepayment.js +2 -2
  313. package/ts/payments/nachpresentation.js +2 -2
  314. package/ts/payments/nachregistration.js +2 -2
  315. package/ts/payments.d.ts +12 -12
  316. package/ts/payments.js +2 -2
  317. package/ts/paymentsnode.d.ts +12 -12
  318. package/ts/paymentsnode.js +2 -2
  319. package/ts/rewards/getoffers.js +2 -2
  320. package/ts/rewards/redeemoffer.js +2 -2
  321. package/ts/rewards.d.ts +4 -4
  322. package/ts/rewards.js +2 -2
  323. package/ts/stashcash/creditsc.js +2 -2
  324. package/ts/stashcash/debitsc.js +2 -2
  325. package/ts/stashcash/getearnings.js +2 -2
  326. package/ts/stashcash/getscbalance.js +2 -2
  327. package/ts/stashcash/getschistory.js +2 -2
  328. package/ts/stashcash/reversesc.js +2 -2
  329. package/ts/stashcash.d.ts +12 -12
  330. package/ts/stashcash.js +2 -2
  331. package/ts/upi/addaccount.js +2 -2
  332. package/ts/upi/blockvpa.js +2 -2
  333. package/ts/upi/checkderegisterpermission.js +2 -2
  334. package/ts/upi/checktransactionstatus.js +2 -2
  335. package/ts/upi/declinemandate.js +2 -2
  336. package/ts/upi/deregisterprofile.js +2 -2
  337. package/ts/upi/getaccountsbyprovider.js +2 -2
  338. package/ts/upi/getallmandates.js +2 -2
  339. package/ts/upi/getavailablevpa.js +2 -2
  340. package/ts/upi/getlistedaccountproviders.js +2 -2
  341. package/ts/upi/getmandatedetails.js +2 -2
  342. package/ts/upi/getmandatehistory.js +2 -2
  343. package/ts/upi/getpendingcollectrequest.js +2 -2
  344. package/ts/upi/getprofile.js +2 -2
  345. package/ts/upi/getrecentcontacts.js +2 -2
  346. package/ts/upi/gettransactions.js +2 -2
  347. package/ts/upi/getupinumbers.js +2 -2
  348. package/ts/upi/initiatemandateaction.js +2 -2
  349. package/ts/upi/initiatetransaction.js +2 -2
  350. package/ts/upi/listblockedvpa.js +2 -2
  351. package/ts/upi/unblockvpa.js +2 -2
  352. package/ts/upi/updatedevicebinding.js +2 -2
  353. package/ts/upi/updatedevicelinking.d.ts +49 -0
  354. package/ts/upi/updatedevicelinking.js +332 -0
  355. package/ts/upi/upinumberoperations.js +2 -2
  356. package/ts/upi/validateifsc.js +2 -2
  357. package/ts/upi/validatevpa.js +2 -2
  358. package/ts/upi.d.ts +54 -54
  359. package/ts/upi.js +2 -2
  360. package/ts/eqxcustomers/getlandingtoken.d.ts +0 -38
  361. package/ts/eqxcustomers/getlandingtoken.js +0 -165
  362. package/ts/eqxcustomers/registerlandingcustomer.d.ts +0 -109
  363. package/ts/eqxcustomers/registerlandingcustomer.js +0 -822
@@ -1,822 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.181.2
5
- // protoc v5.29.3
6
- // source: eqxcustomers/registerlandingcustomer.proto
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.registerlandingCustomerResponse = exports.DeviceInfo = exports.Position = exports.AppInfo = exports.registerlandingCustomerRequest = exports.Source = exports.protobufPackage = void 0;
12
- exports.sourceFromJSON = sourceFromJSON;
13
- exports.sourceToJSON = sourceToJSON;
14
- /* eslint-disable */
15
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
16
- exports.protobufPackage = "eqxcustomers.registerlandingcustomer";
17
- var Source;
18
- (function (Source) {
19
- Source[Source["android"] = 0] = "android";
20
- Source[Source["ios"] = 1] = "ios";
21
- Source[Source["web"] = 2] = "web";
22
- Source[Source["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
23
- })(Source || (exports.Source = Source = {}));
24
- function sourceFromJSON(object) {
25
- switch (object) {
26
- case 0:
27
- case "android":
28
- return Source.android;
29
- case 1:
30
- case "ios":
31
- return Source.ios;
32
- case 2:
33
- case "web":
34
- return Source.web;
35
- case -1:
36
- case "UNRECOGNIZED":
37
- default:
38
- return Source.UNRECOGNIZED;
39
- }
40
- }
41
- function sourceToJSON(object) {
42
- switch (object) {
43
- case Source.android:
44
- return "android";
45
- case Source.ios:
46
- return "ios";
47
- case Source.web:
48
- return "web";
49
- case Source.UNRECOGNIZED:
50
- default:
51
- return "UNRECOGNIZED";
52
- }
53
- }
54
- function createBaseregisterlandingCustomerRequest() {
55
- return {
56
- mobile_number: "",
57
- apps: [],
58
- positions: [],
59
- device_id: undefined,
60
- source: 0,
61
- device_version: undefined,
62
- device_info: undefined,
63
- customer_id: undefined,
64
- };
65
- }
66
- exports.registerlandingCustomerRequest = {
67
- encode(message, writer = minimal_1.default.Writer.create()) {
68
- if (message.mobile_number !== "") {
69
- writer.uint32(10).string(message.mobile_number);
70
- }
71
- for (const v of message.apps) {
72
- exports.AppInfo.encode(v, writer.uint32(18).fork()).ldelim();
73
- }
74
- for (const v of message.positions) {
75
- exports.Position.encode(v, writer.uint32(26).fork()).ldelim();
76
- }
77
- if (message.device_id !== undefined) {
78
- writer.uint32(34).string(message.device_id);
79
- }
80
- if (message.source !== 0) {
81
- writer.uint32(40).int32(message.source);
82
- }
83
- if (message.device_version !== undefined) {
84
- writer.uint32(50).string(message.device_version);
85
- }
86
- if (message.device_info !== undefined) {
87
- exports.DeviceInfo.encode(message.device_info, writer.uint32(58).fork()).ldelim();
88
- }
89
- if (message.customer_id !== undefined) {
90
- writer.uint32(66).string(message.customer_id);
91
- }
92
- return writer;
93
- },
94
- decode(input, length) {
95
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
96
- let end = length === undefined ? reader.len : reader.pos + length;
97
- const message = createBaseregisterlandingCustomerRequest();
98
- while (reader.pos < end) {
99
- const tag = reader.uint32();
100
- switch (tag >>> 3) {
101
- case 1:
102
- if (tag !== 10) {
103
- break;
104
- }
105
- message.mobile_number = reader.string();
106
- continue;
107
- case 2:
108
- if (tag !== 18) {
109
- break;
110
- }
111
- message.apps.push(exports.AppInfo.decode(reader, reader.uint32()));
112
- continue;
113
- case 3:
114
- if (tag !== 26) {
115
- break;
116
- }
117
- message.positions.push(exports.Position.decode(reader, reader.uint32()));
118
- continue;
119
- case 4:
120
- if (tag !== 34) {
121
- break;
122
- }
123
- message.device_id = reader.string();
124
- continue;
125
- case 5:
126
- if (tag !== 40) {
127
- break;
128
- }
129
- message.source = reader.int32();
130
- continue;
131
- case 6:
132
- if (tag !== 50) {
133
- break;
134
- }
135
- message.device_version = reader.string();
136
- continue;
137
- case 7:
138
- if (tag !== 58) {
139
- break;
140
- }
141
- message.device_info = exports.DeviceInfo.decode(reader, reader.uint32());
142
- continue;
143
- case 8:
144
- if (tag !== 66) {
145
- break;
146
- }
147
- message.customer_id = reader.string();
148
- continue;
149
- }
150
- if ((tag & 7) === 4 || tag === 0) {
151
- break;
152
- }
153
- reader.skipType(tag & 7);
154
- }
155
- return message;
156
- },
157
- fromJSON(object) {
158
- return {
159
- mobile_number: isSet(object.mobile_number) ? globalThis.String(object.mobile_number) : "",
160
- apps: globalThis.Array.isArray(object?.apps) ? object.apps.map((e) => exports.AppInfo.fromJSON(e)) : [],
161
- positions: globalThis.Array.isArray(object?.positions)
162
- ? object.positions.map((e) => exports.Position.fromJSON(e))
163
- : [],
164
- device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
165
- source: isSet(object.source) ? sourceFromJSON(object.source) : 0,
166
- device_version: isSet(object.device_version) ? globalThis.String(object.device_version) : undefined,
167
- device_info: isSet(object.device_info) ? exports.DeviceInfo.fromJSON(object.device_info) : undefined,
168
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
169
- };
170
- },
171
- toJSON(message) {
172
- const obj = {};
173
- if (message.mobile_number !== "") {
174
- obj.mobile_number = message.mobile_number;
175
- }
176
- if (message.apps?.length) {
177
- obj.apps = message.apps.map((e) => exports.AppInfo.toJSON(e));
178
- }
179
- if (message.positions?.length) {
180
- obj.positions = message.positions.map((e) => exports.Position.toJSON(e));
181
- }
182
- if (message.device_id !== undefined) {
183
- obj.device_id = message.device_id;
184
- }
185
- if (message.source !== 0) {
186
- obj.source = sourceToJSON(message.source);
187
- }
188
- if (message.device_version !== undefined) {
189
- obj.device_version = message.device_version;
190
- }
191
- if (message.device_info !== undefined) {
192
- obj.device_info = exports.DeviceInfo.toJSON(message.device_info);
193
- }
194
- if (message.customer_id !== undefined) {
195
- obj.customer_id = message.customer_id;
196
- }
197
- return obj;
198
- },
199
- create(base) {
200
- return exports.registerlandingCustomerRequest.fromPartial(base ?? {});
201
- },
202
- fromPartial(object) {
203
- const message = createBaseregisterlandingCustomerRequest();
204
- message.mobile_number = object.mobile_number ?? "";
205
- message.apps = object.apps?.map((e) => exports.AppInfo.fromPartial(e)) || [];
206
- message.positions = object.positions?.map((e) => exports.Position.fromPartial(e)) || [];
207
- message.device_id = object.device_id ?? undefined;
208
- message.source = object.source ?? 0;
209
- message.device_version = object.device_version ?? undefined;
210
- message.device_info = (object.device_info !== undefined && object.device_info !== null)
211
- ? exports.DeviceInfo.fromPartial(object.device_info)
212
- : undefined;
213
- message.customer_id = object.customer_id ?? undefined;
214
- return message;
215
- },
216
- };
217
- function createBaseAppInfo() {
218
- return {
219
- appName: undefined,
220
- packageName: undefined,
221
- versionName: undefined,
222
- versionCode: undefined,
223
- installation_date: undefined,
224
- lastUsed: undefined,
225
- };
226
- }
227
- exports.AppInfo = {
228
- encode(message, writer = minimal_1.default.Writer.create()) {
229
- if (message.appName !== undefined) {
230
- writer.uint32(10).string(message.appName);
231
- }
232
- if (message.packageName !== undefined) {
233
- writer.uint32(18).string(message.packageName);
234
- }
235
- if (message.versionName !== undefined) {
236
- writer.uint32(26).string(message.versionName);
237
- }
238
- if (message.versionCode !== undefined) {
239
- writer.uint32(34).string(message.versionCode);
240
- }
241
- if (message.installation_date !== undefined) {
242
- writer.uint32(42).string(message.installation_date);
243
- }
244
- if (message.lastUsed !== undefined) {
245
- writer.uint32(50).string(message.lastUsed);
246
- }
247
- return writer;
248
- },
249
- decode(input, length) {
250
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
251
- let end = length === undefined ? reader.len : reader.pos + length;
252
- const message = createBaseAppInfo();
253
- while (reader.pos < end) {
254
- const tag = reader.uint32();
255
- switch (tag >>> 3) {
256
- case 1:
257
- if (tag !== 10) {
258
- break;
259
- }
260
- message.appName = reader.string();
261
- continue;
262
- case 2:
263
- if (tag !== 18) {
264
- break;
265
- }
266
- message.packageName = reader.string();
267
- continue;
268
- case 3:
269
- if (tag !== 26) {
270
- break;
271
- }
272
- message.versionName = reader.string();
273
- continue;
274
- case 4:
275
- if (tag !== 34) {
276
- break;
277
- }
278
- message.versionCode = reader.string();
279
- continue;
280
- case 5:
281
- if (tag !== 42) {
282
- break;
283
- }
284
- message.installation_date = reader.string();
285
- continue;
286
- case 6:
287
- if (tag !== 50) {
288
- break;
289
- }
290
- message.lastUsed = reader.string();
291
- continue;
292
- }
293
- if ((tag & 7) === 4 || tag === 0) {
294
- break;
295
- }
296
- reader.skipType(tag & 7);
297
- }
298
- return message;
299
- },
300
- fromJSON(object) {
301
- return {
302
- appName: isSet(object.appName) ? globalThis.String(object.appName) : undefined,
303
- packageName: isSet(object.packageName) ? globalThis.String(object.packageName) : undefined,
304
- versionName: isSet(object.versionName) ? globalThis.String(object.versionName) : undefined,
305
- versionCode: isSet(object.versionCode) ? globalThis.String(object.versionCode) : undefined,
306
- installation_date: isSet(object.installation_date) ? globalThis.String(object.installation_date) : undefined,
307
- lastUsed: isSet(object.lastUsed) ? globalThis.String(object.lastUsed) : undefined,
308
- };
309
- },
310
- toJSON(message) {
311
- const obj = {};
312
- if (message.appName !== undefined) {
313
- obj.appName = message.appName;
314
- }
315
- if (message.packageName !== undefined) {
316
- obj.packageName = message.packageName;
317
- }
318
- if (message.versionName !== undefined) {
319
- obj.versionName = message.versionName;
320
- }
321
- if (message.versionCode !== undefined) {
322
- obj.versionCode = message.versionCode;
323
- }
324
- if (message.installation_date !== undefined) {
325
- obj.installation_date = message.installation_date;
326
- }
327
- if (message.lastUsed !== undefined) {
328
- obj.lastUsed = message.lastUsed;
329
- }
330
- return obj;
331
- },
332
- create(base) {
333
- return exports.AppInfo.fromPartial(base ?? {});
334
- },
335
- fromPartial(object) {
336
- const message = createBaseAppInfo();
337
- message.appName = object.appName ?? undefined;
338
- message.packageName = object.packageName ?? undefined;
339
- message.versionName = object.versionName ?? undefined;
340
- message.versionCode = object.versionCode ?? undefined;
341
- message.installation_date = object.installation_date ?? undefined;
342
- message.lastUsed = object.lastUsed ?? undefined;
343
- return message;
344
- },
345
- };
346
- function createBasePosition() {
347
- return {
348
- lati: undefined,
349
- longi: undefined,
350
- created_date: undefined,
351
- distance: undefined,
352
- accuracy: undefined,
353
- is_mock: undefined,
354
- mock_app: undefined,
355
- };
356
- }
357
- exports.Position = {
358
- encode(message, writer = minimal_1.default.Writer.create()) {
359
- if (message.lati !== undefined) {
360
- writer.uint32(9).double(message.lati);
361
- }
362
- if (message.longi !== undefined) {
363
- writer.uint32(17).double(message.longi);
364
- }
365
- if (message.created_date !== undefined) {
366
- writer.uint32(26).string(message.created_date);
367
- }
368
- if (message.distance !== undefined) {
369
- writer.uint32(34).string(message.distance);
370
- }
371
- if (message.accuracy !== undefined) {
372
- writer.uint32(41).double(message.accuracy);
373
- }
374
- if (message.is_mock !== undefined) {
375
- writer.uint32(50).string(message.is_mock);
376
- }
377
- if (message.mock_app !== undefined) {
378
- writer.uint32(58).string(message.mock_app);
379
- }
380
- return writer;
381
- },
382
- decode(input, length) {
383
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
384
- let end = length === undefined ? reader.len : reader.pos + length;
385
- const message = createBasePosition();
386
- while (reader.pos < end) {
387
- const tag = reader.uint32();
388
- switch (tag >>> 3) {
389
- case 1:
390
- if (tag !== 9) {
391
- break;
392
- }
393
- message.lati = reader.double();
394
- continue;
395
- case 2:
396
- if (tag !== 17) {
397
- break;
398
- }
399
- message.longi = reader.double();
400
- continue;
401
- case 3:
402
- if (tag !== 26) {
403
- break;
404
- }
405
- message.created_date = reader.string();
406
- continue;
407
- case 4:
408
- if (tag !== 34) {
409
- break;
410
- }
411
- message.distance = reader.string();
412
- continue;
413
- case 5:
414
- if (tag !== 41) {
415
- break;
416
- }
417
- message.accuracy = reader.double();
418
- continue;
419
- case 6:
420
- if (tag !== 50) {
421
- break;
422
- }
423
- message.is_mock = reader.string();
424
- continue;
425
- case 7:
426
- if (tag !== 58) {
427
- break;
428
- }
429
- message.mock_app = reader.string();
430
- continue;
431
- }
432
- if ((tag & 7) === 4 || tag === 0) {
433
- break;
434
- }
435
- reader.skipType(tag & 7);
436
- }
437
- return message;
438
- },
439
- fromJSON(object) {
440
- return {
441
- lati: isSet(object.lati) ? globalThis.Number(object.lati) : undefined,
442
- longi: isSet(object.longi) ? globalThis.Number(object.longi) : undefined,
443
- created_date: isSet(object.created_date) ? globalThis.String(object.created_date) : undefined,
444
- distance: isSet(object.distance) ? globalThis.String(object.distance) : undefined,
445
- accuracy: isSet(object.accuracy) ? globalThis.Number(object.accuracy) : undefined,
446
- is_mock: isSet(object.is_mock) ? globalThis.String(object.is_mock) : undefined,
447
- mock_app: isSet(object.mock_app) ? globalThis.String(object.mock_app) : undefined,
448
- };
449
- },
450
- toJSON(message) {
451
- const obj = {};
452
- if (message.lati !== undefined) {
453
- obj.lati = message.lati;
454
- }
455
- if (message.longi !== undefined) {
456
- obj.longi = message.longi;
457
- }
458
- if (message.created_date !== undefined) {
459
- obj.created_date = message.created_date;
460
- }
461
- if (message.distance !== undefined) {
462
- obj.distance = message.distance;
463
- }
464
- if (message.accuracy !== undefined) {
465
- obj.accuracy = message.accuracy;
466
- }
467
- if (message.is_mock !== undefined) {
468
- obj.is_mock = message.is_mock;
469
- }
470
- if (message.mock_app !== undefined) {
471
- obj.mock_app = message.mock_app;
472
- }
473
- return obj;
474
- },
475
- create(base) {
476
- return exports.Position.fromPartial(base ?? {});
477
- },
478
- fromPartial(object) {
479
- const message = createBasePosition();
480
- message.lati = object.lati ?? undefined;
481
- message.longi = object.longi ?? undefined;
482
- message.created_date = object.created_date ?? undefined;
483
- message.distance = object.distance ?? undefined;
484
- message.accuracy = object.accuracy ?? undefined;
485
- message.is_mock = object.is_mock ?? undefined;
486
- message.mock_app = object.mock_app ?? undefined;
487
- return message;
488
- },
489
- };
490
- function createBaseDeviceInfo() {
491
- return {
492
- used_ram: undefined,
493
- product: undefined,
494
- device_id: undefined,
495
- app_version: undefined,
496
- manufacture: undefined,
497
- osVersion: undefined,
498
- device_hash: undefined,
499
- kernelVersion: undefined,
500
- is_rooted: undefined,
501
- device_storage: undefined,
502
- model: undefined,
503
- device: undefined,
504
- brand: undefined,
505
- hardware: undefined,
506
- total_ram: undefined,
507
- };
508
- }
509
- exports.DeviceInfo = {
510
- encode(message, writer = minimal_1.default.Writer.create()) {
511
- if (message.used_ram !== undefined) {
512
- writer.uint32(10).string(message.used_ram);
513
- }
514
- if (message.product !== undefined) {
515
- writer.uint32(18).string(message.product);
516
- }
517
- if (message.device_id !== undefined) {
518
- writer.uint32(26).string(message.device_id);
519
- }
520
- if (message.app_version !== undefined) {
521
- writer.uint32(34).string(message.app_version);
522
- }
523
- if (message.manufacture !== undefined) {
524
- writer.uint32(42).string(message.manufacture);
525
- }
526
- if (message.osVersion !== undefined) {
527
- writer.uint32(50).string(message.osVersion);
528
- }
529
- if (message.device_hash !== undefined) {
530
- writer.uint32(58).string(message.device_hash);
531
- }
532
- if (message.kernelVersion !== undefined) {
533
- writer.uint32(66).string(message.kernelVersion);
534
- }
535
- if (message.is_rooted !== undefined) {
536
- writer.uint32(74).string(message.is_rooted);
537
- }
538
- if (message.device_storage !== undefined) {
539
- writer.uint32(82).string(message.device_storage);
540
- }
541
- if (message.model !== undefined) {
542
- writer.uint32(90).string(message.model);
543
- }
544
- if (message.device !== undefined) {
545
- writer.uint32(98).string(message.device);
546
- }
547
- if (message.brand !== undefined) {
548
- writer.uint32(106).string(message.brand);
549
- }
550
- if (message.hardware !== undefined) {
551
- writer.uint32(114).string(message.hardware);
552
- }
553
- if (message.total_ram !== undefined) {
554
- writer.uint32(122).string(message.total_ram);
555
- }
556
- return writer;
557
- },
558
- decode(input, length) {
559
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
560
- let end = length === undefined ? reader.len : reader.pos + length;
561
- const message = createBaseDeviceInfo();
562
- while (reader.pos < end) {
563
- const tag = reader.uint32();
564
- switch (tag >>> 3) {
565
- case 1:
566
- if (tag !== 10) {
567
- break;
568
- }
569
- message.used_ram = reader.string();
570
- continue;
571
- case 2:
572
- if (tag !== 18) {
573
- break;
574
- }
575
- message.product = reader.string();
576
- continue;
577
- case 3:
578
- if (tag !== 26) {
579
- break;
580
- }
581
- message.device_id = reader.string();
582
- continue;
583
- case 4:
584
- if (tag !== 34) {
585
- break;
586
- }
587
- message.app_version = reader.string();
588
- continue;
589
- case 5:
590
- if (tag !== 42) {
591
- break;
592
- }
593
- message.manufacture = reader.string();
594
- continue;
595
- case 6:
596
- if (tag !== 50) {
597
- break;
598
- }
599
- message.osVersion = reader.string();
600
- continue;
601
- case 7:
602
- if (tag !== 58) {
603
- break;
604
- }
605
- message.device_hash = reader.string();
606
- continue;
607
- case 8:
608
- if (tag !== 66) {
609
- break;
610
- }
611
- message.kernelVersion = reader.string();
612
- continue;
613
- case 9:
614
- if (tag !== 74) {
615
- break;
616
- }
617
- message.is_rooted = reader.string();
618
- continue;
619
- case 10:
620
- if (tag !== 82) {
621
- break;
622
- }
623
- message.device_storage = reader.string();
624
- continue;
625
- case 11:
626
- if (tag !== 90) {
627
- break;
628
- }
629
- message.model = reader.string();
630
- continue;
631
- case 12:
632
- if (tag !== 98) {
633
- break;
634
- }
635
- message.device = reader.string();
636
- continue;
637
- case 13:
638
- if (tag !== 106) {
639
- break;
640
- }
641
- message.brand = reader.string();
642
- continue;
643
- case 14:
644
- if (tag !== 114) {
645
- break;
646
- }
647
- message.hardware = reader.string();
648
- continue;
649
- case 15:
650
- if (tag !== 122) {
651
- break;
652
- }
653
- message.total_ram = reader.string();
654
- continue;
655
- }
656
- if ((tag & 7) === 4 || tag === 0) {
657
- break;
658
- }
659
- reader.skipType(tag & 7);
660
- }
661
- return message;
662
- },
663
- fromJSON(object) {
664
- return {
665
- used_ram: isSet(object.used_ram) ? globalThis.String(object.used_ram) : undefined,
666
- product: isSet(object.product) ? globalThis.String(object.product) : undefined,
667
- device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
668
- app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : undefined,
669
- manufacture: isSet(object.manufacture) ? globalThis.String(object.manufacture) : undefined,
670
- osVersion: isSet(object.osVersion) ? globalThis.String(object.osVersion) : undefined,
671
- device_hash: isSet(object.device_hash) ? globalThis.String(object.device_hash) : undefined,
672
- kernelVersion: isSet(object.kernelVersion) ? globalThis.String(object.kernelVersion) : undefined,
673
- is_rooted: isSet(object.is_rooted) ? globalThis.String(object.is_rooted) : undefined,
674
- device_storage: isSet(object.device_storage) ? globalThis.String(object.device_storage) : undefined,
675
- model: isSet(object.model) ? globalThis.String(object.model) : undefined,
676
- device: isSet(object.device) ? globalThis.String(object.device) : undefined,
677
- brand: isSet(object.brand) ? globalThis.String(object.brand) : undefined,
678
- hardware: isSet(object.hardware) ? globalThis.String(object.hardware) : undefined,
679
- total_ram: isSet(object.total_ram) ? globalThis.String(object.total_ram) : undefined,
680
- };
681
- },
682
- toJSON(message) {
683
- const obj = {};
684
- if (message.used_ram !== undefined) {
685
- obj.used_ram = message.used_ram;
686
- }
687
- if (message.product !== undefined) {
688
- obj.product = message.product;
689
- }
690
- if (message.device_id !== undefined) {
691
- obj.device_id = message.device_id;
692
- }
693
- if (message.app_version !== undefined) {
694
- obj.app_version = message.app_version;
695
- }
696
- if (message.manufacture !== undefined) {
697
- obj.manufacture = message.manufacture;
698
- }
699
- if (message.osVersion !== undefined) {
700
- obj.osVersion = message.osVersion;
701
- }
702
- if (message.device_hash !== undefined) {
703
- obj.device_hash = message.device_hash;
704
- }
705
- if (message.kernelVersion !== undefined) {
706
- obj.kernelVersion = message.kernelVersion;
707
- }
708
- if (message.is_rooted !== undefined) {
709
- obj.is_rooted = message.is_rooted;
710
- }
711
- if (message.device_storage !== undefined) {
712
- obj.device_storage = message.device_storage;
713
- }
714
- if (message.model !== undefined) {
715
- obj.model = message.model;
716
- }
717
- if (message.device !== undefined) {
718
- obj.device = message.device;
719
- }
720
- if (message.brand !== undefined) {
721
- obj.brand = message.brand;
722
- }
723
- if (message.hardware !== undefined) {
724
- obj.hardware = message.hardware;
725
- }
726
- if (message.total_ram !== undefined) {
727
- obj.total_ram = message.total_ram;
728
- }
729
- return obj;
730
- },
731
- create(base) {
732
- return exports.DeviceInfo.fromPartial(base ?? {});
733
- },
734
- fromPartial(object) {
735
- const message = createBaseDeviceInfo();
736
- message.used_ram = object.used_ram ?? undefined;
737
- message.product = object.product ?? undefined;
738
- message.device_id = object.device_id ?? undefined;
739
- message.app_version = object.app_version ?? undefined;
740
- message.manufacture = object.manufacture ?? undefined;
741
- message.osVersion = object.osVersion ?? undefined;
742
- message.device_hash = object.device_hash ?? undefined;
743
- message.kernelVersion = object.kernelVersion ?? undefined;
744
- message.is_rooted = object.is_rooted ?? undefined;
745
- message.device_storage = object.device_storage ?? undefined;
746
- message.model = object.model ?? undefined;
747
- message.device = object.device ?? undefined;
748
- message.brand = object.brand ?? undefined;
749
- message.hardware = object.hardware ?? undefined;
750
- message.total_ram = object.total_ram ?? undefined;
751
- return message;
752
- },
753
- };
754
- function createBaseregisterlandingCustomerResponse() {
755
- return { customer_id: "", token: "" };
756
- }
757
- exports.registerlandingCustomerResponse = {
758
- encode(message, writer = minimal_1.default.Writer.create()) {
759
- if (message.customer_id !== "") {
760
- writer.uint32(10).string(message.customer_id);
761
- }
762
- if (message.token !== "") {
763
- writer.uint32(18).string(message.token);
764
- }
765
- return writer;
766
- },
767
- decode(input, length) {
768
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
769
- let end = length === undefined ? reader.len : reader.pos + length;
770
- const message = createBaseregisterlandingCustomerResponse();
771
- while (reader.pos < end) {
772
- const tag = reader.uint32();
773
- switch (tag >>> 3) {
774
- case 1:
775
- if (tag !== 10) {
776
- break;
777
- }
778
- message.customer_id = reader.string();
779
- continue;
780
- case 2:
781
- if (tag !== 18) {
782
- break;
783
- }
784
- message.token = reader.string();
785
- continue;
786
- }
787
- if ((tag & 7) === 4 || tag === 0) {
788
- break;
789
- }
790
- reader.skipType(tag & 7);
791
- }
792
- return message;
793
- },
794
- fromJSON(object) {
795
- return {
796
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
797
- token: isSet(object.token) ? globalThis.String(object.token) : "",
798
- };
799
- },
800
- toJSON(message) {
801
- const obj = {};
802
- if (message.customer_id !== "") {
803
- obj.customer_id = message.customer_id;
804
- }
805
- if (message.token !== "") {
806
- obj.token = message.token;
807
- }
808
- return obj;
809
- },
810
- create(base) {
811
- return exports.registerlandingCustomerResponse.fromPartial(base ?? {});
812
- },
813
- fromPartial(object) {
814
- const message = createBaseregisterlandingCustomerResponse();
815
- message.customer_id = object.customer_id ?? "";
816
- message.token = object.token ?? "";
817
- return message;
818
- },
819
- };
820
- function isSet(value) {
821
- return value !== null && value !== undefined;
822
- }