@stashfin/grpc 1.2.54 → 1.2.59

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 (216) hide show
  1. package/package.json +3 -3
  2. package/ts/customers/addaddress.d.ts +50 -0
  3. package/ts/customers/addaddress.js +265 -0
  4. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  5. package/ts/customers/addbankaccountdetails.js +147 -0
  6. package/ts/customers/createcustomerreference.d.ts +43 -0
  7. package/ts/customers/createcustomerreference.js +226 -0
  8. package/ts/customers/forgotmpin.d.ts +36 -0
  9. package/ts/customers/forgotmpin.js +133 -0
  10. package/ts/customers/forgotmpinotp.d.ts +34 -0
  11. package/ts/customers/forgotmpinotp.js +104 -0
  12. package/ts/customers/getbankaccountdetails.d.ts +36 -0
  13. package/ts/customers/getbankaccountdetails.js +134 -0
  14. package/ts/customers/getbasicinfo.d.ts +56 -0
  15. package/ts/customers/getbasicinfo.js +323 -0
  16. package/ts/customers/getcities.d.ts +47 -0
  17. package/ts/customers/getcities.js +183 -0
  18. package/ts/customers/getcustomerbyid.d.ts +55 -0
  19. package/ts/customers/getcustomerbyid.js +421 -0
  20. package/ts/customers/getdashboard.d.ts +91 -0
  21. package/ts/customers/getdashboard.js +618 -0
  22. package/ts/customers/getdashboardmaincard.d.ts +69 -0
  23. package/ts/customers/getdashboardmaincard.js +520 -0
  24. package/ts/customers/getkycweburl.d.ts +34 -0
  25. package/ts/customers/getkycweburl.js +104 -0
  26. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  27. package/ts/customers/getprofessionalinfo.js +286 -0
  28. package/ts/customers/getprofile.d.ts +53 -0
  29. package/ts/customers/getprofile.js +282 -0
  30. package/ts/customers/getstates.d.ts +46 -0
  31. package/ts/customers/getstates.js +170 -0
  32. package/ts/customers/getstep.d.ts +69 -0
  33. package/ts/customers/getstep.js +406 -0
  34. package/ts/customers/profilebasic.d.ts +38 -0
  35. package/ts/customers/profilebasic.js +161 -0
  36. package/ts/customers/profileupdatetnc.d.ts +35 -0
  37. package/ts/customers/profileupdatetnc.js +117 -0
  38. package/ts/customers/resetmpin.d.ts +36 -0
  39. package/ts/customers/resetmpin.js +133 -0
  40. package/ts/customers/savebasicdetails.d.ts +47 -0
  41. package/ts/customers/savebasicdetails.js +185 -0
  42. package/ts/customers/saveunlocklimit.d.ts +34 -0
  43. package/ts/customers/saveunlocklimit.js +104 -0
  44. package/ts/customers/sendemailtoken.d.ts +35 -0
  45. package/ts/customers/sendemailtoken.js +117 -0
  46. package/ts/customers/sendotp.d.ts +38 -0
  47. package/ts/customers/sendotp.js +165 -0
  48. package/ts/customers/setmpin.d.ts +36 -0
  49. package/ts/customers/setmpin.js +133 -0
  50. package/ts/customers/step1.d.ts +71 -0
  51. package/ts/customers/step1.js +423 -0
  52. package/ts/customers/step10.d.ts +73 -0
  53. package/ts/customers/step10.js +459 -0
  54. package/ts/customers/step2.d.ts +67 -0
  55. package/ts/customers/step2.js +366 -0
  56. package/ts/customers/step7.d.ts +68 -0
  57. package/ts/customers/step7.js +381 -0
  58. package/ts/customers/step8.d.ts +69 -0
  59. package/ts/customers/step8.js +395 -0
  60. package/ts/customers/step9.d.ts +75 -0
  61. package/ts/customers/step9.js +489 -0
  62. package/ts/customers/stepstatic.d.ts +66 -0
  63. package/ts/customers/stepstatic.js +354 -0
  64. package/ts/customers/updatedigilockertxn.d.ts +37 -0
  65. package/ts/customers/updatedigilockertxn.js +147 -0
  66. package/ts/customers/updatedob.d.ts +35 -0
  67. package/ts/customers/updatedob.js +117 -0
  68. package/ts/customers/updatehypervergetxn.d.ts +36 -0
  69. package/ts/customers/updatehypervergetxn.js +133 -0
  70. package/ts/customers/validatepan.d.ts +45 -0
  71. package/ts/customers/validatepan.js +274 -0
  72. package/ts/customers/verifyemail.d.ts +35 -0
  73. package/ts/customers/verifyemail.js +117 -0
  74. package/ts/customers/verifympin.d.ts +37 -0
  75. package/ts/customers/verifympin.js +149 -0
  76. package/ts/customers/verifyotp.d.ts +41 -0
  77. package/ts/customers/verifyotp.js +205 -0
  78. package/ts/customers.d.ts +596 -0
  79. package/ts/customers.js +428 -0
  80. package/ts/example.d.ts +78 -0
  81. package/ts/example.js +199 -0
  82. package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
  83. package/ts/google/protobuf/timestamp.js +97 -0
  84. package/ts/loans/approveloan.d.ts +39 -0
  85. package/ts/loans/approveloan.js +175 -0
  86. package/ts/loans/banklist.d.ts +37 -0
  87. package/ts/loans/banklist.js +148 -0
  88. package/ts/loans/calculateemi.d.ts +51 -0
  89. package/ts/loans/calculateemi.js +243 -0
  90. package/ts/loans/creditlimit.d.ts +43 -0
  91. package/ts/loans/creditlimit.js +247 -0
  92. package/ts/loans/restructureloan.d.ts +36 -0
  93. package/ts/loans/restructureloan.js +133 -0
  94. package/ts/loans/transactionlist.d.ts +50 -0
  95. package/ts/loans/transactionlist.js +229 -0
  96. package/ts/loans/updateinstallments.d.ts +42 -0
  97. package/ts/loans/updateinstallments.js +226 -0
  98. package/ts/loans/updateloan.d.ts +39 -0
  99. package/ts/loans/updateloan.js +175 -0
  100. package/ts/loans.d.ts +126 -0
  101. package/ts/loans.js +94 -0
  102. package/ts/stashcash/creditsc.d.ts +54 -0
  103. package/ts/stashcash/creditsc.js +301 -0
  104. package/ts/stashcash/debitsc.d.ts +59 -0
  105. package/ts/stashcash/debitsc.js +380 -0
  106. package/ts/stashcash/getscbalance.d.ts +53 -0
  107. package/ts/stashcash/getscbalance.js +293 -0
  108. package/ts/stashcash/getschistory.d.ts +73 -0
  109. package/ts/stashcash/getschistory.js +479 -0
  110. package/ts/stashcash/reversesc.d.ts +52 -0
  111. package/ts/stashcash/reversesc.js +273 -0
  112. package/ts/stashcash.d.ts +84 -0
  113. package/ts/stashcash.js +64 -0
  114. package/README.md +0 -74
  115. package/src/proto/customers/addaddress.proto +0 -25
  116. package/src/proto/customers/addbankaccountdetails.proto +0 -13
  117. package/src/proto/customers/createcustomerreference.proto +0 -21
  118. package/src/proto/customers/forgotmpin.proto +0 -12
  119. package/src/proto/customers/forgotmpinotp.proto +0 -10
  120. package/src/proto/customers/getbankaccountdetails.proto +0 -11
  121. package/src/proto/customers/getbasicinfo.proto +0 -24
  122. package/src/proto/customers/getcities.proto +0 -16
  123. package/src/proto/customers/getcustomerbyid.proto +0 -31
  124. package/src/proto/customers/getdashboard.proto +0 -47
  125. package/src/proto/customers/getdashboardmaincard.proto +0 -37
  126. package/src/proto/customers/getkycweburl.proto +0 -10
  127. package/src/proto/customers/getprofessionalinfo.proto +0 -22
  128. package/src/proto/customers/getprofile.proto +0 -22
  129. package/src/proto/customers/getstates.proto +0 -15
  130. package/src/proto/customers/getstep.proto +0 -30
  131. package/src/proto/customers/profilebasic.proto +0 -14
  132. package/src/proto/customers/profileupdatetnc.proto +0 -11
  133. package/src/proto/customers/resetmpin.proto +0 -13
  134. package/src/proto/customers/savebasicdetails.proto +0 -16
  135. package/src/proto/customers/saveunlocklimit.proto +0 -10
  136. package/src/proto/customers/sendemailtoken.proto +0 -11
  137. package/src/proto/customers/sendotp.proto +0 -14
  138. package/src/proto/customers/setmpin.proto +0 -12
  139. package/src/proto/customers/step10.proto +0 -34
  140. package/src/proto/customers/step7.proto +0 -29
  141. package/src/proto/customers/step8.proto +0 -30
  142. package/src/proto/customers/step9.proto +0 -36
  143. package/src/proto/customers/stepstatic.proto +0 -27
  144. package/src/proto/customers/updatedigilockertxn.proto +0 -13
  145. package/src/proto/customers/updatedob.proto +0 -13
  146. package/src/proto/customers/updatehypervergetxn.proto +0 -12
  147. package/src/proto/customers/verifyemail.proto +0 -11
  148. package/src/proto/customers/verifympin.proto +0 -13
  149. package/src/proto/customers/verifyotp.proto +0 -17
  150. package/src/proto/customers.proto +0 -83
  151. package/src/proto/example.proto +0 -20
  152. package/src/proto/loans/approveloan.proto +0 -15
  153. package/src/proto/loans/banklist.proto +0 -12
  154. package/src/proto/loans/calculateemi.proto +0 -20
  155. package/src/proto/loans/creditlimit.proto +0 -18
  156. package/src/proto/loans/restructureloan.proto +0 -12
  157. package/src/proto/loans/transactionlist.proto +0 -18
  158. package/src/proto/loans/updateinstallments.proto +0 -19
  159. package/src/proto/loans/updateloan.proto +0 -15
  160. package/src/proto/loans.proto +0 -23
  161. package/src/proto/stashcash/creditsc.proto +0 -22
  162. package/src/proto/stashcash/debitsc.proto +0 -27
  163. package/src/proto/stashcash/getscbalance.proto +0 -21
  164. package/src/proto/stashcash/getschistory.proto +0 -35
  165. package/src/proto/stashcash/reversesc.proto +0 -20
  166. package/src/proto/stashcash.proto +0 -17
  167. package/src/ts/customers/addaddress.ts +0 -310
  168. package/src/ts/customers/addbankaccountdetails.ts +0 -184
  169. package/src/ts/customers/createcustomerreference.ts +0 -276
  170. package/src/ts/customers/getbankaccountdetails.ts +0 -169
  171. package/src/ts/customers/getbasicinfo.ts +0 -385
  172. package/src/ts/customers/getcities.ts +0 -227
  173. package/src/ts/customers/getcustomerbyid.ts +0 -492
  174. package/src/ts/customers/getdashboard.ts +0 -728
  175. package/src/ts/customers/getdashboardmaincard.ts +0 -608
  176. package/src/ts/customers/getkycweburl.ts +0 -133
  177. package/src/ts/customers/getprofessionalinfo.ts +0 -344
  178. package/src/ts/customers/getprofile.ts +0 -338
  179. package/src/ts/customers/getstates.ts +0 -212
  180. package/src/ts/customers/getstep.ts +0 -483
  181. package/src/ts/customers/profilebasic.ts +0 -198
  182. package/src/ts/customers/profileupdatetnc.ts +0 -148
  183. package/src/ts/customers/resetmpin.ts +0 -166
  184. package/src/ts/customers/savebasicdetails.ts +0 -229
  185. package/src/ts/customers/saveunlocklimit.ts +0 -133
  186. package/src/ts/customers/sendemailtoken.ts +0 -148
  187. package/src/ts/customers/sendotp.ts +0 -202
  188. package/src/ts/customers/setmpin.ts +0 -166
  189. package/src/ts/customers/step10.ts +0 -544
  190. package/src/ts/customers/step7.ts +0 -456
  191. package/src/ts/customers/step8.ts +0 -472
  192. package/src/ts/customers/step9.ts +0 -578
  193. package/src/ts/customers/stepstatic.ts +0 -425
  194. package/src/ts/customers/updatedigilockertxn.ts +0 -182
  195. package/src/ts/customers/updatehypervergetxn.ts +0 -166
  196. package/src/ts/customers/verifyemail.ts +0 -148
  197. package/src/ts/customers/verifympin.ts +0 -184
  198. package/src/ts/customers/verifyotp.ts +0 -232
  199. package/src/ts/customers.ts +0 -1038
  200. package/src/ts/example.ts +0 -294
  201. package/src/ts/loans/approveloan.ts +0 -214
  202. package/src/ts/loans/banklist.ts +0 -183
  203. package/src/ts/loans/calculateemi.ts +0 -295
  204. package/src/ts/loans/creditlimit.ts +0 -294
  205. package/src/ts/loans/restructureloan.ts +0 -166
  206. package/src/ts/loans/transactionlist.ts +0 -281
  207. package/src/ts/loans/updateinstallments.ts +0 -271
  208. package/src/ts/loans/updateloan.ts +0 -214
  209. package/src/ts/loans.ts +0 -221
  210. package/src/ts/stashcash/creditsc.ts +0 -361
  211. package/src/ts/stashcash/debitsc.ts +0 -450
  212. package/src/ts/stashcash/getscbalance.ts +0 -351
  213. package/src/ts/stashcash/getschistory.ts +0 -566
  214. package/src/ts/stashcash/reversesc.ts +0 -329
  215. package/src/ts/stashcash.ts +0 -152
  216. package/tsconfig.json +0 -18
@@ -1,12 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.banklist;
4
-
5
- message bankListRequest { }
6
-
7
- message bankListResponse {
8
- int32 id = 1;
9
- int32 account_number = 2;
10
- string bank_name =3;
11
- int32 ifsc_code = 4;
12
- }
@@ -1,20 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.calculateemi;
4
-
5
- message calculateEmiRequest {
6
- int32 amount =1;
7
- }
8
-
9
- message calculateEmiResponse {
10
- int32 disbursal_amount = 1;
11
- int32 tenure = 2;
12
- repeated Field expected_emi =3;
13
- message Field {
14
- int32 tenure = 1;
15
- int32 emi_amount = 2;
16
- }
17
- int32 min_tenure = 4;
18
- int32 max_tenure = 5;
19
- }
20
-
@@ -1,18 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.creditlimit;
4
-
5
- message creditLimitRequest { }
6
-
7
- message creditLimitResponse {
8
- int32 loc_limit = 1;
9
- int32 used_limit = 2;
10
- int32 min_tenure = 3;
11
- int32 max_tenure = 4;
12
- int32 rate_of_interest = 5;
13
- int32 increment_step =6;
14
- bool loc_disable =7 ;
15
- int32 request_max_percentage =8;
16
- string bill_date= 9;
17
- int32 minimum_request_amount =10;
18
- }
@@ -1,12 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.restructureloan;
4
-
5
- message restructureLoanRequest {
6
- int32 loan_id = 1;
7
- int32 tenure = 2;
8
- }
9
-
10
- message restructureLoanResponse {
11
- int32 id = 1;
12
- }
@@ -1,18 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.transactionlist;
4
-
5
- message transactionListRequest {
6
- string filter_by = 1;
7
- }
8
-
9
- message transactionListResponse {
10
- repeated Field data = 1;
11
- message Field {
12
- int32 id = 1;
13
- int32 loan_amount = 2;
14
- int32 emi_amount = 3;
15
- string start_date = 4;
16
- string close_date = 5;
17
- }
18
- }
@@ -1,19 +0,0 @@
1
- syntax="proto3";
2
-
3
- package loans.updateinstallments;
4
-
5
- message updateInstallmentsRequest {
6
- int32 installment_id = 1;
7
- int32 principal = 2;
8
- int32 interest = 3;
9
- int32 penalty = 4;
10
- int32 r_pif_principal =5;
11
- int32 r_pif_interest =6;
12
- int32 r_pif_penalty=7;
13
- int32 amount = 8;
14
-
15
- }
16
-
17
- message updateInstallmentsResponse {
18
- int32 id = 1 ;
19
- }
@@ -1,15 +0,0 @@
1
- syntax="proto3";
2
- import "google/protobuf/timestamp.proto";
3
- package loans.updateloan;
4
-
5
- message updateLoanRequest {
6
- int32 loan_id =1;
7
- string status = 2;
8
- int32 disbursal_amount = 3;
9
- string disbursal_mode =4 ;
10
- int32 is_auto_processing =5;
11
- }
12
-
13
- message updateLoanResponse {
14
- int32 id = 1;
15
- }
@@ -1,23 +0,0 @@
1
-
2
- syntax = "proto3";
3
- package service;
4
-
5
- import "loans/creditlimit.proto";
6
- import "loans/calculateemi.proto";
7
- import "loans/banklist.proto";
8
- import "loans/approveloan.proto";
9
- import "loans/updateloan.proto";
10
- import "loans/updateinstallments.proto";
11
- import "loans/transactionlist.proto";
12
-
13
- service loans {
14
- rpc creditlimit(.loans.creditlimit.creditLimitRequest) returns (.loans.creditlimit.creditLimitResponse) {}
15
- rpc calculateemi(.loans.calculateemi.calculateEmiRequest) returns (.loans.calculateemi.calculateEmiResponse) {}
16
- rpc banklist(.loans.banklist.bankListRequest) returns (.loans.banklist.bankListResponse) {}
17
- rpc approveLoan(.loans.approveloan.approveLoanRequest) returns (.loans.approveloan.approveLoanResponse) {}
18
- rpc updateloan(.loans.updateloan.updateLoanRequest) returns (.loans.updateloan.updateLoanResponse) {}
19
- rpc updateInstallments(.loans.updateinstallments.updateInstallmentsRequest) returns (.loans.updateinstallments.updateInstallmentsResponse) {}
20
- rpc restructureLoan(.loans.restructureloan.restructureLoanRequest) returns (.loans.restructureloan.restructureLoanResponse) {}
21
- rpc transactionList(.loans.transactionlist.transactionListRequest) returns (.loans.transactionlist.transactionListResponse) {}
22
-
23
- }
@@ -1,22 +0,0 @@
1
- syntax="proto3";
2
-
3
- package stashcash.creditsc;
4
-
5
- message request {
6
- int64 customer_id = 1;
7
- int64 campaign_id = 2;
8
- float amount = 3;
9
- string sc_type = 4;
10
- optional string expiry = 5;
11
- }
12
-
13
- message response {
14
- string status = 1;
15
- message Data {
16
- float locked = 1;
17
- float unlocked = 2;
18
- float balance = 3;
19
- int64 txn_id = 4;
20
- }
21
- Data data = 2;
22
- }
@@ -1,27 +0,0 @@
1
- syntax="proto3";
2
-
3
- package stashcash.debitsc;
4
-
5
- message request {
6
- int64 customer_id = 1;
7
- int32 flag = 2;
8
- int64 campaign_id = 3;
9
- optional float amount = 4;
10
- optional string sc_type = 5;
11
- optional string txn_id = 6;
12
- }
13
-
14
- message response {
15
- string status = 1;
16
- message Data {
17
- optional float locked = 1;
18
- optional float unlocked = 2;
19
- optional float balance = 3;
20
- optional float rupee_balance = 4;
21
- string txn_id = 5;
22
- optional int32 conversion_factor = 6;
23
- string txn_status = 7;
24
- optional float txn_sc = 8;
25
- }
26
- optional Data data = 2;
27
- }
@@ -1,21 +0,0 @@
1
- syntax="proto3";
2
-
3
- package stashcash.getscbalance;
4
-
5
- message request {
6
- int64 customer_id = 1;
7
- }
8
-
9
- message response {
10
- string status = 1;
11
- message Data {
12
- float locked = 1;
13
- float unlocked = 2;
14
- float balance = 3;
15
- float rupee_balance = 4;
16
- bool user_guide = 5;
17
- bool is_frozen = 6;
18
- float conversion_factor = 7;
19
- }
20
- Data data = 2;
21
- }
@@ -1,35 +0,0 @@
1
- syntax="proto3";
2
-
3
- package stashcash.getschistory;
4
-
5
- message request {
6
- int64 customer_id = 1;
7
- string page = 2;
8
- string limit = 3;
9
- optional string filter_by = 4;
10
- }
11
-
12
- message response {
13
- string status = 1;
14
- Data data = 2;
15
- }
16
-
17
- message Data {
18
- repeated SCtransaction history = 1;
19
- }
20
-
21
- message SCtransaction {
22
- int64 id = 1;
23
- int64 customer_id = 2;
24
- int64 campaign_id = 3;
25
- string txn_id = 4;
26
- string sc_type = 5;
27
- double amount = 6;
28
- double remaining = 7;
29
- string txn_type = 8;
30
- string status = 9;
31
- optional string expiry = 10;
32
- string created_at = 11;
33
- bool is_active = 12;
34
- bool is_deleted = 13;
35
- }
@@ -1,20 +0,0 @@
1
- syntax="proto3";
2
-
3
- package stashcash.reversesc;
4
-
5
- message request {
6
- int64 txnid = 1;
7
- int64 customer_id = 2;
8
- string sc_type = 3;
9
- }
10
-
11
- message response {
12
- string status = 1;
13
- message Data {
14
- float locked = 1;
15
- float unlocked = 2;
16
- float balance = 3;
17
- int32 txn_id = 4;
18
- }
19
- Data data = 2;
20
- }
@@ -1,17 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package service;
4
-
5
- import "stashcash/getscbalance.proto";
6
- import "stashcash/creditsc.proto";
7
- import "stashcash/getschistory.proto";
8
- import "stashcash/reversesc.proto";
9
- import "stashcash/debitsc.proto";
10
-
11
- service stashcash {
12
- rpc getscbalance(.stashcash.getscbalance.request) returns (.stashcash.getscbalance.response) {}
13
- rpc creditsc(.stashcash.creditsc.request) returns (.stashcash.creditsc.response) {}
14
- rpc reversesc(.stashcash.reversesc.request) returns (.stashcash.reversesc.response) {}
15
- rpc getschistory(.stashcash.getschistory.request) returns (.stashcash.getschistory.response) {}
16
- rpc debitsc(.stashcash.debitsc.request) returns (.stashcash.debitsc.response) {}
17
- }
@@ -1,310 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.0
4
- // protoc v3.20.3
5
- // source: customers/addaddress.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "customers.addaddress";
11
-
12
- export enum AddressType {
13
- CURRENT = 0,
14
- PERMANENT = 1,
15
- OFFICE = 2,
16
- UNRECOGNIZED = -1,
17
- }
18
-
19
- export function addressTypeFromJSON(object: any): AddressType {
20
- switch (object) {
21
- case 0:
22
- case "CURRENT":
23
- return AddressType.CURRENT;
24
- case 1:
25
- case "PERMANENT":
26
- return AddressType.PERMANENT;
27
- case 2:
28
- case "OFFICE":
29
- return AddressType.OFFICE;
30
- case -1:
31
- case "UNRECOGNIZED":
32
- default:
33
- return AddressType.UNRECOGNIZED;
34
- }
35
- }
36
-
37
- export function addressTypeToJSON(object: AddressType): string {
38
- switch (object) {
39
- case AddressType.CURRENT:
40
- return "CURRENT";
41
- case AddressType.PERMANENT:
42
- return "PERMANENT";
43
- case AddressType.OFFICE:
44
- return "OFFICE";
45
- case AddressType.UNRECOGNIZED:
46
- default:
47
- return "UNRECOGNIZED";
48
- }
49
- }
50
-
51
- export interface addAddressRequest {
52
- address_type: AddressType;
53
- house_flat_no: string;
54
- address_line_1: string;
55
- address_line_2: string;
56
- landmark: string;
57
- state_id: number;
58
- city_id: number;
59
- pin_code: string;
60
- }
61
-
62
- export interface addAddressResponse {
63
- status: boolean;
64
- }
65
-
66
- function createBaseaddAddressRequest(): addAddressRequest {
67
- return {
68
- address_type: 0,
69
- house_flat_no: "",
70
- address_line_1: "",
71
- address_line_2: "",
72
- landmark: "",
73
- state_id: 0,
74
- city_id: 0,
75
- pin_code: "",
76
- };
77
- }
78
-
79
- export const addAddressRequest = {
80
- encode(message: addAddressRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
81
- if (message.address_type !== 0) {
82
- writer.uint32(8).int32(message.address_type);
83
- }
84
- if (message.house_flat_no !== "") {
85
- writer.uint32(18).string(message.house_flat_no);
86
- }
87
- if (message.address_line_1 !== "") {
88
- writer.uint32(26).string(message.address_line_1);
89
- }
90
- if (message.address_line_2 !== "") {
91
- writer.uint32(34).string(message.address_line_2);
92
- }
93
- if (message.landmark !== "") {
94
- writer.uint32(42).string(message.landmark);
95
- }
96
- if (message.state_id !== 0) {
97
- writer.uint32(56).int32(message.state_id);
98
- }
99
- if (message.city_id !== 0) {
100
- writer.uint32(64).int32(message.city_id);
101
- }
102
- if (message.pin_code !== "") {
103
- writer.uint32(74).string(message.pin_code);
104
- }
105
- return writer;
106
- },
107
-
108
- decode(input: _m0.Reader | Uint8Array, length?: number): addAddressRequest {
109
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
110
- let end = length === undefined ? reader.len : reader.pos + length;
111
- const message = createBaseaddAddressRequest();
112
- while (reader.pos < end) {
113
- const tag = reader.uint32();
114
- switch (tag >>> 3) {
115
- case 1:
116
- if (tag !== 8) {
117
- break;
118
- }
119
-
120
- message.address_type = reader.int32() as any;
121
- continue;
122
- case 2:
123
- if (tag !== 18) {
124
- break;
125
- }
126
-
127
- message.house_flat_no = reader.string();
128
- continue;
129
- case 3:
130
- if (tag !== 26) {
131
- break;
132
- }
133
-
134
- message.address_line_1 = reader.string();
135
- continue;
136
- case 4:
137
- if (tag !== 34) {
138
- break;
139
- }
140
-
141
- message.address_line_2 = reader.string();
142
- continue;
143
- case 5:
144
- if (tag !== 42) {
145
- break;
146
- }
147
-
148
- message.landmark = reader.string();
149
- continue;
150
- case 7:
151
- if (tag !== 56) {
152
- break;
153
- }
154
-
155
- message.state_id = reader.int32();
156
- continue;
157
- case 8:
158
- if (tag !== 64) {
159
- break;
160
- }
161
-
162
- message.city_id = reader.int32();
163
- continue;
164
- case 9:
165
- if (tag !== 74) {
166
- break;
167
- }
168
-
169
- message.pin_code = reader.string();
170
- continue;
171
- }
172
- if ((tag & 7) === 4 || tag === 0) {
173
- break;
174
- }
175
- reader.skipType(tag & 7);
176
- }
177
- return message;
178
- },
179
-
180
- fromJSON(object: any): addAddressRequest {
181
- return {
182
- address_type: isSet(object.address_type) ? addressTypeFromJSON(object.address_type) : 0,
183
- house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
184
- address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
185
- address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
186
- landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
187
- state_id: isSet(object.state_id) ? globalThis.Number(object.state_id) : 0,
188
- city_id: isSet(object.city_id) ? globalThis.Number(object.city_id) : 0,
189
- pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
190
- };
191
- },
192
-
193
- toJSON(message: addAddressRequest): unknown {
194
- const obj: any = {};
195
- if (message.address_type !== 0) {
196
- obj.address_type = addressTypeToJSON(message.address_type);
197
- }
198
- if (message.house_flat_no !== "") {
199
- obj.house_flat_no = message.house_flat_no;
200
- }
201
- if (message.address_line_1 !== "") {
202
- obj.address_line_1 = message.address_line_1;
203
- }
204
- if (message.address_line_2 !== "") {
205
- obj.address_line_2 = message.address_line_2;
206
- }
207
- if (message.landmark !== "") {
208
- obj.landmark = message.landmark;
209
- }
210
- if (message.state_id !== 0) {
211
- obj.state_id = Math.round(message.state_id);
212
- }
213
- if (message.city_id !== 0) {
214
- obj.city_id = Math.round(message.city_id);
215
- }
216
- if (message.pin_code !== "") {
217
- obj.pin_code = message.pin_code;
218
- }
219
- return obj;
220
- },
221
-
222
- create<I extends Exact<DeepPartial<addAddressRequest>, I>>(base?: I): addAddressRequest {
223
- return addAddressRequest.fromPartial(base ?? ({} as any));
224
- },
225
- fromPartial<I extends Exact<DeepPartial<addAddressRequest>, I>>(object: I): addAddressRequest {
226
- const message = createBaseaddAddressRequest();
227
- message.address_type = object.address_type ?? 0;
228
- message.house_flat_no = object.house_flat_no ?? "";
229
- message.address_line_1 = object.address_line_1 ?? "";
230
- message.address_line_2 = object.address_line_2 ?? "";
231
- message.landmark = object.landmark ?? "";
232
- message.state_id = object.state_id ?? 0;
233
- message.city_id = object.city_id ?? 0;
234
- message.pin_code = object.pin_code ?? "";
235
- return message;
236
- },
237
- };
238
-
239
- function createBaseaddAddressResponse(): addAddressResponse {
240
- return { status: false };
241
- }
242
-
243
- export const addAddressResponse = {
244
- encode(message: addAddressResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
245
- if (message.status !== false) {
246
- writer.uint32(8).bool(message.status);
247
- }
248
- return writer;
249
- },
250
-
251
- decode(input: _m0.Reader | Uint8Array, length?: number): addAddressResponse {
252
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
253
- let end = length === undefined ? reader.len : reader.pos + length;
254
- const message = createBaseaddAddressResponse();
255
- while (reader.pos < end) {
256
- const tag = reader.uint32();
257
- switch (tag >>> 3) {
258
- case 1:
259
- if (tag !== 8) {
260
- break;
261
- }
262
-
263
- message.status = reader.bool();
264
- continue;
265
- }
266
- if ((tag & 7) === 4 || tag === 0) {
267
- break;
268
- }
269
- reader.skipType(tag & 7);
270
- }
271
- return message;
272
- },
273
-
274
- fromJSON(object: any): addAddressResponse {
275
- return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
276
- },
277
-
278
- toJSON(message: addAddressResponse): unknown {
279
- const obj: any = {};
280
- if (message.status !== false) {
281
- obj.status = message.status;
282
- }
283
- return obj;
284
- },
285
-
286
- create<I extends Exact<DeepPartial<addAddressResponse>, I>>(base?: I): addAddressResponse {
287
- return addAddressResponse.fromPartial(base ?? ({} as any));
288
- },
289
- fromPartial<I extends Exact<DeepPartial<addAddressResponse>, I>>(object: I): addAddressResponse {
290
- const message = createBaseaddAddressResponse();
291
- message.status = object.status ?? false;
292
- return message;
293
- },
294
- };
295
-
296
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
297
-
298
- export type DeepPartial<T> = T extends Builtin ? T
299
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
300
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
301
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
302
- : Partial<T>;
303
-
304
- type KeysOfUnion<T> = T extends T ? keyof T : never;
305
- export type Exact<P, I extends P> = P extends Builtin ? P
306
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
307
-
308
- function isSet(value: any): boolean {
309
- return value !== null && value !== undefined;
310
- }