@stashfin/grpc 1.2.52 → 1.2.54

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 (226) hide show
  1. package/README.md +74 -0
  2. package/package.json +3 -2
  3. package/src/proto/customers/addaddress.proto +25 -0
  4. package/src/proto/customers/addbankaccountdetails.proto +13 -0
  5. package/src/proto/customers/createcustomerreference.proto +21 -0
  6. package/src/proto/customers/forgotmpin.proto +12 -0
  7. package/src/proto/customers/forgotmpinotp.proto +10 -0
  8. package/src/proto/customers/getbankaccountdetails.proto +11 -0
  9. package/src/proto/customers/getbasicinfo.proto +24 -0
  10. package/src/proto/customers/getcities.proto +16 -0
  11. package/src/proto/customers/getcustomerbyid.proto +31 -0
  12. package/src/proto/customers/getdashboard.proto +47 -0
  13. package/src/proto/customers/getdashboardmaincard.proto +37 -0
  14. package/src/proto/customers/getkycweburl.proto +10 -0
  15. package/src/proto/customers/getprofessionalinfo.proto +22 -0
  16. package/src/proto/customers/getprofile.proto +22 -0
  17. package/src/proto/customers/getstates.proto +15 -0
  18. package/src/proto/customers/getstep.proto +30 -0
  19. package/src/proto/customers/profilebasic.proto +14 -0
  20. package/src/proto/customers/profileupdatetnc.proto +11 -0
  21. package/src/proto/customers/resetmpin.proto +13 -0
  22. package/src/proto/customers/savebasicdetails.proto +16 -0
  23. package/src/proto/customers/saveunlocklimit.proto +10 -0
  24. package/src/proto/customers/sendemailtoken.proto +11 -0
  25. package/src/proto/customers/sendotp.proto +14 -0
  26. package/src/proto/customers/setmpin.proto +12 -0
  27. package/src/proto/customers/step10.proto +34 -0
  28. package/src/proto/customers/step7.proto +29 -0
  29. package/src/proto/customers/step8.proto +30 -0
  30. package/src/proto/customers/step9.proto +36 -0
  31. package/src/proto/customers/stepstatic.proto +27 -0
  32. package/src/proto/customers/updatedigilockertxn.proto +13 -0
  33. package/src/proto/customers/updatedob.proto +13 -0
  34. package/src/proto/customers/updatehypervergetxn.proto +12 -0
  35. package/src/proto/customers/verifyemail.proto +11 -0
  36. package/src/proto/customers/verifympin.proto +13 -0
  37. package/src/proto/customers/verifyotp.proto +17 -0
  38. package/src/proto/customers.proto +83 -0
  39. package/src/proto/example.proto +20 -0
  40. package/src/proto/loans/approveloan.proto +15 -0
  41. package/src/proto/loans/banklist.proto +12 -0
  42. package/src/proto/loans/calculateemi.proto +20 -0
  43. package/src/proto/loans/creditlimit.proto +18 -0
  44. package/src/proto/loans/restructureloan.proto +12 -0
  45. package/src/proto/loans/transactionlist.proto +18 -0
  46. package/src/proto/loans/updateinstallments.proto +19 -0
  47. package/src/proto/loans/updateloan.proto +15 -0
  48. package/src/proto/loans.proto +23 -0
  49. package/src/proto/stashcash/creditsc.proto +22 -0
  50. package/src/proto/stashcash/debitsc.proto +27 -0
  51. package/src/proto/stashcash/getscbalance.proto +21 -0
  52. package/src/proto/stashcash/getschistory.proto +35 -0
  53. package/src/proto/stashcash/reversesc.proto +20 -0
  54. package/src/proto/stashcash.proto +17 -0
  55. package/src/ts/customers/addaddress.ts +310 -0
  56. package/src/ts/customers/addbankaccountdetails.ts +184 -0
  57. package/src/ts/customers/createcustomerreference.ts +276 -0
  58. package/src/ts/customers/getbankaccountdetails.ts +169 -0
  59. package/src/ts/customers/getbasicinfo.ts +385 -0
  60. package/src/ts/customers/getcities.ts +227 -0
  61. package/src/ts/customers/getcustomerbyid.ts +492 -0
  62. package/src/ts/customers/getdashboard.ts +728 -0
  63. package/src/ts/customers/getdashboardmaincard.ts +608 -0
  64. package/src/ts/customers/getkycweburl.ts +133 -0
  65. package/src/ts/customers/getprofessionalinfo.ts +344 -0
  66. package/src/ts/customers/getprofile.ts +338 -0
  67. package/src/ts/customers/getstates.ts +212 -0
  68. package/src/ts/customers/getstep.ts +483 -0
  69. package/src/ts/customers/profilebasic.ts +198 -0
  70. package/src/ts/customers/profileupdatetnc.ts +148 -0
  71. package/src/ts/customers/resetmpin.ts +166 -0
  72. package/src/ts/customers/savebasicdetails.ts +229 -0
  73. package/src/ts/customers/saveunlocklimit.ts +133 -0
  74. package/src/ts/customers/sendemailtoken.ts +148 -0
  75. package/src/ts/customers/sendotp.ts +202 -0
  76. package/src/ts/customers/setmpin.ts +166 -0
  77. package/src/ts/customers/step10.ts +544 -0
  78. package/src/ts/customers/step7.ts +456 -0
  79. package/src/ts/customers/step8.ts +472 -0
  80. package/src/ts/customers/step9.ts +578 -0
  81. package/src/ts/customers/stepstatic.ts +425 -0
  82. package/src/ts/customers/updatedigilockertxn.ts +182 -0
  83. package/src/ts/customers/updatehypervergetxn.ts +166 -0
  84. package/src/ts/customers/verifyemail.ts +148 -0
  85. package/src/ts/customers/verifympin.ts +184 -0
  86. package/src/ts/customers/verifyotp.ts +232 -0
  87. package/src/ts/customers.ts +1038 -0
  88. package/src/ts/example.ts +294 -0
  89. package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
  90. package/src/ts/loans/approveloan.ts +214 -0
  91. package/src/ts/loans/banklist.ts +183 -0
  92. package/src/ts/loans/calculateemi.ts +295 -0
  93. package/src/ts/loans/creditlimit.ts +294 -0
  94. package/src/ts/loans/restructureloan.ts +166 -0
  95. package/src/ts/loans/transactionlist.ts +281 -0
  96. package/src/ts/loans/updateinstallments.ts +271 -0
  97. package/src/ts/loans/updateloan.ts +214 -0
  98. package/src/ts/loans.ts +221 -0
  99. package/src/ts/stashcash/creditsc.ts +361 -0
  100. package/src/ts/stashcash/debitsc.ts +450 -0
  101. package/src/ts/stashcash/getscbalance.ts +351 -0
  102. package/src/ts/stashcash/getschistory.ts +566 -0
  103. package/src/ts/stashcash/reversesc.ts +329 -0
  104. package/src/ts/stashcash.ts +152 -0
  105. package/tsconfig.json +18 -0
  106. package/ts/customer/getprofile.d.ts +0 -38
  107. package/ts/customer/getprofile.js +0 -162
  108. package/ts/customer/getstep.d.ts +0 -78
  109. package/ts/customer/getstep.js +0 -420
  110. package/ts/customer/profileupdatetnc.d.ts +0 -35
  111. package/ts/customer/profileupdatetnc.js +0 -117
  112. package/ts/customer/sendotp.d.ts +0 -36
  113. package/ts/customer/sendotp.js +0 -133
  114. package/ts/customer/setmpin.d.ts +0 -36
  115. package/ts/customer/setmpin.js +0 -133
  116. package/ts/customer/step1.d.ts +0 -69
  117. package/ts/customer/step1.js +0 -395
  118. package/ts/customer/step10.d.ts +0 -73
  119. package/ts/customer/step10.js +0 -459
  120. package/ts/customer/step2.d.ts +0 -68
  121. package/ts/customer/step2.js +0 -381
  122. package/ts/customer/step7.d.ts +0 -68
  123. package/ts/customer/step7.js +0 -381
  124. package/ts/customer/step8.d.ts +0 -69
  125. package/ts/customer/step8.js +0 -395
  126. package/ts/customer/step9.d.ts +0 -75
  127. package/ts/customer/step9.js +0 -489
  128. package/ts/customer/stepstatic.d.ts +0 -66
  129. package/ts/customer/stepstatic.js +0 -352
  130. package/ts/customer/verifympin.d.ts +0 -37
  131. package/ts/customer/verifympin.js +0 -149
  132. package/ts/customer/verifyotp.d.ts +0 -39
  133. package/ts/customer/verifyotp.js +0 -177
  134. package/ts/customer.d.ts +0 -262
  135. package/ts/customer.js +0 -190
  136. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  137. package/ts/customers/getbankaccountdetails.js +0 -134
  138. package/ts/customers/getbasicinfo.d.ts +0 -39
  139. package/ts/customers/getbasicinfo.js +0 -176
  140. package/ts/customers/getcustomerbyid.d.ts +0 -50
  141. package/ts/customers/getcustomerbyid.js +0 -346
  142. package/ts/customers/getdashboard.d.ts +0 -90
  143. package/ts/customers/getdashboard.js +0 -603
  144. package/ts/customers/getdashboardmaincard.d.ts +0 -69
  145. package/ts/customers/getdashboardmaincard.js +0 -520
  146. package/ts/customers/getprofessionalinfo.d.ts +0 -37
  147. package/ts/customers/getprofessionalinfo.js +0 -148
  148. package/ts/customers/getprofile.d.ts +0 -38
  149. package/ts/customers/getprofile.js +0 -162
  150. package/ts/customers/getstep.d.ts +0 -78
  151. package/ts/customers/getstep.js +0 -420
  152. package/ts/customers/profilebasic.d.ts +0 -38
  153. package/ts/customers/profilebasic.js +0 -161
  154. package/ts/customers/profileupdatetnc.d.ts +0 -35
  155. package/ts/customers/profileupdatetnc.js +0 -117
  156. package/ts/customers/sendemailtoken.d.ts +0 -35
  157. package/ts/customers/sendemailtoken.js +0 -117
  158. package/ts/customers/sendotp.d.ts +0 -38
  159. package/ts/customers/sendotp.js +0 -165
  160. package/ts/customers/setmpin.d.ts +0 -36
  161. package/ts/customers/setmpin.js +0 -133
  162. package/ts/customers/step1.d.ts +0 -69
  163. package/ts/customers/step1.js +0 -395
  164. package/ts/customers/step10.d.ts +0 -73
  165. package/ts/customers/step10.js +0 -459
  166. package/ts/customers/step2.d.ts +0 -68
  167. package/ts/customers/step2.js +0 -381
  168. package/ts/customers/step7.d.ts +0 -68
  169. package/ts/customers/step7.js +0 -381
  170. package/ts/customers/step8.d.ts +0 -69
  171. package/ts/customers/step8.js +0 -395
  172. package/ts/customers/step9.d.ts +0 -75
  173. package/ts/customers/step9.js +0 -489
  174. package/ts/customers/stepstatic.d.ts +0 -66
  175. package/ts/customers/stepstatic.js +0 -354
  176. package/ts/customers/verifyemail.d.ts +0 -35
  177. package/ts/customers/verifyemail.js +0 -117
  178. package/ts/customers/verifympin.d.ts +0 -37
  179. package/ts/customers/verifympin.js +0 -149
  180. package/ts/customers/verifyotp.d.ts +0 -40
  181. package/ts/customers/verifyotp.js +0 -191
  182. package/ts/customers.d.ts +0 -388
  183. package/ts/customers.js +0 -280
  184. package/ts/example.d.ts +0 -78
  185. package/ts/example.js +0 -199
  186. package/ts/google/protobuf/any.d.ts +0 -138
  187. package/ts/google/protobuf/any.js +0 -108
  188. package/ts/google/protobuf/timestamp.js +0 -97
  189. package/ts/loans/approveloan.d.ts +0 -39
  190. package/ts/loans/approveloan.js +0 -175
  191. package/ts/loans/banklist.d.ts +0 -48
  192. package/ts/loans/banklist.js +0 -202
  193. package/ts/loans/calculateemi.d.ts +0 -37
  194. package/ts/loans/calculateemi.js +0 -147
  195. package/ts/loans/creditlimit.d.ts +0 -35
  196. package/ts/loans/creditlimit.js +0 -120
  197. package/ts/loans/updateinstallments.d.ts +0 -42
  198. package/ts/loans/updateinstallments.js +0 -226
  199. package/ts/loans/updateloan.d.ts +0 -39
  200. package/ts/loans/updateloan.js +0 -175
  201. package/ts/loans.d.ts +0 -98
  202. package/ts/loans.js +0 -74
  203. package/ts/payments/checkpaymentstatus.d.ts +0 -51
  204. package/ts/payments/checkpaymentstatus.js +0 -259
  205. package/ts/payments/createorder.d.ts +0 -39
  206. package/ts/payments/createorder.js +0 -191
  207. package/ts/payments/getpaymentdetails.d.ts +0 -58
  208. package/ts/payments/getpaymentdetails.js +0 -367
  209. package/ts/payments/getpaymentoptions.d.ts +0 -50
  210. package/ts/payments/getpaymentoptions.js +0 -231
  211. package/ts/payments/initiatepayment.d.ts +0 -54
  212. package/ts/payments/initiatepayment.js +0 -299
  213. package/ts/payments.d.ts +0 -70
  214. package/ts/payments.js +0 -54
  215. package/ts/stashcash/creditsc.d.ts +0 -54
  216. package/ts/stashcash/creditsc.js +0 -301
  217. package/ts/stashcash/debitsc.d.ts +0 -59
  218. package/ts/stashcash/debitsc.js +0 -380
  219. package/ts/stashcash/getscbalance.d.ts +0 -53
  220. package/ts/stashcash/getscbalance.js +0 -293
  221. package/ts/stashcash/getschistory.d.ts +0 -73
  222. package/ts/stashcash/getschistory.js +0 -479
  223. package/ts/stashcash/reversesc.d.ts +0 -52
  224. package/ts/stashcash/reversesc.js +0 -273
  225. package/ts/stashcash.d.ts +0 -84
  226. package/ts/stashcash.js +0 -64
@@ -1,395 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.180.0
5
- // protoc v3.20.3
6
- // source: customer/step8.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.response_Field = exports.response = exports.Validation = exports.request = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customer.step8";
15
- function createBaserequest() {
16
- return { selfie_url: "", pan_url: "", aadhaar_number: "" };
17
- }
18
- exports.request = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.selfie_url !== "") {
21
- writer.uint32(10).string(message.selfie_url);
22
- }
23
- if (message.pan_url !== "") {
24
- writer.uint32(18).string(message.pan_url);
25
- }
26
- if (message.aadhaar_number !== "") {
27
- writer.uint32(26).string(message.aadhaar_number);
28
- }
29
- return writer;
30
- },
31
- decode(input, length) {
32
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
33
- let end = length === undefined ? reader.len : reader.pos + length;
34
- const message = createBaserequest();
35
- while (reader.pos < end) {
36
- const tag = reader.uint32();
37
- switch (tag >>> 3) {
38
- case 1:
39
- if (tag !== 10) {
40
- break;
41
- }
42
- message.selfie_url = reader.string();
43
- continue;
44
- case 2:
45
- if (tag !== 18) {
46
- break;
47
- }
48
- message.pan_url = reader.string();
49
- continue;
50
- case 3:
51
- if (tag !== 26) {
52
- break;
53
- }
54
- message.aadhaar_number = reader.string();
55
- continue;
56
- }
57
- if ((tag & 7) === 4 || tag === 0) {
58
- break;
59
- }
60
- reader.skipType(tag & 7);
61
- }
62
- return message;
63
- },
64
- fromJSON(object) {
65
- return {
66
- selfie_url: isSet(object.selfie_url) ? globalThis.String(object.selfie_url) : "",
67
- pan_url: isSet(object.pan_url) ? globalThis.String(object.pan_url) : "",
68
- aadhaar_number: isSet(object.aadhaar_number) ? globalThis.String(object.aadhaar_number) : "",
69
- };
70
- },
71
- toJSON(message) {
72
- const obj = {};
73
- if (message.selfie_url !== "") {
74
- obj.selfie_url = message.selfie_url;
75
- }
76
- if (message.pan_url !== "") {
77
- obj.pan_url = message.pan_url;
78
- }
79
- if (message.aadhaar_number !== "") {
80
- obj.aadhaar_number = message.aadhaar_number;
81
- }
82
- return obj;
83
- },
84
- create(base) {
85
- return exports.request.fromPartial(base ?? {});
86
- },
87
- fromPartial(object) {
88
- const message = createBaserequest();
89
- message.selfie_url = object.selfie_url ?? "";
90
- message.pan_url = object.pan_url ?? "";
91
- message.aadhaar_number = object.aadhaar_number ?? "";
92
- return message;
93
- },
94
- };
95
- function createBaseValidation() {
96
- return { key: "", value: "", message: "" };
97
- }
98
- exports.Validation = {
99
- encode(message, writer = minimal_1.default.Writer.create()) {
100
- if (message.key !== "") {
101
- writer.uint32(10).string(message.key);
102
- }
103
- if (message.value !== "") {
104
- writer.uint32(18).string(message.value);
105
- }
106
- if (message.message !== "") {
107
- writer.uint32(26).string(message.message);
108
- }
109
- return writer;
110
- },
111
- decode(input, length) {
112
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
113
- let end = length === undefined ? reader.len : reader.pos + length;
114
- const message = createBaseValidation();
115
- while (reader.pos < end) {
116
- const tag = reader.uint32();
117
- switch (tag >>> 3) {
118
- case 1:
119
- if (tag !== 10) {
120
- break;
121
- }
122
- message.key = reader.string();
123
- continue;
124
- case 2:
125
- if (tag !== 18) {
126
- break;
127
- }
128
- message.value = reader.string();
129
- continue;
130
- case 3:
131
- if (tag !== 26) {
132
- break;
133
- }
134
- message.message = reader.string();
135
- continue;
136
- }
137
- if ((tag & 7) === 4 || tag === 0) {
138
- break;
139
- }
140
- reader.skipType(tag & 7);
141
- }
142
- return message;
143
- },
144
- fromJSON(object) {
145
- return {
146
- key: isSet(object.key) ? globalThis.String(object.key) : "",
147
- value: isSet(object.value) ? globalThis.String(object.value) : "",
148
- message: isSet(object.message) ? globalThis.String(object.message) : "",
149
- };
150
- },
151
- toJSON(message) {
152
- const obj = {};
153
- if (message.key !== "") {
154
- obj.key = message.key;
155
- }
156
- if (message.value !== "") {
157
- obj.value = message.value;
158
- }
159
- if (message.message !== "") {
160
- obj.message = message.message;
161
- }
162
- return obj;
163
- },
164
- create(base) {
165
- return exports.Validation.fromPartial(base ?? {});
166
- },
167
- fromPartial(object) {
168
- const message = createBaseValidation();
169
- message.key = object.key ?? "";
170
- message.value = object.value ?? "";
171
- message.message = object.message ?? "";
172
- return message;
173
- },
174
- };
175
- function createBaseresponse() {
176
- return { page: "", type: "", button_text: "", data: [] };
177
- }
178
- exports.response = {
179
- encode(message, writer = minimal_1.default.Writer.create()) {
180
- if (message.page !== "") {
181
- writer.uint32(10).string(message.page);
182
- }
183
- if (message.type !== "") {
184
- writer.uint32(18).string(message.type);
185
- }
186
- if (message.button_text !== "") {
187
- writer.uint32(26).string(message.button_text);
188
- }
189
- for (const v of message.data) {
190
- exports.response_Field.encode(v, writer.uint32(34).fork()).ldelim();
191
- }
192
- return writer;
193
- },
194
- decode(input, length) {
195
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
196
- let end = length === undefined ? reader.len : reader.pos + length;
197
- const message = createBaseresponse();
198
- while (reader.pos < end) {
199
- const tag = reader.uint32();
200
- switch (tag >>> 3) {
201
- case 1:
202
- if (tag !== 10) {
203
- break;
204
- }
205
- message.page = reader.string();
206
- continue;
207
- case 2:
208
- if (tag !== 18) {
209
- break;
210
- }
211
- message.type = reader.string();
212
- continue;
213
- case 3:
214
- if (tag !== 26) {
215
- break;
216
- }
217
- message.button_text = reader.string();
218
- continue;
219
- case 4:
220
- if (tag !== 34) {
221
- break;
222
- }
223
- message.data.push(exports.response_Field.decode(reader, reader.uint32()));
224
- continue;
225
- }
226
- if ((tag & 7) === 4 || tag === 0) {
227
- break;
228
- }
229
- reader.skipType(tag & 7);
230
- }
231
- return message;
232
- },
233
- fromJSON(object) {
234
- return {
235
- page: isSet(object.page) ? globalThis.String(object.page) : "",
236
- type: isSet(object.type) ? globalThis.String(object.type) : "",
237
- button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
238
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.response_Field.fromJSON(e)) : [],
239
- };
240
- },
241
- toJSON(message) {
242
- const obj = {};
243
- if (message.page !== "") {
244
- obj.page = message.page;
245
- }
246
- if (message.type !== "") {
247
- obj.type = message.type;
248
- }
249
- if (message.button_text !== "") {
250
- obj.button_text = message.button_text;
251
- }
252
- if (message.data?.length) {
253
- obj.data = message.data.map((e) => exports.response_Field.toJSON(e));
254
- }
255
- return obj;
256
- },
257
- create(base) {
258
- return exports.response.fromPartial(base ?? {});
259
- },
260
- fromPartial(object) {
261
- const message = createBaseresponse();
262
- message.page = object.page ?? "";
263
- message.type = object.type ?? "";
264
- message.button_text = object.button_text ?? "";
265
- message.data = object.data?.map((e) => exports.response_Field.fromPartial(e)) || [];
266
- return message;
267
- },
268
- };
269
- function createBaseresponse_Field() {
270
- return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
271
- }
272
- exports.response_Field = {
273
- encode(message, writer = minimal_1.default.Writer.create()) {
274
- if (message.label !== "") {
275
- writer.uint32(10).string(message.label);
276
- }
277
- if (message.key !== "") {
278
- writer.uint32(18).string(message.key);
279
- }
280
- if (message.input_type !== "") {
281
- writer.uint32(26).string(message.input_type);
282
- }
283
- if (message.data_type !== "") {
284
- writer.uint32(34).string(message.data_type);
285
- }
286
- if (message.icon !== "") {
287
- writer.uint32(42).string(message.icon);
288
- }
289
- for (const v of message.validations) {
290
- exports.Validation.encode(v, writer.uint32(58).fork()).ldelim();
291
- }
292
- return writer;
293
- },
294
- decode(input, length) {
295
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
296
- let end = length === undefined ? reader.len : reader.pos + length;
297
- const message = createBaseresponse_Field();
298
- while (reader.pos < end) {
299
- const tag = reader.uint32();
300
- switch (tag >>> 3) {
301
- case 1:
302
- if (tag !== 10) {
303
- break;
304
- }
305
- message.label = reader.string();
306
- continue;
307
- case 2:
308
- if (tag !== 18) {
309
- break;
310
- }
311
- message.key = reader.string();
312
- continue;
313
- case 3:
314
- if (tag !== 26) {
315
- break;
316
- }
317
- message.input_type = reader.string();
318
- continue;
319
- case 4:
320
- if (tag !== 34) {
321
- break;
322
- }
323
- message.data_type = reader.string();
324
- continue;
325
- case 5:
326
- if (tag !== 42) {
327
- break;
328
- }
329
- message.icon = reader.string();
330
- continue;
331
- case 7:
332
- if (tag !== 58) {
333
- break;
334
- }
335
- message.validations.push(exports.Validation.decode(reader, reader.uint32()));
336
- continue;
337
- }
338
- if ((tag & 7) === 4 || tag === 0) {
339
- break;
340
- }
341
- reader.skipType(tag & 7);
342
- }
343
- return message;
344
- },
345
- fromJSON(object) {
346
- return {
347
- label: isSet(object.label) ? globalThis.String(object.label) : "",
348
- key: isSet(object.key) ? globalThis.String(object.key) : "",
349
- input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
350
- data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
351
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
352
- validations: globalThis.Array.isArray(object?.validations)
353
- ? object.validations.map((e) => exports.Validation.fromJSON(e))
354
- : [],
355
- };
356
- },
357
- toJSON(message) {
358
- const obj = {};
359
- if (message.label !== "") {
360
- obj.label = message.label;
361
- }
362
- if (message.key !== "") {
363
- obj.key = message.key;
364
- }
365
- if (message.input_type !== "") {
366
- obj.input_type = message.input_type;
367
- }
368
- if (message.data_type !== "") {
369
- obj.data_type = message.data_type;
370
- }
371
- if (message.icon !== "") {
372
- obj.icon = message.icon;
373
- }
374
- if (message.validations?.length) {
375
- obj.validations = message.validations.map((e) => exports.Validation.toJSON(e));
376
- }
377
- return obj;
378
- },
379
- create(base) {
380
- return exports.response_Field.fromPartial(base ?? {});
381
- },
382
- fromPartial(object) {
383
- const message = createBaseresponse_Field();
384
- message.label = object.label ?? "";
385
- message.key = object.key ?? "";
386
- message.input_type = object.input_type ?? "";
387
- message.data_type = object.data_type ?? "";
388
- message.icon = object.icon ?? "";
389
- message.validations = object.validations?.map((e) => exports.Validation.fromPartial(e)) || [];
390
- return message;
391
- },
392
- };
393
- function isSet(value) {
394
- return value !== null && value !== undefined;
395
- }
@@ -1,75 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customer.step9";
3
- export interface request {
4
- cur_house_number: string;
5
- cur_address_line1: string;
6
- cur_address_line2: string;
7
- cur_pincode: string;
8
- is_permanent_same: boolean;
9
- per_house_number: string;
10
- per_address_line1: string;
11
- per_address_line2: string;
12
- per_pincode: string;
13
- }
14
- export interface Validation {
15
- key: string;
16
- value: string;
17
- message: string;
18
- }
19
- export interface response {
20
- page: string;
21
- type: string;
22
- button_text: string;
23
- data: response_Field[];
24
- }
25
- export interface response_Field {
26
- label: string;
27
- key: string;
28
- input_type: string;
29
- data_type: string;
30
- icon: string;
31
- validations: Validation[];
32
- }
33
- export declare const request: {
34
- encode(message: request, writer?: _m0.Writer): _m0.Writer;
35
- decode(input: _m0.Reader | Uint8Array, length?: number): request;
36
- fromJSON(object: any): request;
37
- toJSON(message: request): unknown;
38
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
39
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
40
- };
41
- export declare const Validation: {
42
- encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
43
- decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
44
- fromJSON(object: any): Validation;
45
- toJSON(message: Validation): unknown;
46
- create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
47
- fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
48
- };
49
- export declare const response: {
50
- encode(message: response, writer?: _m0.Writer): _m0.Writer;
51
- decode(input: _m0.Reader | Uint8Array, length?: number): response;
52
- fromJSON(object: any): response;
53
- toJSON(message: response): unknown;
54
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
55
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
56
- };
57
- export declare const response_Field: {
58
- encode(message: response_Field, writer?: _m0.Writer): _m0.Writer;
59
- decode(input: _m0.Reader | Uint8Array, length?: number): response_Field;
60
- fromJSON(object: any): response_Field;
61
- toJSON(message: response_Field): unknown;
62
- create<I extends Exact<DeepPartial<response_Field>, I>>(base?: I): response_Field;
63
- fromPartial<I extends Exact<DeepPartial<response_Field>, I>>(object: I): response_Field;
64
- };
65
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
66
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
67
- [K in keyof T]?: DeepPartial<T[K]>;
68
- } : Partial<T>;
69
- type KeysOfUnion<T> = T extends T ? keyof T : never;
70
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
71
- [K in keyof P]: Exact<P[K], I[K]>;
72
- } & {
73
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
74
- };
75
- export {};