@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,603 +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: customers/getdashboard.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.Tag = exports.BlockData = exports.Block = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customers.getdashboard";
15
- function createBasegetDashboardRequest() {
16
- return {};
17
- }
18
- exports.getDashboardRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBasegetDashboardRequest();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- }
30
- if ((tag & 7) === 4 || tag === 0) {
31
- break;
32
- }
33
- reader.skipType(tag & 7);
34
- }
35
- return message;
36
- },
37
- fromJSON(_) {
38
- return {};
39
- },
40
- toJSON(_) {
41
- const obj = {};
42
- return obj;
43
- },
44
- create(base) {
45
- return exports.getDashboardRequest.fromPartial(base ?? {});
46
- },
47
- fromPartial(_) {
48
- const message = createBasegetDashboardRequest();
49
- return message;
50
- },
51
- };
52
- function createBasegetDashboardResponse() {
53
- return { user_state: "", father_name_dialog: false, current_step: "", blocks: [] };
54
- }
55
- exports.getDashboardResponse = {
56
- encode(message, writer = minimal_1.default.Writer.create()) {
57
- if (message.user_state !== "") {
58
- writer.uint32(10).string(message.user_state);
59
- }
60
- if (message.father_name_dialog !== false) {
61
- writer.uint32(16).bool(message.father_name_dialog);
62
- }
63
- if (message.current_step !== "") {
64
- writer.uint32(26).string(message.current_step);
65
- }
66
- for (const v of message.blocks) {
67
- exports.Block.encode(v, writer.uint32(34).fork()).ldelim();
68
- }
69
- return writer;
70
- },
71
- decode(input, length) {
72
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
73
- let end = length === undefined ? reader.len : reader.pos + length;
74
- const message = createBasegetDashboardResponse();
75
- while (reader.pos < end) {
76
- const tag = reader.uint32();
77
- switch (tag >>> 3) {
78
- case 1:
79
- if (tag !== 10) {
80
- break;
81
- }
82
- message.user_state = reader.string();
83
- continue;
84
- case 2:
85
- if (tag !== 16) {
86
- break;
87
- }
88
- message.father_name_dialog = reader.bool();
89
- continue;
90
- case 3:
91
- if (tag !== 26) {
92
- break;
93
- }
94
- message.current_step = reader.string();
95
- continue;
96
- case 4:
97
- if (tag !== 34) {
98
- break;
99
- }
100
- message.blocks.push(exports.Block.decode(reader, reader.uint32()));
101
- continue;
102
- }
103
- if ((tag & 7) === 4 || tag === 0) {
104
- break;
105
- }
106
- reader.skipType(tag & 7);
107
- }
108
- return message;
109
- },
110
- fromJSON(object) {
111
- return {
112
- user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
113
- father_name_dialog: isSet(object.father_name_dialog) ? globalThis.Boolean(object.father_name_dialog) : false,
114
- current_step: isSet(object.current_step) ? globalThis.String(object.current_step) : "",
115
- blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
116
- };
117
- },
118
- toJSON(message) {
119
- const obj = {};
120
- if (message.user_state !== "") {
121
- obj.user_state = message.user_state;
122
- }
123
- if (message.father_name_dialog !== false) {
124
- obj.father_name_dialog = message.father_name_dialog;
125
- }
126
- if (message.current_step !== "") {
127
- obj.current_step = message.current_step;
128
- }
129
- if (message.blocks?.length) {
130
- obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
131
- }
132
- return obj;
133
- },
134
- create(base) {
135
- return exports.getDashboardResponse.fromPartial(base ?? {});
136
- },
137
- fromPartial(object) {
138
- const message = createBasegetDashboardResponse();
139
- message.user_state = object.user_state ?? "";
140
- message.father_name_dialog = object.father_name_dialog ?? false;
141
- message.current_step = object.current_step ?? "";
142
- message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
143
- return message;
144
- },
145
- };
146
- function createBaseBlock() {
147
- return { block_name: "", block_title: "", block_code: "", block_data: [] };
148
- }
149
- exports.Block = {
150
- encode(message, writer = minimal_1.default.Writer.create()) {
151
- if (message.block_name !== "") {
152
- writer.uint32(10).string(message.block_name);
153
- }
154
- if (message.block_title !== "") {
155
- writer.uint32(18).string(message.block_title);
156
- }
157
- if (message.block_code !== "") {
158
- writer.uint32(26).string(message.block_code);
159
- }
160
- for (const v of message.block_data) {
161
- exports.BlockData.encode(v, writer.uint32(34).fork()).ldelim();
162
- }
163
- return writer;
164
- },
165
- decode(input, length) {
166
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
167
- let end = length === undefined ? reader.len : reader.pos + length;
168
- const message = createBaseBlock();
169
- while (reader.pos < end) {
170
- const tag = reader.uint32();
171
- switch (tag >>> 3) {
172
- case 1:
173
- if (tag !== 10) {
174
- break;
175
- }
176
- message.block_name = reader.string();
177
- continue;
178
- case 2:
179
- if (tag !== 18) {
180
- break;
181
- }
182
- message.block_title = reader.string();
183
- continue;
184
- case 3:
185
- if (tag !== 26) {
186
- break;
187
- }
188
- message.block_code = reader.string();
189
- continue;
190
- case 4:
191
- if (tag !== 34) {
192
- break;
193
- }
194
- message.block_data.push(exports.BlockData.decode(reader, reader.uint32()));
195
- continue;
196
- }
197
- if ((tag & 7) === 4 || tag === 0) {
198
- break;
199
- }
200
- reader.skipType(tag & 7);
201
- }
202
- return message;
203
- },
204
- fromJSON(object) {
205
- return {
206
- block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
207
- block_title: isSet(object.block_title) ? globalThis.String(object.block_title) : "",
208
- block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
209
- block_data: globalThis.Array.isArray(object?.block_data)
210
- ? object.block_data.map((e) => exports.BlockData.fromJSON(e))
211
- : [],
212
- };
213
- },
214
- toJSON(message) {
215
- const obj = {};
216
- if (message.block_name !== "") {
217
- obj.block_name = message.block_name;
218
- }
219
- if (message.block_title !== "") {
220
- obj.block_title = message.block_title;
221
- }
222
- if (message.block_code !== "") {
223
- obj.block_code = message.block_code;
224
- }
225
- if (message.block_data?.length) {
226
- obj.block_data = message.block_data.map((e) => exports.BlockData.toJSON(e));
227
- }
228
- return obj;
229
- },
230
- create(base) {
231
- return exports.Block.fromPartial(base ?? {});
232
- },
233
- fromPartial(object) {
234
- const message = createBaseBlock();
235
- message.block_name = object.block_name ?? "";
236
- message.block_title = object.block_title ?? "";
237
- message.block_code = object.block_code ?? "";
238
- message.block_data = object.block_data?.map((e) => exports.BlockData.fromPartial(e)) || [];
239
- return message;
240
- },
241
- };
242
- function createBaseBlockData() {
243
- return {
244
- text: "",
245
- image_url: "",
246
- video_url: "",
247
- video_length: 0,
248
- action_url: "",
249
- landing_page: "",
250
- api_mode: "",
251
- app_version: "",
252
- old_customers: false,
253
- is_new: false,
254
- action_type: "",
255
- color1: "",
256
- color2: "",
257
- image_trailing: "",
258
- tag: undefined,
259
- overlay_image: "",
260
- };
261
- }
262
- exports.BlockData = {
263
- encode(message, writer = minimal_1.default.Writer.create()) {
264
- if (message.text !== "") {
265
- writer.uint32(10).string(message.text);
266
- }
267
- if (message.image_url !== "") {
268
- writer.uint32(18).string(message.image_url);
269
- }
270
- if (message.video_url !== "") {
271
- writer.uint32(26).string(message.video_url);
272
- }
273
- if (message.video_length !== 0) {
274
- writer.uint32(32).int32(message.video_length);
275
- }
276
- if (message.action_url !== "") {
277
- writer.uint32(42).string(message.action_url);
278
- }
279
- if (message.landing_page !== "") {
280
- writer.uint32(50).string(message.landing_page);
281
- }
282
- if (message.api_mode !== "") {
283
- writer.uint32(58).string(message.api_mode);
284
- }
285
- if (message.app_version !== "") {
286
- writer.uint32(66).string(message.app_version);
287
- }
288
- if (message.old_customers !== false) {
289
- writer.uint32(72).bool(message.old_customers);
290
- }
291
- if (message.is_new !== false) {
292
- writer.uint32(80).bool(message.is_new);
293
- }
294
- if (message.action_type !== "") {
295
- writer.uint32(90).string(message.action_type);
296
- }
297
- if (message.color1 !== "") {
298
- writer.uint32(98).string(message.color1);
299
- }
300
- if (message.color2 !== "") {
301
- writer.uint32(106).string(message.color2);
302
- }
303
- if (message.image_trailing !== "") {
304
- writer.uint32(114).string(message.image_trailing);
305
- }
306
- if (message.tag !== undefined) {
307
- exports.Tag.encode(message.tag, writer.uint32(122).fork()).ldelim();
308
- }
309
- if (message.overlay_image !== "") {
310
- writer.uint32(130).string(message.overlay_image);
311
- }
312
- return writer;
313
- },
314
- decode(input, length) {
315
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
316
- let end = length === undefined ? reader.len : reader.pos + length;
317
- const message = createBaseBlockData();
318
- while (reader.pos < end) {
319
- const tag = reader.uint32();
320
- switch (tag >>> 3) {
321
- case 1:
322
- if (tag !== 10) {
323
- break;
324
- }
325
- message.text = reader.string();
326
- continue;
327
- case 2:
328
- if (tag !== 18) {
329
- break;
330
- }
331
- message.image_url = reader.string();
332
- continue;
333
- case 3:
334
- if (tag !== 26) {
335
- break;
336
- }
337
- message.video_url = reader.string();
338
- continue;
339
- case 4:
340
- if (tag !== 32) {
341
- break;
342
- }
343
- message.video_length = reader.int32();
344
- continue;
345
- case 5:
346
- if (tag !== 42) {
347
- break;
348
- }
349
- message.action_url = reader.string();
350
- continue;
351
- case 6:
352
- if (tag !== 50) {
353
- break;
354
- }
355
- message.landing_page = reader.string();
356
- continue;
357
- case 7:
358
- if (tag !== 58) {
359
- break;
360
- }
361
- message.api_mode = reader.string();
362
- continue;
363
- case 8:
364
- if (tag !== 66) {
365
- break;
366
- }
367
- message.app_version = reader.string();
368
- continue;
369
- case 9:
370
- if (tag !== 72) {
371
- break;
372
- }
373
- message.old_customers = reader.bool();
374
- continue;
375
- case 10:
376
- if (tag !== 80) {
377
- break;
378
- }
379
- message.is_new = reader.bool();
380
- continue;
381
- case 11:
382
- if (tag !== 90) {
383
- break;
384
- }
385
- message.action_type = reader.string();
386
- continue;
387
- case 12:
388
- if (tag !== 98) {
389
- break;
390
- }
391
- message.color1 = reader.string();
392
- continue;
393
- case 13:
394
- if (tag !== 106) {
395
- break;
396
- }
397
- message.color2 = reader.string();
398
- continue;
399
- case 14:
400
- if (tag !== 114) {
401
- break;
402
- }
403
- message.image_trailing = reader.string();
404
- continue;
405
- case 15:
406
- if (tag !== 122) {
407
- break;
408
- }
409
- message.tag = exports.Tag.decode(reader, reader.uint32());
410
- continue;
411
- case 16:
412
- if (tag !== 130) {
413
- break;
414
- }
415
- message.overlay_image = reader.string();
416
- continue;
417
- }
418
- if ((tag & 7) === 4 || tag === 0) {
419
- break;
420
- }
421
- reader.skipType(tag & 7);
422
- }
423
- return message;
424
- },
425
- fromJSON(object) {
426
- return {
427
- text: isSet(object.text) ? globalThis.String(object.text) : "",
428
- image_url: isSet(object.image_url) ? globalThis.String(object.image_url) : "",
429
- video_url: isSet(object.video_url) ? globalThis.String(object.video_url) : "",
430
- video_length: isSet(object.video_length) ? globalThis.Number(object.video_length) : 0,
431
- action_url: isSet(object.action_url) ? globalThis.String(object.action_url) : "",
432
- landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
433
- api_mode: isSet(object.api_mode) ? globalThis.String(object.api_mode) : "",
434
- app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
435
- old_customers: isSet(object.old_customers) ? globalThis.Boolean(object.old_customers) : false,
436
- is_new: isSet(object.is_new) ? globalThis.Boolean(object.is_new) : false,
437
- action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
438
- color1: isSet(object.color1) ? globalThis.String(object.color1) : "",
439
- color2: isSet(object.color2) ? globalThis.String(object.color2) : "",
440
- image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) : "",
441
- tag: isSet(object.tag) ? exports.Tag.fromJSON(object.tag) : undefined,
442
- overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) : "",
443
- };
444
- },
445
- toJSON(message) {
446
- const obj = {};
447
- if (message.text !== "") {
448
- obj.text = message.text;
449
- }
450
- if (message.image_url !== "") {
451
- obj.image_url = message.image_url;
452
- }
453
- if (message.video_url !== "") {
454
- obj.video_url = message.video_url;
455
- }
456
- if (message.video_length !== 0) {
457
- obj.video_length = Math.round(message.video_length);
458
- }
459
- if (message.action_url !== "") {
460
- obj.action_url = message.action_url;
461
- }
462
- if (message.landing_page !== "") {
463
- obj.landing_page = message.landing_page;
464
- }
465
- if (message.api_mode !== "") {
466
- obj.api_mode = message.api_mode;
467
- }
468
- if (message.app_version !== "") {
469
- obj.app_version = message.app_version;
470
- }
471
- if (message.old_customers !== false) {
472
- obj.old_customers = message.old_customers;
473
- }
474
- if (message.is_new !== false) {
475
- obj.is_new = message.is_new;
476
- }
477
- if (message.action_type !== "") {
478
- obj.action_type = message.action_type;
479
- }
480
- if (message.color1 !== "") {
481
- obj.color1 = message.color1;
482
- }
483
- if (message.color2 !== "") {
484
- obj.color2 = message.color2;
485
- }
486
- if (message.image_trailing !== "") {
487
- obj.image_trailing = message.image_trailing;
488
- }
489
- if (message.tag !== undefined) {
490
- obj.tag = exports.Tag.toJSON(message.tag);
491
- }
492
- if (message.overlay_image !== "") {
493
- obj.overlay_image = message.overlay_image;
494
- }
495
- return obj;
496
- },
497
- create(base) {
498
- return exports.BlockData.fromPartial(base ?? {});
499
- },
500
- fromPartial(object) {
501
- const message = createBaseBlockData();
502
- message.text = object.text ?? "";
503
- message.image_url = object.image_url ?? "";
504
- message.video_url = object.video_url ?? "";
505
- message.video_length = object.video_length ?? 0;
506
- message.action_url = object.action_url ?? "";
507
- message.landing_page = object.landing_page ?? "";
508
- message.api_mode = object.api_mode ?? "";
509
- message.app_version = object.app_version ?? "";
510
- message.old_customers = object.old_customers ?? false;
511
- message.is_new = object.is_new ?? false;
512
- message.action_type = object.action_type ?? "";
513
- message.color1 = object.color1 ?? "";
514
- message.color2 = object.color2 ?? "";
515
- message.image_trailing = object.image_trailing ?? "";
516
- message.tag = (object.tag !== undefined && object.tag !== null) ? exports.Tag.fromPartial(object.tag) : undefined;
517
- message.overlay_image = object.overlay_image ?? "";
518
- return message;
519
- },
520
- };
521
- function createBaseTag() {
522
- return { text: "", bg_color: "", text_color: "" };
523
- }
524
- exports.Tag = {
525
- encode(message, writer = minimal_1.default.Writer.create()) {
526
- if (message.text !== "") {
527
- writer.uint32(10).string(message.text);
528
- }
529
- if (message.bg_color !== "") {
530
- writer.uint32(18).string(message.bg_color);
531
- }
532
- if (message.text_color !== "") {
533
- writer.uint32(26).string(message.text_color);
534
- }
535
- return writer;
536
- },
537
- decode(input, length) {
538
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
539
- let end = length === undefined ? reader.len : reader.pos + length;
540
- const message = createBaseTag();
541
- while (reader.pos < end) {
542
- const tag = reader.uint32();
543
- switch (tag >>> 3) {
544
- case 1:
545
- if (tag !== 10) {
546
- break;
547
- }
548
- message.text = reader.string();
549
- continue;
550
- case 2:
551
- if (tag !== 18) {
552
- break;
553
- }
554
- message.bg_color = reader.string();
555
- continue;
556
- case 3:
557
- if (tag !== 26) {
558
- break;
559
- }
560
- message.text_color = reader.string();
561
- continue;
562
- }
563
- if ((tag & 7) === 4 || tag === 0) {
564
- break;
565
- }
566
- reader.skipType(tag & 7);
567
- }
568
- return message;
569
- },
570
- fromJSON(object) {
571
- return {
572
- text: isSet(object.text) ? globalThis.String(object.text) : "",
573
- bg_color: isSet(object.bg_color) ? globalThis.String(object.bg_color) : "",
574
- text_color: isSet(object.text_color) ? globalThis.String(object.text_color) : "",
575
- };
576
- },
577
- toJSON(message) {
578
- const obj = {};
579
- if (message.text !== "") {
580
- obj.text = message.text;
581
- }
582
- if (message.bg_color !== "") {
583
- obj.bg_color = message.bg_color;
584
- }
585
- if (message.text_color !== "") {
586
- obj.text_color = message.text_color;
587
- }
588
- return obj;
589
- },
590
- create(base) {
591
- return exports.Tag.fromPartial(base ?? {});
592
- },
593
- fromPartial(object) {
594
- const message = createBaseTag();
595
- message.text = object.text ?? "";
596
- message.bg_color = object.bg_color ?? "";
597
- message.text_color = object.text_color ?? "";
598
- return message;
599
- },
600
- };
601
- function isSet(value) {
602
- return value !== null && value !== undefined;
603
- }
@@ -1,69 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.getdashboardmaincard";
3
- export interface getDashboardMainCardRequest {
4
- }
5
- export interface getDashboardMainCardResponse {
6
- block_name: string;
7
- block_code: string;
8
- block_data: MainCardData | undefined;
9
- }
10
- export interface MainCardData {
11
- text: string;
12
- amount_text: string;
13
- sub_text: string;
14
- action_button_text: string;
15
- action: string;
16
- action_type: string;
17
- total_loc: number;
18
- used_loc: number;
19
- available_sp_loc: number;
20
- can_reload_card: boolean;
21
- disbursed_amount: string;
22
- remaining_emi: string;
23
- balance_emi_amount: number;
24
- comment: string;
25
- landing_page: string;
26
- timer: string;
27
- image: string;
28
- loc_error: string;
29
- show_button: boolean;
30
- total_stash_cash: string;
31
- supp_title: string;
32
- supp_loc_status: number;
33
- supp_sub_title: string;
34
- }
35
- export declare const getDashboardMainCardRequest: {
36
- encode(_: getDashboardMainCardRequest, writer?: _m0.Writer): _m0.Writer;
37
- decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardMainCardRequest;
38
- fromJSON(_: any): getDashboardMainCardRequest;
39
- toJSON(_: getDashboardMainCardRequest): unknown;
40
- create<I extends Exact<DeepPartial<getDashboardMainCardRequest>, I>>(base?: I): getDashboardMainCardRequest;
41
- fromPartial<I extends Exact<DeepPartial<getDashboardMainCardRequest>, I>>(_: I): getDashboardMainCardRequest;
42
- };
43
- export declare const getDashboardMainCardResponse: {
44
- encode(message: getDashboardMainCardResponse, writer?: _m0.Writer): _m0.Writer;
45
- decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardMainCardResponse;
46
- fromJSON(object: any): getDashboardMainCardResponse;
47
- toJSON(message: getDashboardMainCardResponse): unknown;
48
- create<I extends Exact<DeepPartial<getDashboardMainCardResponse>, I>>(base?: I): getDashboardMainCardResponse;
49
- fromPartial<I extends Exact<DeepPartial<getDashboardMainCardResponse>, I>>(object: I): getDashboardMainCardResponse;
50
- };
51
- export declare const MainCardData: {
52
- encode(message: MainCardData, writer?: _m0.Writer): _m0.Writer;
53
- decode(input: _m0.Reader | Uint8Array, length?: number): MainCardData;
54
- fromJSON(object: any): MainCardData;
55
- toJSON(message: MainCardData): unknown;
56
- create<I extends Exact<DeepPartial<MainCardData>, I>>(base?: I): MainCardData;
57
- fromPartial<I extends Exact<DeepPartial<MainCardData>, I>>(object: I): MainCardData;
58
- };
59
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
60
- 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 {} ? {
61
- [K in keyof T]?: DeepPartial<T[K]>;
62
- } : Partial<T>;
63
- type KeysOfUnion<T> = T extends T ? keyof T : never;
64
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
65
- [K in keyof P]: Exact<P[K], I[K]>;
66
- } & {
67
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
68
- };
69
- export {};