@stashfin/grpc 1.2.54 → 1.2.58

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 (214) 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/verifyemail.d.ts +35 -0
  71. package/ts/customers/verifyemail.js +117 -0
  72. package/ts/customers/verifympin.d.ts +37 -0
  73. package/ts/customers/verifympin.js +149 -0
  74. package/ts/customers/verifyotp.d.ts +41 -0
  75. package/ts/customers/verifyotp.js +205 -0
  76. package/ts/customers.d.ts +582 -0
  77. package/ts/customers.js +418 -0
  78. package/ts/example.d.ts +78 -0
  79. package/ts/example.js +199 -0
  80. package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
  81. package/ts/google/protobuf/timestamp.js +97 -0
  82. package/ts/loans/approveloan.d.ts +39 -0
  83. package/ts/loans/approveloan.js +175 -0
  84. package/ts/loans/banklist.d.ts +37 -0
  85. package/ts/loans/banklist.js +148 -0
  86. package/ts/loans/calculateemi.d.ts +51 -0
  87. package/ts/loans/calculateemi.js +243 -0
  88. package/ts/loans/creditlimit.d.ts +43 -0
  89. package/ts/loans/creditlimit.js +247 -0
  90. package/ts/loans/restructureloan.d.ts +36 -0
  91. package/ts/loans/restructureloan.js +133 -0
  92. package/ts/loans/transactionlist.d.ts +50 -0
  93. package/ts/loans/transactionlist.js +229 -0
  94. package/ts/loans/updateinstallments.d.ts +42 -0
  95. package/ts/loans/updateinstallments.js +226 -0
  96. package/ts/loans/updateloan.d.ts +39 -0
  97. package/ts/loans/updateloan.js +175 -0
  98. package/ts/loans.d.ts +126 -0
  99. package/ts/loans.js +94 -0
  100. package/ts/stashcash/creditsc.d.ts +54 -0
  101. package/ts/stashcash/creditsc.js +301 -0
  102. package/ts/stashcash/debitsc.d.ts +59 -0
  103. package/ts/stashcash/debitsc.js +380 -0
  104. package/ts/stashcash/getscbalance.d.ts +53 -0
  105. package/ts/stashcash/getscbalance.js +293 -0
  106. package/ts/stashcash/getschistory.d.ts +73 -0
  107. package/ts/stashcash/getschistory.js +479 -0
  108. package/ts/stashcash/reversesc.d.ts +52 -0
  109. package/ts/stashcash/reversesc.js +273 -0
  110. package/ts/stashcash.d.ts +84 -0
  111. package/ts/stashcash.js +64 -0
  112. package/README.md +0 -74
  113. package/src/proto/customers/addaddress.proto +0 -25
  114. package/src/proto/customers/addbankaccountdetails.proto +0 -13
  115. package/src/proto/customers/createcustomerreference.proto +0 -21
  116. package/src/proto/customers/forgotmpin.proto +0 -12
  117. package/src/proto/customers/forgotmpinotp.proto +0 -10
  118. package/src/proto/customers/getbankaccountdetails.proto +0 -11
  119. package/src/proto/customers/getbasicinfo.proto +0 -24
  120. package/src/proto/customers/getcities.proto +0 -16
  121. package/src/proto/customers/getcustomerbyid.proto +0 -31
  122. package/src/proto/customers/getdashboard.proto +0 -47
  123. package/src/proto/customers/getdashboardmaincard.proto +0 -37
  124. package/src/proto/customers/getkycweburl.proto +0 -10
  125. package/src/proto/customers/getprofessionalinfo.proto +0 -22
  126. package/src/proto/customers/getprofile.proto +0 -22
  127. package/src/proto/customers/getstates.proto +0 -15
  128. package/src/proto/customers/getstep.proto +0 -30
  129. package/src/proto/customers/profilebasic.proto +0 -14
  130. package/src/proto/customers/profileupdatetnc.proto +0 -11
  131. package/src/proto/customers/resetmpin.proto +0 -13
  132. package/src/proto/customers/savebasicdetails.proto +0 -16
  133. package/src/proto/customers/saveunlocklimit.proto +0 -10
  134. package/src/proto/customers/sendemailtoken.proto +0 -11
  135. package/src/proto/customers/sendotp.proto +0 -14
  136. package/src/proto/customers/setmpin.proto +0 -12
  137. package/src/proto/customers/step10.proto +0 -34
  138. package/src/proto/customers/step7.proto +0 -29
  139. package/src/proto/customers/step8.proto +0 -30
  140. package/src/proto/customers/step9.proto +0 -36
  141. package/src/proto/customers/stepstatic.proto +0 -27
  142. package/src/proto/customers/updatedigilockertxn.proto +0 -13
  143. package/src/proto/customers/updatedob.proto +0 -13
  144. package/src/proto/customers/updatehypervergetxn.proto +0 -12
  145. package/src/proto/customers/verifyemail.proto +0 -11
  146. package/src/proto/customers/verifympin.proto +0 -13
  147. package/src/proto/customers/verifyotp.proto +0 -17
  148. package/src/proto/customers.proto +0 -83
  149. package/src/proto/example.proto +0 -20
  150. package/src/proto/loans/approveloan.proto +0 -15
  151. package/src/proto/loans/banklist.proto +0 -12
  152. package/src/proto/loans/calculateemi.proto +0 -20
  153. package/src/proto/loans/creditlimit.proto +0 -18
  154. package/src/proto/loans/restructureloan.proto +0 -12
  155. package/src/proto/loans/transactionlist.proto +0 -18
  156. package/src/proto/loans/updateinstallments.proto +0 -19
  157. package/src/proto/loans/updateloan.proto +0 -15
  158. package/src/proto/loans.proto +0 -23
  159. package/src/proto/stashcash/creditsc.proto +0 -22
  160. package/src/proto/stashcash/debitsc.proto +0 -27
  161. package/src/proto/stashcash/getscbalance.proto +0 -21
  162. package/src/proto/stashcash/getschistory.proto +0 -35
  163. package/src/proto/stashcash/reversesc.proto +0 -20
  164. package/src/proto/stashcash.proto +0 -17
  165. package/src/ts/customers/addaddress.ts +0 -310
  166. package/src/ts/customers/addbankaccountdetails.ts +0 -184
  167. package/src/ts/customers/createcustomerreference.ts +0 -276
  168. package/src/ts/customers/getbankaccountdetails.ts +0 -169
  169. package/src/ts/customers/getbasicinfo.ts +0 -385
  170. package/src/ts/customers/getcities.ts +0 -227
  171. package/src/ts/customers/getcustomerbyid.ts +0 -492
  172. package/src/ts/customers/getdashboard.ts +0 -728
  173. package/src/ts/customers/getdashboardmaincard.ts +0 -608
  174. package/src/ts/customers/getkycweburl.ts +0 -133
  175. package/src/ts/customers/getprofessionalinfo.ts +0 -344
  176. package/src/ts/customers/getprofile.ts +0 -338
  177. package/src/ts/customers/getstates.ts +0 -212
  178. package/src/ts/customers/getstep.ts +0 -483
  179. package/src/ts/customers/profilebasic.ts +0 -198
  180. package/src/ts/customers/profileupdatetnc.ts +0 -148
  181. package/src/ts/customers/resetmpin.ts +0 -166
  182. package/src/ts/customers/savebasicdetails.ts +0 -229
  183. package/src/ts/customers/saveunlocklimit.ts +0 -133
  184. package/src/ts/customers/sendemailtoken.ts +0 -148
  185. package/src/ts/customers/sendotp.ts +0 -202
  186. package/src/ts/customers/setmpin.ts +0 -166
  187. package/src/ts/customers/step10.ts +0 -544
  188. package/src/ts/customers/step7.ts +0 -456
  189. package/src/ts/customers/step8.ts +0 -472
  190. package/src/ts/customers/step9.ts +0 -578
  191. package/src/ts/customers/stepstatic.ts +0 -425
  192. package/src/ts/customers/updatedigilockertxn.ts +0 -182
  193. package/src/ts/customers/updatehypervergetxn.ts +0 -166
  194. package/src/ts/customers/verifyemail.ts +0 -148
  195. package/src/ts/customers/verifympin.ts +0 -184
  196. package/src/ts/customers/verifyotp.ts +0 -232
  197. package/src/ts/customers.ts +0 -1038
  198. package/src/ts/example.ts +0 -294
  199. package/src/ts/loans/approveloan.ts +0 -214
  200. package/src/ts/loans/banklist.ts +0 -183
  201. package/src/ts/loans/calculateemi.ts +0 -295
  202. package/src/ts/loans/creditlimit.ts +0 -294
  203. package/src/ts/loans/restructureloan.ts +0 -166
  204. package/src/ts/loans/transactionlist.ts +0 -281
  205. package/src/ts/loans/updateinstallments.ts +0 -271
  206. package/src/ts/loans/updateloan.ts +0 -214
  207. package/src/ts/loans.ts +0 -221
  208. package/src/ts/stashcash/creditsc.ts +0 -361
  209. package/src/ts/stashcash/debitsc.ts +0 -450
  210. package/src/ts/stashcash/getscbalance.ts +0 -351
  211. package/src/ts/stashcash/getschistory.ts +0 -566
  212. package/src/ts/stashcash/reversesc.ts +0 -329
  213. package/src/ts/stashcash.ts +0 -152
  214. package/tsconfig.json +0 -18
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v3.20.3
6
+ // source: customers/verifyotp.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.verifyOtpResponse = exports.verifyOtpReqeust = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.verifyotp";
15
+ function createBaseverifyOtpReqeust() {
16
+ return { mobile: "", device_id: "", otp: "", token: "", tnc: false, is_rooted: false };
17
+ }
18
+ exports.verifyOtpReqeust = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
23
+ if (message.device_id !== "") {
24
+ writer.uint32(18).string(message.device_id);
25
+ }
26
+ if (message.otp !== "") {
27
+ writer.uint32(26).string(message.otp);
28
+ }
29
+ if (message.token !== "") {
30
+ writer.uint32(34).string(message.token);
31
+ }
32
+ if (message.tnc !== false) {
33
+ writer.uint32(40).bool(message.tnc);
34
+ }
35
+ if (message.is_rooted !== false) {
36
+ writer.uint32(48).bool(message.is_rooted);
37
+ }
38
+ return writer;
39
+ },
40
+ decode(input, length) {
41
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBaseverifyOtpReqeust();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ if (tag !== 10) {
49
+ break;
50
+ }
51
+ message.mobile = reader.string();
52
+ continue;
53
+ case 2:
54
+ if (tag !== 18) {
55
+ break;
56
+ }
57
+ message.device_id = reader.string();
58
+ continue;
59
+ case 3:
60
+ if (tag !== 26) {
61
+ break;
62
+ }
63
+ message.otp = reader.string();
64
+ continue;
65
+ case 4:
66
+ if (tag !== 34) {
67
+ break;
68
+ }
69
+ message.token = reader.string();
70
+ continue;
71
+ case 5:
72
+ if (tag !== 40) {
73
+ break;
74
+ }
75
+ message.tnc = reader.bool();
76
+ continue;
77
+ case 6:
78
+ if (tag !== 48) {
79
+ break;
80
+ }
81
+ message.is_rooted = reader.bool();
82
+ continue;
83
+ }
84
+ if ((tag & 7) === 4 || tag === 0) {
85
+ break;
86
+ }
87
+ reader.skipType(tag & 7);
88
+ }
89
+ return message;
90
+ },
91
+ fromJSON(object) {
92
+ return {
93
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
94
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
95
+ otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
96
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
97
+ tnc: isSet(object.tnc) ? globalThis.Boolean(object.tnc) : false,
98
+ is_rooted: isSet(object.is_rooted) ? globalThis.Boolean(object.is_rooted) : false,
99
+ };
100
+ },
101
+ toJSON(message) {
102
+ const obj = {};
103
+ if (message.mobile !== "") {
104
+ obj.mobile = message.mobile;
105
+ }
106
+ if (message.device_id !== "") {
107
+ obj.device_id = message.device_id;
108
+ }
109
+ if (message.otp !== "") {
110
+ obj.otp = message.otp;
111
+ }
112
+ if (message.token !== "") {
113
+ obj.token = message.token;
114
+ }
115
+ if (message.tnc !== false) {
116
+ obj.tnc = message.tnc;
117
+ }
118
+ if (message.is_rooted !== false) {
119
+ obj.is_rooted = message.is_rooted;
120
+ }
121
+ return obj;
122
+ },
123
+ create(base) {
124
+ return exports.verifyOtpReqeust.fromPartial(base ?? {});
125
+ },
126
+ fromPartial(object) {
127
+ const message = createBaseverifyOtpReqeust();
128
+ message.mobile = object.mobile ?? "";
129
+ message.device_id = object.device_id ?? "";
130
+ message.otp = object.otp ?? "";
131
+ message.token = object.token ?? "";
132
+ message.tnc = object.tnc ?? false;
133
+ message.is_rooted = object.is_rooted ?? false;
134
+ return message;
135
+ },
136
+ };
137
+ function createBaseverifyOtpResponse() {
138
+ return { ismpin: false, jwttoken: "" };
139
+ }
140
+ exports.verifyOtpResponse = {
141
+ encode(message, writer = minimal_1.default.Writer.create()) {
142
+ if (message.ismpin !== false) {
143
+ writer.uint32(8).bool(message.ismpin);
144
+ }
145
+ if (message.jwttoken !== "") {
146
+ writer.uint32(18).string(message.jwttoken);
147
+ }
148
+ return writer;
149
+ },
150
+ decode(input, length) {
151
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
152
+ let end = length === undefined ? reader.len : reader.pos + length;
153
+ const message = createBaseverifyOtpResponse();
154
+ while (reader.pos < end) {
155
+ const tag = reader.uint32();
156
+ switch (tag >>> 3) {
157
+ case 1:
158
+ if (tag !== 8) {
159
+ break;
160
+ }
161
+ message.ismpin = reader.bool();
162
+ continue;
163
+ case 2:
164
+ if (tag !== 18) {
165
+ break;
166
+ }
167
+ message.jwttoken = reader.string();
168
+ continue;
169
+ }
170
+ if ((tag & 7) === 4 || tag === 0) {
171
+ break;
172
+ }
173
+ reader.skipType(tag & 7);
174
+ }
175
+ return message;
176
+ },
177
+ fromJSON(object) {
178
+ return {
179
+ ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
180
+ jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
181
+ };
182
+ },
183
+ toJSON(message) {
184
+ const obj = {};
185
+ if (message.ismpin !== false) {
186
+ obj.ismpin = message.ismpin;
187
+ }
188
+ if (message.jwttoken !== "") {
189
+ obj.jwttoken = message.jwttoken;
190
+ }
191
+ return obj;
192
+ },
193
+ create(base) {
194
+ return exports.verifyOtpResponse.fromPartial(base ?? {});
195
+ },
196
+ fromPartial(object) {
197
+ const message = createBaseverifyOtpResponse();
198
+ message.ismpin = object.ismpin ?? false;
199
+ message.jwttoken = object.jwttoken ?? "";
200
+ return message;
201
+ },
202
+ };
203
+ function isSet(value) {
204
+ return value !== null && value !== undefined;
205
+ }