@stashfin/grpc 1.2.751 → 1.2.752
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.
- package/package.json +1 -1
- package/ts/eqxcustomer.d.ts +42 -0
- package/ts/eqxcustomer.js +30 -0
- package/ts/eqxcustomers/getlandinghomepage.d.ts +181 -0
- package/ts/eqxcustomers/getlandinghomepage.js +1423 -0
- package/ts/eqxcustomers/getlandingtoken.d.ts +37 -0
- package/ts/eqxcustomers/getlandingtoken.js +149 -0
- package/ts/eqxcustomers/registerlandingcustomer.d.ts +108 -0
- package/ts/eqxcustomers/registerlandingcustomer.js +807 -0
|
@@ -0,0 +1,1423 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: eqxcustomers/getlandinghomepage.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.getlandingHomePageResponse = exports.LandingPageData = exports.HomeFeed = exports.WebBlocks = exports.Block = exports.BlockData = exports.CustomerBankDetails = exports.FeatureFlagsOutput = exports.SupportFlags = exports.getlandingHomePageRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.getlandinghomepage";
|
|
15
|
+
function createBasegetlandingHomePageRequest() {
|
|
16
|
+
return { landing_auth_token: "", landing_device_id: "", device_version: "", authorization: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.getlandingHomePageRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.landing_auth_token !== "") {
|
|
21
|
+
writer.uint32(10).string(message.landing_auth_token);
|
|
22
|
+
}
|
|
23
|
+
if (message.landing_device_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.landing_device_id);
|
|
25
|
+
}
|
|
26
|
+
if (message.device_version !== "") {
|
|
27
|
+
writer.uint32(26).string(message.device_version);
|
|
28
|
+
}
|
|
29
|
+
if (message.authorization !== "") {
|
|
30
|
+
writer.uint32(34).string(message.authorization);
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
decode(input, length) {
|
|
35
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
36
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBasegetlandingHomePageRequest();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1:
|
|
42
|
+
if (tag !== 10) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.landing_auth_token = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
case 2:
|
|
48
|
+
if (tag !== 18) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
message.landing_device_id = reader.string();
|
|
52
|
+
continue;
|
|
53
|
+
case 3:
|
|
54
|
+
if (tag !== 26) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
message.device_version = reader.string();
|
|
58
|
+
continue;
|
|
59
|
+
case 4:
|
|
60
|
+
if (tag !== 34) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
message.authorization = reader.string();
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
reader.skipType(tag & 7);
|
|
70
|
+
}
|
|
71
|
+
return message;
|
|
72
|
+
},
|
|
73
|
+
fromJSON(object) {
|
|
74
|
+
return {
|
|
75
|
+
landing_auth_token: isSet(object.landing_auth_token) ? globalThis.String(object.landing_auth_token) : "",
|
|
76
|
+
landing_device_id: isSet(object.landing_device_id) ? globalThis.String(object.landing_device_id) : "",
|
|
77
|
+
device_version: isSet(object.device_version) ? globalThis.String(object.device_version) : "",
|
|
78
|
+
authorization: isSet(object.authorization) ? globalThis.String(object.authorization) : "",
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
toJSON(message) {
|
|
82
|
+
const obj = {};
|
|
83
|
+
if (message.landing_auth_token !== "") {
|
|
84
|
+
obj.landing_auth_token = message.landing_auth_token;
|
|
85
|
+
}
|
|
86
|
+
if (message.landing_device_id !== "") {
|
|
87
|
+
obj.landing_device_id = message.landing_device_id;
|
|
88
|
+
}
|
|
89
|
+
if (message.device_version !== "") {
|
|
90
|
+
obj.device_version = message.device_version;
|
|
91
|
+
}
|
|
92
|
+
if (message.authorization !== "") {
|
|
93
|
+
obj.authorization = message.authorization;
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
},
|
|
97
|
+
create(base) {
|
|
98
|
+
return exports.getlandingHomePageRequest.fromPartial(base ?? {});
|
|
99
|
+
},
|
|
100
|
+
fromPartial(object) {
|
|
101
|
+
const message = createBasegetlandingHomePageRequest();
|
|
102
|
+
message.landing_auth_token = object.landing_auth_token ?? "";
|
|
103
|
+
message.landing_device_id = object.landing_device_id ?? "";
|
|
104
|
+
message.device_version = object.device_version ?? "";
|
|
105
|
+
message.authorization = object.authorization ?? "";
|
|
106
|
+
return message;
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
function createBaseSupportFlags() {
|
|
110
|
+
return { click_to_call: 0, ym_chat: 0, custom_support_option: undefined };
|
|
111
|
+
}
|
|
112
|
+
exports.SupportFlags = {
|
|
113
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
114
|
+
if (message.click_to_call !== 0) {
|
|
115
|
+
writer.uint32(8).int32(message.click_to_call);
|
|
116
|
+
}
|
|
117
|
+
if (message.ym_chat !== 0) {
|
|
118
|
+
writer.uint32(16).int32(message.ym_chat);
|
|
119
|
+
}
|
|
120
|
+
if (message.custom_support_option !== undefined) {
|
|
121
|
+
writer.uint32(26).string(message.custom_support_option);
|
|
122
|
+
}
|
|
123
|
+
return writer;
|
|
124
|
+
},
|
|
125
|
+
decode(input, length) {
|
|
126
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
127
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
+
const message = createBaseSupportFlags();
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
const tag = reader.uint32();
|
|
131
|
+
switch (tag >>> 3) {
|
|
132
|
+
case 1:
|
|
133
|
+
if (tag !== 8) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.click_to_call = reader.int32();
|
|
137
|
+
continue;
|
|
138
|
+
case 2:
|
|
139
|
+
if (tag !== 16) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.ym_chat = reader.int32();
|
|
143
|
+
continue;
|
|
144
|
+
case 3:
|
|
145
|
+
if (tag !== 26) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.custom_support_option = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
fromJSON(object) {
|
|
159
|
+
return {
|
|
160
|
+
click_to_call: isSet(object.click_to_call) ? globalThis.Number(object.click_to_call) : 0,
|
|
161
|
+
ym_chat: isSet(object.ym_chat) ? globalThis.Number(object.ym_chat) : 0,
|
|
162
|
+
custom_support_option: isSet(object.custom_support_option)
|
|
163
|
+
? globalThis.String(object.custom_support_option)
|
|
164
|
+
: undefined,
|
|
165
|
+
};
|
|
166
|
+
},
|
|
167
|
+
toJSON(message) {
|
|
168
|
+
const obj = {};
|
|
169
|
+
if (message.click_to_call !== 0) {
|
|
170
|
+
obj.click_to_call = Math.round(message.click_to_call);
|
|
171
|
+
}
|
|
172
|
+
if (message.ym_chat !== 0) {
|
|
173
|
+
obj.ym_chat = Math.round(message.ym_chat);
|
|
174
|
+
}
|
|
175
|
+
if (message.custom_support_option !== undefined) {
|
|
176
|
+
obj.custom_support_option = message.custom_support_option;
|
|
177
|
+
}
|
|
178
|
+
return obj;
|
|
179
|
+
},
|
|
180
|
+
create(base) {
|
|
181
|
+
return exports.SupportFlags.fromPartial(base ?? {});
|
|
182
|
+
},
|
|
183
|
+
fromPartial(object) {
|
|
184
|
+
const message = createBaseSupportFlags();
|
|
185
|
+
message.click_to_call = object.click_to_call ?? 0;
|
|
186
|
+
message.ym_chat = object.ym_chat ?? 0;
|
|
187
|
+
message.custom_support_option = object.custom_support_option ?? undefined;
|
|
188
|
+
return message;
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
function createBaseFeatureFlagsOutput() {
|
|
192
|
+
return {
|
|
193
|
+
is_fip: false,
|
|
194
|
+
popup_pages: [],
|
|
195
|
+
credit_shield_enable: false,
|
|
196
|
+
pcr_enable: false,
|
|
197
|
+
fcp_enabled: false,
|
|
198
|
+
status: "",
|
|
199
|
+
snooze_my_emi: 0,
|
|
200
|
+
loc_disable_display: false,
|
|
201
|
+
delete_my_account: false,
|
|
202
|
+
support_flags: undefined,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
exports.FeatureFlagsOutput = {
|
|
206
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
207
|
+
if (message.is_fip !== false) {
|
|
208
|
+
writer.uint32(8).bool(message.is_fip);
|
|
209
|
+
}
|
|
210
|
+
for (const v of message.popup_pages) {
|
|
211
|
+
writer.uint32(18).string(v);
|
|
212
|
+
}
|
|
213
|
+
if (message.credit_shield_enable !== false) {
|
|
214
|
+
writer.uint32(24).bool(message.credit_shield_enable);
|
|
215
|
+
}
|
|
216
|
+
if (message.pcr_enable !== false) {
|
|
217
|
+
writer.uint32(32).bool(message.pcr_enable);
|
|
218
|
+
}
|
|
219
|
+
if (message.fcp_enabled !== false) {
|
|
220
|
+
writer.uint32(40).bool(message.fcp_enabled);
|
|
221
|
+
}
|
|
222
|
+
if (message.status !== "") {
|
|
223
|
+
writer.uint32(50).string(message.status);
|
|
224
|
+
}
|
|
225
|
+
if (message.snooze_my_emi !== 0) {
|
|
226
|
+
writer.uint32(56).int32(message.snooze_my_emi);
|
|
227
|
+
}
|
|
228
|
+
if (message.loc_disable_display !== false) {
|
|
229
|
+
writer.uint32(64).bool(message.loc_disable_display);
|
|
230
|
+
}
|
|
231
|
+
if (message.delete_my_account !== false) {
|
|
232
|
+
writer.uint32(72).bool(message.delete_my_account);
|
|
233
|
+
}
|
|
234
|
+
if (message.support_flags !== undefined) {
|
|
235
|
+
exports.SupportFlags.encode(message.support_flags, writer.uint32(82).fork()).ldelim();
|
|
236
|
+
}
|
|
237
|
+
return writer;
|
|
238
|
+
},
|
|
239
|
+
decode(input, length) {
|
|
240
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
241
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
242
|
+
const message = createBaseFeatureFlagsOutput();
|
|
243
|
+
while (reader.pos < end) {
|
|
244
|
+
const tag = reader.uint32();
|
|
245
|
+
switch (tag >>> 3) {
|
|
246
|
+
case 1:
|
|
247
|
+
if (tag !== 8) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.is_fip = reader.bool();
|
|
251
|
+
continue;
|
|
252
|
+
case 2:
|
|
253
|
+
if (tag !== 18) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.popup_pages.push(reader.string());
|
|
257
|
+
continue;
|
|
258
|
+
case 3:
|
|
259
|
+
if (tag !== 24) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.credit_shield_enable = reader.bool();
|
|
263
|
+
continue;
|
|
264
|
+
case 4:
|
|
265
|
+
if (tag !== 32) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.pcr_enable = reader.bool();
|
|
269
|
+
continue;
|
|
270
|
+
case 5:
|
|
271
|
+
if (tag !== 40) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.fcp_enabled = reader.bool();
|
|
275
|
+
continue;
|
|
276
|
+
case 6:
|
|
277
|
+
if (tag !== 50) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
message.status = reader.string();
|
|
281
|
+
continue;
|
|
282
|
+
case 7:
|
|
283
|
+
if (tag !== 56) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.snooze_my_emi = reader.int32();
|
|
287
|
+
continue;
|
|
288
|
+
case 8:
|
|
289
|
+
if (tag !== 64) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.loc_disable_display = reader.bool();
|
|
293
|
+
continue;
|
|
294
|
+
case 9:
|
|
295
|
+
if (tag !== 72) {
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
message.delete_my_account = reader.bool();
|
|
299
|
+
continue;
|
|
300
|
+
case 10:
|
|
301
|
+
if (tag !== 82) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.support_flags = exports.SupportFlags.decode(reader, reader.uint32());
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
reader.skipType(tag & 7);
|
|
311
|
+
}
|
|
312
|
+
return message;
|
|
313
|
+
},
|
|
314
|
+
fromJSON(object) {
|
|
315
|
+
return {
|
|
316
|
+
is_fip: isSet(object.is_fip) ? globalThis.Boolean(object.is_fip) : false,
|
|
317
|
+
popup_pages: globalThis.Array.isArray(object?.popup_pages)
|
|
318
|
+
? object.popup_pages.map((e) => globalThis.String(e))
|
|
319
|
+
: [],
|
|
320
|
+
credit_shield_enable: isSet(object.credit_shield_enable)
|
|
321
|
+
? globalThis.Boolean(object.credit_shield_enable)
|
|
322
|
+
: false,
|
|
323
|
+
pcr_enable: isSet(object.pcr_enable) ? globalThis.Boolean(object.pcr_enable) : false,
|
|
324
|
+
fcp_enabled: isSet(object.fcp_enabled) ? globalThis.Boolean(object.fcp_enabled) : false,
|
|
325
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
326
|
+
snooze_my_emi: isSet(object.snooze_my_emi) ? globalThis.Number(object.snooze_my_emi) : 0,
|
|
327
|
+
loc_disable_display: isSet(object.loc_disable_display) ? globalThis.Boolean(object.loc_disable_display) : false,
|
|
328
|
+
delete_my_account: isSet(object.delete_my_account) ? globalThis.Boolean(object.delete_my_account) : false,
|
|
329
|
+
support_flags: isSet(object.support_flags) ? exports.SupportFlags.fromJSON(object.support_flags) : undefined,
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
toJSON(message) {
|
|
333
|
+
const obj = {};
|
|
334
|
+
if (message.is_fip !== false) {
|
|
335
|
+
obj.is_fip = message.is_fip;
|
|
336
|
+
}
|
|
337
|
+
if (message.popup_pages?.length) {
|
|
338
|
+
obj.popup_pages = message.popup_pages;
|
|
339
|
+
}
|
|
340
|
+
if (message.credit_shield_enable !== false) {
|
|
341
|
+
obj.credit_shield_enable = message.credit_shield_enable;
|
|
342
|
+
}
|
|
343
|
+
if (message.pcr_enable !== false) {
|
|
344
|
+
obj.pcr_enable = message.pcr_enable;
|
|
345
|
+
}
|
|
346
|
+
if (message.fcp_enabled !== false) {
|
|
347
|
+
obj.fcp_enabled = message.fcp_enabled;
|
|
348
|
+
}
|
|
349
|
+
if (message.status !== "") {
|
|
350
|
+
obj.status = message.status;
|
|
351
|
+
}
|
|
352
|
+
if (message.snooze_my_emi !== 0) {
|
|
353
|
+
obj.snooze_my_emi = Math.round(message.snooze_my_emi);
|
|
354
|
+
}
|
|
355
|
+
if (message.loc_disable_display !== false) {
|
|
356
|
+
obj.loc_disable_display = message.loc_disable_display;
|
|
357
|
+
}
|
|
358
|
+
if (message.delete_my_account !== false) {
|
|
359
|
+
obj.delete_my_account = message.delete_my_account;
|
|
360
|
+
}
|
|
361
|
+
if (message.support_flags !== undefined) {
|
|
362
|
+
obj.support_flags = exports.SupportFlags.toJSON(message.support_flags);
|
|
363
|
+
}
|
|
364
|
+
return obj;
|
|
365
|
+
},
|
|
366
|
+
create(base) {
|
|
367
|
+
return exports.FeatureFlagsOutput.fromPartial(base ?? {});
|
|
368
|
+
},
|
|
369
|
+
fromPartial(object) {
|
|
370
|
+
const message = createBaseFeatureFlagsOutput();
|
|
371
|
+
message.is_fip = object.is_fip ?? false;
|
|
372
|
+
message.popup_pages = object.popup_pages?.map((e) => e) || [];
|
|
373
|
+
message.credit_shield_enable = object.credit_shield_enable ?? false;
|
|
374
|
+
message.pcr_enable = object.pcr_enable ?? false;
|
|
375
|
+
message.fcp_enabled = object.fcp_enabled ?? false;
|
|
376
|
+
message.status = object.status ?? "";
|
|
377
|
+
message.snooze_my_emi = object.snooze_my_emi ?? 0;
|
|
378
|
+
message.loc_disable_display = object.loc_disable_display ?? false;
|
|
379
|
+
message.delete_my_account = object.delete_my_account ?? false;
|
|
380
|
+
message.support_flags = (object.support_flags !== undefined && object.support_flags !== null)
|
|
381
|
+
? exports.SupportFlags.fromPartial(object.support_flags)
|
|
382
|
+
: undefined;
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
function createBaseCustomerBankDetails() {
|
|
387
|
+
return { account_number: "", ifsc_code: "", bank_name: "" };
|
|
388
|
+
}
|
|
389
|
+
exports.CustomerBankDetails = {
|
|
390
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
391
|
+
if (message.account_number !== "") {
|
|
392
|
+
writer.uint32(10).string(message.account_number);
|
|
393
|
+
}
|
|
394
|
+
if (message.ifsc_code !== "") {
|
|
395
|
+
writer.uint32(18).string(message.ifsc_code);
|
|
396
|
+
}
|
|
397
|
+
if (message.bank_name !== "") {
|
|
398
|
+
writer.uint32(26).string(message.bank_name);
|
|
399
|
+
}
|
|
400
|
+
return writer;
|
|
401
|
+
},
|
|
402
|
+
decode(input, length) {
|
|
403
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
404
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
405
|
+
const message = createBaseCustomerBankDetails();
|
|
406
|
+
while (reader.pos < end) {
|
|
407
|
+
const tag = reader.uint32();
|
|
408
|
+
switch (tag >>> 3) {
|
|
409
|
+
case 1:
|
|
410
|
+
if (tag !== 10) {
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
message.account_number = reader.string();
|
|
414
|
+
continue;
|
|
415
|
+
case 2:
|
|
416
|
+
if (tag !== 18) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
message.ifsc_code = reader.string();
|
|
420
|
+
continue;
|
|
421
|
+
case 3:
|
|
422
|
+
if (tag !== 26) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
message.bank_name = reader.string();
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
reader.skipType(tag & 7);
|
|
432
|
+
}
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
fromJSON(object) {
|
|
436
|
+
return {
|
|
437
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
438
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
439
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
440
|
+
};
|
|
441
|
+
},
|
|
442
|
+
toJSON(message) {
|
|
443
|
+
const obj = {};
|
|
444
|
+
if (message.account_number !== "") {
|
|
445
|
+
obj.account_number = message.account_number;
|
|
446
|
+
}
|
|
447
|
+
if (message.ifsc_code !== "") {
|
|
448
|
+
obj.ifsc_code = message.ifsc_code;
|
|
449
|
+
}
|
|
450
|
+
if (message.bank_name !== "") {
|
|
451
|
+
obj.bank_name = message.bank_name;
|
|
452
|
+
}
|
|
453
|
+
return obj;
|
|
454
|
+
},
|
|
455
|
+
create(base) {
|
|
456
|
+
return exports.CustomerBankDetails.fromPartial(base ?? {});
|
|
457
|
+
},
|
|
458
|
+
fromPartial(object) {
|
|
459
|
+
const message = createBaseCustomerBankDetails();
|
|
460
|
+
message.account_number = object.account_number ?? "";
|
|
461
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
462
|
+
message.bank_name = object.bank_name ?? "";
|
|
463
|
+
return message;
|
|
464
|
+
},
|
|
465
|
+
};
|
|
466
|
+
function createBaseBlockData() {
|
|
467
|
+
return {
|
|
468
|
+
text: "",
|
|
469
|
+
amount_text: undefined,
|
|
470
|
+
sub_text: "",
|
|
471
|
+
action_button_text: "",
|
|
472
|
+
action: "",
|
|
473
|
+
action_type: "",
|
|
474
|
+
total_loc: undefined,
|
|
475
|
+
used_loc: undefined,
|
|
476
|
+
available_sp_loc: 0,
|
|
477
|
+
can_reload_card: false,
|
|
478
|
+
disbursed_amount: undefined,
|
|
479
|
+
remaining_emi: "",
|
|
480
|
+
balance_emi_amount: 0,
|
|
481
|
+
comment: "",
|
|
482
|
+
comment2: "",
|
|
483
|
+
landing_page: "",
|
|
484
|
+
timer: "",
|
|
485
|
+
image: "",
|
|
486
|
+
loc_error: "",
|
|
487
|
+
show_button: false,
|
|
488
|
+
total_stash_cash: "",
|
|
489
|
+
supp_title: "",
|
|
490
|
+
supp_loc_status: 0,
|
|
491
|
+
supp_sub_title: "",
|
|
492
|
+
heading_1: "",
|
|
493
|
+
heading_2: "",
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
exports.BlockData = {
|
|
497
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
498
|
+
if (message.text !== "") {
|
|
499
|
+
writer.uint32(10).string(message.text);
|
|
500
|
+
}
|
|
501
|
+
if (message.amount_text !== undefined) {
|
|
502
|
+
writer.uint32(18).string(message.amount_text);
|
|
503
|
+
}
|
|
504
|
+
if (message.sub_text !== "") {
|
|
505
|
+
writer.uint32(26).string(message.sub_text);
|
|
506
|
+
}
|
|
507
|
+
if (message.action_button_text !== "") {
|
|
508
|
+
writer.uint32(34).string(message.action_button_text);
|
|
509
|
+
}
|
|
510
|
+
if (message.action !== "") {
|
|
511
|
+
writer.uint32(42).string(message.action);
|
|
512
|
+
}
|
|
513
|
+
if (message.action_type !== "") {
|
|
514
|
+
writer.uint32(50).string(message.action_type);
|
|
515
|
+
}
|
|
516
|
+
if (message.total_loc !== undefined) {
|
|
517
|
+
writer.uint32(58).string(message.total_loc);
|
|
518
|
+
}
|
|
519
|
+
if (message.used_loc !== undefined) {
|
|
520
|
+
writer.uint32(66).string(message.used_loc);
|
|
521
|
+
}
|
|
522
|
+
if (message.available_sp_loc !== 0) {
|
|
523
|
+
writer.uint32(73).double(message.available_sp_loc);
|
|
524
|
+
}
|
|
525
|
+
if (message.can_reload_card !== false) {
|
|
526
|
+
writer.uint32(80).bool(message.can_reload_card);
|
|
527
|
+
}
|
|
528
|
+
if (message.disbursed_amount !== undefined) {
|
|
529
|
+
writer.uint32(90).string(message.disbursed_amount);
|
|
530
|
+
}
|
|
531
|
+
if (message.remaining_emi !== "") {
|
|
532
|
+
writer.uint32(98).string(message.remaining_emi);
|
|
533
|
+
}
|
|
534
|
+
if (message.balance_emi_amount !== 0) {
|
|
535
|
+
writer.uint32(105).double(message.balance_emi_amount);
|
|
536
|
+
}
|
|
537
|
+
if (message.comment !== "") {
|
|
538
|
+
writer.uint32(114).string(message.comment);
|
|
539
|
+
}
|
|
540
|
+
if (message.comment2 !== "") {
|
|
541
|
+
writer.uint32(122).string(message.comment2);
|
|
542
|
+
}
|
|
543
|
+
if (message.landing_page !== "") {
|
|
544
|
+
writer.uint32(130).string(message.landing_page);
|
|
545
|
+
}
|
|
546
|
+
if (message.timer !== "") {
|
|
547
|
+
writer.uint32(138).string(message.timer);
|
|
548
|
+
}
|
|
549
|
+
if (message.image !== "") {
|
|
550
|
+
writer.uint32(146).string(message.image);
|
|
551
|
+
}
|
|
552
|
+
if (message.loc_error !== "") {
|
|
553
|
+
writer.uint32(154).string(message.loc_error);
|
|
554
|
+
}
|
|
555
|
+
if (message.show_button !== false) {
|
|
556
|
+
writer.uint32(160).bool(message.show_button);
|
|
557
|
+
}
|
|
558
|
+
if (message.total_stash_cash !== "") {
|
|
559
|
+
writer.uint32(170).string(message.total_stash_cash);
|
|
560
|
+
}
|
|
561
|
+
if (message.supp_title !== "") {
|
|
562
|
+
writer.uint32(178).string(message.supp_title);
|
|
563
|
+
}
|
|
564
|
+
if (message.supp_loc_status !== 0) {
|
|
565
|
+
writer.uint32(184).int32(message.supp_loc_status);
|
|
566
|
+
}
|
|
567
|
+
if (message.supp_sub_title !== "") {
|
|
568
|
+
writer.uint32(194).string(message.supp_sub_title);
|
|
569
|
+
}
|
|
570
|
+
if (message.heading_1 !== "") {
|
|
571
|
+
writer.uint32(202).string(message.heading_1);
|
|
572
|
+
}
|
|
573
|
+
if (message.heading_2 !== "") {
|
|
574
|
+
writer.uint32(210).string(message.heading_2);
|
|
575
|
+
}
|
|
576
|
+
return writer;
|
|
577
|
+
},
|
|
578
|
+
decode(input, length) {
|
|
579
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
580
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
581
|
+
const message = createBaseBlockData();
|
|
582
|
+
while (reader.pos < end) {
|
|
583
|
+
const tag = reader.uint32();
|
|
584
|
+
switch (tag >>> 3) {
|
|
585
|
+
case 1:
|
|
586
|
+
if (tag !== 10) {
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
message.text = reader.string();
|
|
590
|
+
continue;
|
|
591
|
+
case 2:
|
|
592
|
+
if (tag !== 18) {
|
|
593
|
+
break;
|
|
594
|
+
}
|
|
595
|
+
message.amount_text = reader.string();
|
|
596
|
+
continue;
|
|
597
|
+
case 3:
|
|
598
|
+
if (tag !== 26) {
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
message.sub_text = reader.string();
|
|
602
|
+
continue;
|
|
603
|
+
case 4:
|
|
604
|
+
if (tag !== 34) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
message.action_button_text = reader.string();
|
|
608
|
+
continue;
|
|
609
|
+
case 5:
|
|
610
|
+
if (tag !== 42) {
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
message.action = reader.string();
|
|
614
|
+
continue;
|
|
615
|
+
case 6:
|
|
616
|
+
if (tag !== 50) {
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
message.action_type = reader.string();
|
|
620
|
+
continue;
|
|
621
|
+
case 7:
|
|
622
|
+
if (tag !== 58) {
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
message.total_loc = reader.string();
|
|
626
|
+
continue;
|
|
627
|
+
case 8:
|
|
628
|
+
if (tag !== 66) {
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
message.used_loc = reader.string();
|
|
632
|
+
continue;
|
|
633
|
+
case 9:
|
|
634
|
+
if (tag !== 73) {
|
|
635
|
+
break;
|
|
636
|
+
}
|
|
637
|
+
message.available_sp_loc = reader.double();
|
|
638
|
+
continue;
|
|
639
|
+
case 10:
|
|
640
|
+
if (tag !== 80) {
|
|
641
|
+
break;
|
|
642
|
+
}
|
|
643
|
+
message.can_reload_card = reader.bool();
|
|
644
|
+
continue;
|
|
645
|
+
case 11:
|
|
646
|
+
if (tag !== 90) {
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
message.disbursed_amount = reader.string();
|
|
650
|
+
continue;
|
|
651
|
+
case 12:
|
|
652
|
+
if (tag !== 98) {
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
message.remaining_emi = reader.string();
|
|
656
|
+
continue;
|
|
657
|
+
case 13:
|
|
658
|
+
if (tag !== 105) {
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
message.balance_emi_amount = reader.double();
|
|
662
|
+
continue;
|
|
663
|
+
case 14:
|
|
664
|
+
if (tag !== 114) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.comment = reader.string();
|
|
668
|
+
continue;
|
|
669
|
+
case 15:
|
|
670
|
+
if (tag !== 122) {
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
message.comment2 = reader.string();
|
|
674
|
+
continue;
|
|
675
|
+
case 16:
|
|
676
|
+
if (tag !== 130) {
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
message.landing_page = reader.string();
|
|
680
|
+
continue;
|
|
681
|
+
case 17:
|
|
682
|
+
if (tag !== 138) {
|
|
683
|
+
break;
|
|
684
|
+
}
|
|
685
|
+
message.timer = reader.string();
|
|
686
|
+
continue;
|
|
687
|
+
case 18:
|
|
688
|
+
if (tag !== 146) {
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
message.image = reader.string();
|
|
692
|
+
continue;
|
|
693
|
+
case 19:
|
|
694
|
+
if (tag !== 154) {
|
|
695
|
+
break;
|
|
696
|
+
}
|
|
697
|
+
message.loc_error = reader.string();
|
|
698
|
+
continue;
|
|
699
|
+
case 20:
|
|
700
|
+
if (tag !== 160) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
message.show_button = reader.bool();
|
|
704
|
+
continue;
|
|
705
|
+
case 21:
|
|
706
|
+
if (tag !== 170) {
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
709
|
+
message.total_stash_cash = reader.string();
|
|
710
|
+
continue;
|
|
711
|
+
case 22:
|
|
712
|
+
if (tag !== 178) {
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
message.supp_title = reader.string();
|
|
716
|
+
continue;
|
|
717
|
+
case 23:
|
|
718
|
+
if (tag !== 184) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
message.supp_loc_status = reader.int32();
|
|
722
|
+
continue;
|
|
723
|
+
case 24:
|
|
724
|
+
if (tag !== 194) {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
message.supp_sub_title = reader.string();
|
|
728
|
+
continue;
|
|
729
|
+
case 25:
|
|
730
|
+
if (tag !== 202) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
message.heading_1 = reader.string();
|
|
734
|
+
continue;
|
|
735
|
+
case 26:
|
|
736
|
+
if (tag !== 210) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
message.heading_2 = reader.string();
|
|
740
|
+
continue;
|
|
741
|
+
}
|
|
742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
reader.skipType(tag & 7);
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
748
|
+
},
|
|
749
|
+
fromJSON(object) {
|
|
750
|
+
return {
|
|
751
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
752
|
+
amount_text: isSet(object.amount_text) ? globalThis.String(object.amount_text) : undefined,
|
|
753
|
+
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
|
|
754
|
+
action_button_text: isSet(object.action_button_text) ? globalThis.String(object.action_button_text) : "",
|
|
755
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
756
|
+
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
757
|
+
total_loc: isSet(object.total_loc) ? globalThis.String(object.total_loc) : undefined,
|
|
758
|
+
used_loc: isSet(object.used_loc) ? globalThis.String(object.used_loc) : undefined,
|
|
759
|
+
available_sp_loc: isSet(object.available_sp_loc) ? globalThis.Number(object.available_sp_loc) : 0,
|
|
760
|
+
can_reload_card: isSet(object.can_reload_card) ? globalThis.Boolean(object.can_reload_card) : false,
|
|
761
|
+
disbursed_amount: isSet(object.disbursed_amount) ? globalThis.String(object.disbursed_amount) : undefined,
|
|
762
|
+
remaining_emi: isSet(object.remaining_emi) ? globalThis.String(object.remaining_emi) : "",
|
|
763
|
+
balance_emi_amount: isSet(object.balance_emi_amount) ? globalThis.Number(object.balance_emi_amount) : 0,
|
|
764
|
+
comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
|
|
765
|
+
comment2: isSet(object.comment2) ? globalThis.String(object.comment2) : "",
|
|
766
|
+
landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
|
|
767
|
+
timer: isSet(object.timer) ? globalThis.String(object.timer) : "",
|
|
768
|
+
image: isSet(object.image) ? globalThis.String(object.image) : "",
|
|
769
|
+
loc_error: isSet(object.loc_error) ? globalThis.String(object.loc_error) : "",
|
|
770
|
+
show_button: isSet(object.show_button) ? globalThis.Boolean(object.show_button) : false,
|
|
771
|
+
total_stash_cash: isSet(object.total_stash_cash) ? globalThis.String(object.total_stash_cash) : "",
|
|
772
|
+
supp_title: isSet(object.supp_title) ? globalThis.String(object.supp_title) : "",
|
|
773
|
+
supp_loc_status: isSet(object.supp_loc_status) ? globalThis.Number(object.supp_loc_status) : 0,
|
|
774
|
+
supp_sub_title: isSet(object.supp_sub_title) ? globalThis.String(object.supp_sub_title) : "",
|
|
775
|
+
heading_1: isSet(object.heading_1) ? globalThis.String(object.heading_1) : "",
|
|
776
|
+
heading_2: isSet(object.heading_2) ? globalThis.String(object.heading_2) : "",
|
|
777
|
+
};
|
|
778
|
+
},
|
|
779
|
+
toJSON(message) {
|
|
780
|
+
const obj = {};
|
|
781
|
+
if (message.text !== "") {
|
|
782
|
+
obj.text = message.text;
|
|
783
|
+
}
|
|
784
|
+
if (message.amount_text !== undefined) {
|
|
785
|
+
obj.amount_text = message.amount_text;
|
|
786
|
+
}
|
|
787
|
+
if (message.sub_text !== "") {
|
|
788
|
+
obj.sub_text = message.sub_text;
|
|
789
|
+
}
|
|
790
|
+
if (message.action_button_text !== "") {
|
|
791
|
+
obj.action_button_text = message.action_button_text;
|
|
792
|
+
}
|
|
793
|
+
if (message.action !== "") {
|
|
794
|
+
obj.action = message.action;
|
|
795
|
+
}
|
|
796
|
+
if (message.action_type !== "") {
|
|
797
|
+
obj.action_type = message.action_type;
|
|
798
|
+
}
|
|
799
|
+
if (message.total_loc !== undefined) {
|
|
800
|
+
obj.total_loc = message.total_loc;
|
|
801
|
+
}
|
|
802
|
+
if (message.used_loc !== undefined) {
|
|
803
|
+
obj.used_loc = message.used_loc;
|
|
804
|
+
}
|
|
805
|
+
if (message.available_sp_loc !== 0) {
|
|
806
|
+
obj.available_sp_loc = message.available_sp_loc;
|
|
807
|
+
}
|
|
808
|
+
if (message.can_reload_card !== false) {
|
|
809
|
+
obj.can_reload_card = message.can_reload_card;
|
|
810
|
+
}
|
|
811
|
+
if (message.disbursed_amount !== undefined) {
|
|
812
|
+
obj.disbursed_amount = message.disbursed_amount;
|
|
813
|
+
}
|
|
814
|
+
if (message.remaining_emi !== "") {
|
|
815
|
+
obj.remaining_emi = message.remaining_emi;
|
|
816
|
+
}
|
|
817
|
+
if (message.balance_emi_amount !== 0) {
|
|
818
|
+
obj.balance_emi_amount = message.balance_emi_amount;
|
|
819
|
+
}
|
|
820
|
+
if (message.comment !== "") {
|
|
821
|
+
obj.comment = message.comment;
|
|
822
|
+
}
|
|
823
|
+
if (message.comment2 !== "") {
|
|
824
|
+
obj.comment2 = message.comment2;
|
|
825
|
+
}
|
|
826
|
+
if (message.landing_page !== "") {
|
|
827
|
+
obj.landing_page = message.landing_page;
|
|
828
|
+
}
|
|
829
|
+
if (message.timer !== "") {
|
|
830
|
+
obj.timer = message.timer;
|
|
831
|
+
}
|
|
832
|
+
if (message.image !== "") {
|
|
833
|
+
obj.image = message.image;
|
|
834
|
+
}
|
|
835
|
+
if (message.loc_error !== "") {
|
|
836
|
+
obj.loc_error = message.loc_error;
|
|
837
|
+
}
|
|
838
|
+
if (message.show_button !== false) {
|
|
839
|
+
obj.show_button = message.show_button;
|
|
840
|
+
}
|
|
841
|
+
if (message.total_stash_cash !== "") {
|
|
842
|
+
obj.total_stash_cash = message.total_stash_cash;
|
|
843
|
+
}
|
|
844
|
+
if (message.supp_title !== "") {
|
|
845
|
+
obj.supp_title = message.supp_title;
|
|
846
|
+
}
|
|
847
|
+
if (message.supp_loc_status !== 0) {
|
|
848
|
+
obj.supp_loc_status = Math.round(message.supp_loc_status);
|
|
849
|
+
}
|
|
850
|
+
if (message.supp_sub_title !== "") {
|
|
851
|
+
obj.supp_sub_title = message.supp_sub_title;
|
|
852
|
+
}
|
|
853
|
+
if (message.heading_1 !== "") {
|
|
854
|
+
obj.heading_1 = message.heading_1;
|
|
855
|
+
}
|
|
856
|
+
if (message.heading_2 !== "") {
|
|
857
|
+
obj.heading_2 = message.heading_2;
|
|
858
|
+
}
|
|
859
|
+
return obj;
|
|
860
|
+
},
|
|
861
|
+
create(base) {
|
|
862
|
+
return exports.BlockData.fromPartial(base ?? {});
|
|
863
|
+
},
|
|
864
|
+
fromPartial(object) {
|
|
865
|
+
const message = createBaseBlockData();
|
|
866
|
+
message.text = object.text ?? "";
|
|
867
|
+
message.amount_text = object.amount_text ?? undefined;
|
|
868
|
+
message.sub_text = object.sub_text ?? "";
|
|
869
|
+
message.action_button_text = object.action_button_text ?? "";
|
|
870
|
+
message.action = object.action ?? "";
|
|
871
|
+
message.action_type = object.action_type ?? "";
|
|
872
|
+
message.total_loc = object.total_loc ?? undefined;
|
|
873
|
+
message.used_loc = object.used_loc ?? undefined;
|
|
874
|
+
message.available_sp_loc = object.available_sp_loc ?? 0;
|
|
875
|
+
message.can_reload_card = object.can_reload_card ?? false;
|
|
876
|
+
message.disbursed_amount = object.disbursed_amount ?? undefined;
|
|
877
|
+
message.remaining_emi = object.remaining_emi ?? "";
|
|
878
|
+
message.balance_emi_amount = object.balance_emi_amount ?? 0;
|
|
879
|
+
message.comment = object.comment ?? "";
|
|
880
|
+
message.comment2 = object.comment2 ?? "";
|
|
881
|
+
message.landing_page = object.landing_page ?? "";
|
|
882
|
+
message.timer = object.timer ?? "";
|
|
883
|
+
message.image = object.image ?? "";
|
|
884
|
+
message.loc_error = object.loc_error ?? "";
|
|
885
|
+
message.show_button = object.show_button ?? false;
|
|
886
|
+
message.total_stash_cash = object.total_stash_cash ?? "";
|
|
887
|
+
message.supp_title = object.supp_title ?? "";
|
|
888
|
+
message.supp_loc_status = object.supp_loc_status ?? 0;
|
|
889
|
+
message.supp_sub_title = object.supp_sub_title ?? "";
|
|
890
|
+
message.heading_1 = object.heading_1 ?? "";
|
|
891
|
+
message.heading_2 = object.heading_2 ?? "";
|
|
892
|
+
return message;
|
|
893
|
+
},
|
|
894
|
+
};
|
|
895
|
+
function createBaseBlock() {
|
|
896
|
+
return { block_name: "", block_code: "", rank: 0, block_data: undefined };
|
|
897
|
+
}
|
|
898
|
+
exports.Block = {
|
|
899
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
900
|
+
if (message.block_name !== "") {
|
|
901
|
+
writer.uint32(10).string(message.block_name);
|
|
902
|
+
}
|
|
903
|
+
if (message.block_code !== "") {
|
|
904
|
+
writer.uint32(18).string(message.block_code);
|
|
905
|
+
}
|
|
906
|
+
if (message.rank !== 0) {
|
|
907
|
+
writer.uint32(24).int32(message.rank);
|
|
908
|
+
}
|
|
909
|
+
if (message.block_data !== undefined) {
|
|
910
|
+
exports.BlockData.encode(message.block_data, writer.uint32(34).fork()).ldelim();
|
|
911
|
+
}
|
|
912
|
+
return writer;
|
|
913
|
+
},
|
|
914
|
+
decode(input, length) {
|
|
915
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
916
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
917
|
+
const message = createBaseBlock();
|
|
918
|
+
while (reader.pos < end) {
|
|
919
|
+
const tag = reader.uint32();
|
|
920
|
+
switch (tag >>> 3) {
|
|
921
|
+
case 1:
|
|
922
|
+
if (tag !== 10) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
message.block_name = reader.string();
|
|
926
|
+
continue;
|
|
927
|
+
case 2:
|
|
928
|
+
if (tag !== 18) {
|
|
929
|
+
break;
|
|
930
|
+
}
|
|
931
|
+
message.block_code = reader.string();
|
|
932
|
+
continue;
|
|
933
|
+
case 3:
|
|
934
|
+
if (tag !== 24) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
message.rank = reader.int32();
|
|
938
|
+
continue;
|
|
939
|
+
case 4:
|
|
940
|
+
if (tag !== 34) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
message.block_data = exports.BlockData.decode(reader, reader.uint32());
|
|
944
|
+
continue;
|
|
945
|
+
}
|
|
946
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
reader.skipType(tag & 7);
|
|
950
|
+
}
|
|
951
|
+
return message;
|
|
952
|
+
},
|
|
953
|
+
fromJSON(object) {
|
|
954
|
+
return {
|
|
955
|
+
block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
|
|
956
|
+
block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
|
|
957
|
+
rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
|
|
958
|
+
block_data: isSet(object.block_data) ? exports.BlockData.fromJSON(object.block_data) : undefined,
|
|
959
|
+
};
|
|
960
|
+
},
|
|
961
|
+
toJSON(message) {
|
|
962
|
+
const obj = {};
|
|
963
|
+
if (message.block_name !== "") {
|
|
964
|
+
obj.block_name = message.block_name;
|
|
965
|
+
}
|
|
966
|
+
if (message.block_code !== "") {
|
|
967
|
+
obj.block_code = message.block_code;
|
|
968
|
+
}
|
|
969
|
+
if (message.rank !== 0) {
|
|
970
|
+
obj.rank = Math.round(message.rank);
|
|
971
|
+
}
|
|
972
|
+
if (message.block_data !== undefined) {
|
|
973
|
+
obj.block_data = exports.BlockData.toJSON(message.block_data);
|
|
974
|
+
}
|
|
975
|
+
return obj;
|
|
976
|
+
},
|
|
977
|
+
create(base) {
|
|
978
|
+
return exports.Block.fromPartial(base ?? {});
|
|
979
|
+
},
|
|
980
|
+
fromPartial(object) {
|
|
981
|
+
const message = createBaseBlock();
|
|
982
|
+
message.block_name = object.block_name ?? "";
|
|
983
|
+
message.block_code = object.block_code ?? "";
|
|
984
|
+
message.rank = object.rank ?? 0;
|
|
985
|
+
message.block_data = (object.block_data !== undefined && object.block_data !== null)
|
|
986
|
+
? exports.BlockData.fromPartial(object.block_data)
|
|
987
|
+
: undefined;
|
|
988
|
+
return message;
|
|
989
|
+
},
|
|
990
|
+
};
|
|
991
|
+
function createBaseWebBlocks() {
|
|
992
|
+
return { show_web_journey_popup: false, approve_amount: "", loan_status: "" };
|
|
993
|
+
}
|
|
994
|
+
exports.WebBlocks = {
|
|
995
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
996
|
+
if (message.show_web_journey_popup !== false) {
|
|
997
|
+
writer.uint32(8).bool(message.show_web_journey_popup);
|
|
998
|
+
}
|
|
999
|
+
if (message.approve_amount !== "") {
|
|
1000
|
+
writer.uint32(18).string(message.approve_amount);
|
|
1001
|
+
}
|
|
1002
|
+
if (message.loan_status !== "") {
|
|
1003
|
+
writer.uint32(26).string(message.loan_status);
|
|
1004
|
+
}
|
|
1005
|
+
return writer;
|
|
1006
|
+
},
|
|
1007
|
+
decode(input, length) {
|
|
1008
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1009
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1010
|
+
const message = createBaseWebBlocks();
|
|
1011
|
+
while (reader.pos < end) {
|
|
1012
|
+
const tag = reader.uint32();
|
|
1013
|
+
switch (tag >>> 3) {
|
|
1014
|
+
case 1:
|
|
1015
|
+
if (tag !== 8) {
|
|
1016
|
+
break;
|
|
1017
|
+
}
|
|
1018
|
+
message.show_web_journey_popup = reader.bool();
|
|
1019
|
+
continue;
|
|
1020
|
+
case 2:
|
|
1021
|
+
if (tag !== 18) {
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
message.approve_amount = reader.string();
|
|
1025
|
+
continue;
|
|
1026
|
+
case 3:
|
|
1027
|
+
if (tag !== 26) {
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
1030
|
+
message.loan_status = reader.string();
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
reader.skipType(tag & 7);
|
|
1037
|
+
}
|
|
1038
|
+
return message;
|
|
1039
|
+
},
|
|
1040
|
+
fromJSON(object) {
|
|
1041
|
+
return {
|
|
1042
|
+
show_web_journey_popup: isSet(object.show_web_journey_popup)
|
|
1043
|
+
? globalThis.Boolean(object.show_web_journey_popup)
|
|
1044
|
+
: false,
|
|
1045
|
+
approve_amount: isSet(object.approve_amount) ? globalThis.String(object.approve_amount) : "",
|
|
1046
|
+
loan_status: isSet(object.loan_status) ? globalThis.String(object.loan_status) : "",
|
|
1047
|
+
};
|
|
1048
|
+
},
|
|
1049
|
+
toJSON(message) {
|
|
1050
|
+
const obj = {};
|
|
1051
|
+
if (message.show_web_journey_popup !== false) {
|
|
1052
|
+
obj.show_web_journey_popup = message.show_web_journey_popup;
|
|
1053
|
+
}
|
|
1054
|
+
if (message.approve_amount !== "") {
|
|
1055
|
+
obj.approve_amount = message.approve_amount;
|
|
1056
|
+
}
|
|
1057
|
+
if (message.loan_status !== "") {
|
|
1058
|
+
obj.loan_status = message.loan_status;
|
|
1059
|
+
}
|
|
1060
|
+
return obj;
|
|
1061
|
+
},
|
|
1062
|
+
create(base) {
|
|
1063
|
+
return exports.WebBlocks.fromPartial(base ?? {});
|
|
1064
|
+
},
|
|
1065
|
+
fromPartial(object) {
|
|
1066
|
+
const message = createBaseWebBlocks();
|
|
1067
|
+
message.show_web_journey_popup = object.show_web_journey_popup ?? false;
|
|
1068
|
+
message.approve_amount = object.approve_amount ?? "";
|
|
1069
|
+
message.loan_status = object.loan_status ?? "";
|
|
1070
|
+
return message;
|
|
1071
|
+
},
|
|
1072
|
+
};
|
|
1073
|
+
function createBaseHomeFeed() {
|
|
1074
|
+
return { user_state: "", mf_state: "", father_name_dialog: false, blocks: [], web_blocks: undefined };
|
|
1075
|
+
}
|
|
1076
|
+
exports.HomeFeed = {
|
|
1077
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1078
|
+
if (message.user_state !== "") {
|
|
1079
|
+
writer.uint32(10).string(message.user_state);
|
|
1080
|
+
}
|
|
1081
|
+
if (message.mf_state !== "") {
|
|
1082
|
+
writer.uint32(18).string(message.mf_state);
|
|
1083
|
+
}
|
|
1084
|
+
if (message.father_name_dialog !== false) {
|
|
1085
|
+
writer.uint32(24).bool(message.father_name_dialog);
|
|
1086
|
+
}
|
|
1087
|
+
for (const v of message.blocks) {
|
|
1088
|
+
exports.Block.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1089
|
+
}
|
|
1090
|
+
if (message.web_blocks !== undefined) {
|
|
1091
|
+
exports.WebBlocks.encode(message.web_blocks, writer.uint32(42).fork()).ldelim();
|
|
1092
|
+
}
|
|
1093
|
+
return writer;
|
|
1094
|
+
},
|
|
1095
|
+
decode(input, length) {
|
|
1096
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1097
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1098
|
+
const message = createBaseHomeFeed();
|
|
1099
|
+
while (reader.pos < end) {
|
|
1100
|
+
const tag = reader.uint32();
|
|
1101
|
+
switch (tag >>> 3) {
|
|
1102
|
+
case 1:
|
|
1103
|
+
if (tag !== 10) {
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
message.user_state = reader.string();
|
|
1107
|
+
continue;
|
|
1108
|
+
case 2:
|
|
1109
|
+
if (tag !== 18) {
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
message.mf_state = reader.string();
|
|
1113
|
+
continue;
|
|
1114
|
+
case 3:
|
|
1115
|
+
if (tag !== 24) {
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
message.father_name_dialog = reader.bool();
|
|
1119
|
+
continue;
|
|
1120
|
+
case 4:
|
|
1121
|
+
if (tag !== 34) {
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
message.blocks.push(exports.Block.decode(reader, reader.uint32()));
|
|
1125
|
+
continue;
|
|
1126
|
+
case 5:
|
|
1127
|
+
if (tag !== 42) {
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
message.web_blocks = exports.WebBlocks.decode(reader, reader.uint32());
|
|
1131
|
+
continue;
|
|
1132
|
+
}
|
|
1133
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
reader.skipType(tag & 7);
|
|
1137
|
+
}
|
|
1138
|
+
return message;
|
|
1139
|
+
},
|
|
1140
|
+
fromJSON(object) {
|
|
1141
|
+
return {
|
|
1142
|
+
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
1143
|
+
mf_state: isSet(object.mf_state) ? globalThis.String(object.mf_state) : "",
|
|
1144
|
+
father_name_dialog: isSet(object.father_name_dialog) ? globalThis.Boolean(object.father_name_dialog) : false,
|
|
1145
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
|
|
1146
|
+
web_blocks: isSet(object.web_blocks) ? exports.WebBlocks.fromJSON(object.web_blocks) : undefined,
|
|
1147
|
+
};
|
|
1148
|
+
},
|
|
1149
|
+
toJSON(message) {
|
|
1150
|
+
const obj = {};
|
|
1151
|
+
if (message.user_state !== "") {
|
|
1152
|
+
obj.user_state = message.user_state;
|
|
1153
|
+
}
|
|
1154
|
+
if (message.mf_state !== "") {
|
|
1155
|
+
obj.mf_state = message.mf_state;
|
|
1156
|
+
}
|
|
1157
|
+
if (message.father_name_dialog !== false) {
|
|
1158
|
+
obj.father_name_dialog = message.father_name_dialog;
|
|
1159
|
+
}
|
|
1160
|
+
if (message.blocks?.length) {
|
|
1161
|
+
obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
|
|
1162
|
+
}
|
|
1163
|
+
if (message.web_blocks !== undefined) {
|
|
1164
|
+
obj.web_blocks = exports.WebBlocks.toJSON(message.web_blocks);
|
|
1165
|
+
}
|
|
1166
|
+
return obj;
|
|
1167
|
+
},
|
|
1168
|
+
create(base) {
|
|
1169
|
+
return exports.HomeFeed.fromPartial(base ?? {});
|
|
1170
|
+
},
|
|
1171
|
+
fromPartial(object) {
|
|
1172
|
+
const message = createBaseHomeFeed();
|
|
1173
|
+
message.user_state = object.user_state ?? "";
|
|
1174
|
+
message.mf_state = object.mf_state ?? "";
|
|
1175
|
+
message.father_name_dialog = object.father_name_dialog ?? false;
|
|
1176
|
+
message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
|
|
1177
|
+
message.web_blocks = (object.web_blocks !== undefined && object.web_blocks !== null)
|
|
1178
|
+
? exports.WebBlocks.fromPartial(object.web_blocks)
|
|
1179
|
+
: undefined;
|
|
1180
|
+
return message;
|
|
1181
|
+
},
|
|
1182
|
+
};
|
|
1183
|
+
function createBaseLandingPageData() {
|
|
1184
|
+
return {
|
|
1185
|
+
user_state: "",
|
|
1186
|
+
mf_state: "",
|
|
1187
|
+
father_name_dialog: false,
|
|
1188
|
+
blocks: [],
|
|
1189
|
+
web_blocks: undefined,
|
|
1190
|
+
customer_feature_flag: undefined,
|
|
1191
|
+
customer_bank_details: undefined,
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
exports.LandingPageData = {
|
|
1195
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1196
|
+
if (message.user_state !== "") {
|
|
1197
|
+
writer.uint32(10).string(message.user_state);
|
|
1198
|
+
}
|
|
1199
|
+
if (message.mf_state !== "") {
|
|
1200
|
+
writer.uint32(18).string(message.mf_state);
|
|
1201
|
+
}
|
|
1202
|
+
if (message.father_name_dialog !== false) {
|
|
1203
|
+
writer.uint32(24).bool(message.father_name_dialog);
|
|
1204
|
+
}
|
|
1205
|
+
for (const v of message.blocks) {
|
|
1206
|
+
exports.Block.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1207
|
+
}
|
|
1208
|
+
if (message.web_blocks !== undefined) {
|
|
1209
|
+
exports.WebBlocks.encode(message.web_blocks, writer.uint32(42).fork()).ldelim();
|
|
1210
|
+
}
|
|
1211
|
+
if (message.customer_feature_flag !== undefined) {
|
|
1212
|
+
exports.FeatureFlagsOutput.encode(message.customer_feature_flag, writer.uint32(50).fork()).ldelim();
|
|
1213
|
+
}
|
|
1214
|
+
if (message.customer_bank_details !== undefined) {
|
|
1215
|
+
exports.CustomerBankDetails.encode(message.customer_bank_details, writer.uint32(58).fork()).ldelim();
|
|
1216
|
+
}
|
|
1217
|
+
return writer;
|
|
1218
|
+
},
|
|
1219
|
+
decode(input, length) {
|
|
1220
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1221
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1222
|
+
const message = createBaseLandingPageData();
|
|
1223
|
+
while (reader.pos < end) {
|
|
1224
|
+
const tag = reader.uint32();
|
|
1225
|
+
switch (tag >>> 3) {
|
|
1226
|
+
case 1:
|
|
1227
|
+
if (tag !== 10) {
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
message.user_state = reader.string();
|
|
1231
|
+
continue;
|
|
1232
|
+
case 2:
|
|
1233
|
+
if (tag !== 18) {
|
|
1234
|
+
break;
|
|
1235
|
+
}
|
|
1236
|
+
message.mf_state = reader.string();
|
|
1237
|
+
continue;
|
|
1238
|
+
case 3:
|
|
1239
|
+
if (tag !== 24) {
|
|
1240
|
+
break;
|
|
1241
|
+
}
|
|
1242
|
+
message.father_name_dialog = reader.bool();
|
|
1243
|
+
continue;
|
|
1244
|
+
case 4:
|
|
1245
|
+
if (tag !== 34) {
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
message.blocks.push(exports.Block.decode(reader, reader.uint32()));
|
|
1249
|
+
continue;
|
|
1250
|
+
case 5:
|
|
1251
|
+
if (tag !== 42) {
|
|
1252
|
+
break;
|
|
1253
|
+
}
|
|
1254
|
+
message.web_blocks = exports.WebBlocks.decode(reader, reader.uint32());
|
|
1255
|
+
continue;
|
|
1256
|
+
case 6:
|
|
1257
|
+
if (tag !== 50) {
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
message.customer_feature_flag = exports.FeatureFlagsOutput.decode(reader, reader.uint32());
|
|
1261
|
+
continue;
|
|
1262
|
+
case 7:
|
|
1263
|
+
if (tag !== 58) {
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
message.customer_bank_details = exports.CustomerBankDetails.decode(reader, reader.uint32());
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
reader.skipType(tag & 7);
|
|
1273
|
+
}
|
|
1274
|
+
return message;
|
|
1275
|
+
},
|
|
1276
|
+
fromJSON(object) {
|
|
1277
|
+
return {
|
|
1278
|
+
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
1279
|
+
mf_state: isSet(object.mf_state) ? globalThis.String(object.mf_state) : "",
|
|
1280
|
+
father_name_dialog: isSet(object.father_name_dialog) ? globalThis.Boolean(object.father_name_dialog) : false,
|
|
1281
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
|
|
1282
|
+
web_blocks: isSet(object.web_blocks) ? exports.WebBlocks.fromJSON(object.web_blocks) : undefined,
|
|
1283
|
+
customer_feature_flag: isSet(object.customer_feature_flag)
|
|
1284
|
+
? exports.FeatureFlagsOutput.fromJSON(object.customer_feature_flag)
|
|
1285
|
+
: undefined,
|
|
1286
|
+
customer_bank_details: isSet(object.customer_bank_details)
|
|
1287
|
+
? exports.CustomerBankDetails.fromJSON(object.customer_bank_details)
|
|
1288
|
+
: undefined,
|
|
1289
|
+
};
|
|
1290
|
+
},
|
|
1291
|
+
toJSON(message) {
|
|
1292
|
+
const obj = {};
|
|
1293
|
+
if (message.user_state !== "") {
|
|
1294
|
+
obj.user_state = message.user_state;
|
|
1295
|
+
}
|
|
1296
|
+
if (message.mf_state !== "") {
|
|
1297
|
+
obj.mf_state = message.mf_state;
|
|
1298
|
+
}
|
|
1299
|
+
if (message.father_name_dialog !== false) {
|
|
1300
|
+
obj.father_name_dialog = message.father_name_dialog;
|
|
1301
|
+
}
|
|
1302
|
+
if (message.blocks?.length) {
|
|
1303
|
+
obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
|
|
1304
|
+
}
|
|
1305
|
+
if (message.web_blocks !== undefined) {
|
|
1306
|
+
obj.web_blocks = exports.WebBlocks.toJSON(message.web_blocks);
|
|
1307
|
+
}
|
|
1308
|
+
if (message.customer_feature_flag !== undefined) {
|
|
1309
|
+
obj.customer_feature_flag = exports.FeatureFlagsOutput.toJSON(message.customer_feature_flag);
|
|
1310
|
+
}
|
|
1311
|
+
if (message.customer_bank_details !== undefined) {
|
|
1312
|
+
obj.customer_bank_details = exports.CustomerBankDetails.toJSON(message.customer_bank_details);
|
|
1313
|
+
}
|
|
1314
|
+
return obj;
|
|
1315
|
+
},
|
|
1316
|
+
create(base) {
|
|
1317
|
+
return exports.LandingPageData.fromPartial(base ?? {});
|
|
1318
|
+
},
|
|
1319
|
+
fromPartial(object) {
|
|
1320
|
+
const message = createBaseLandingPageData();
|
|
1321
|
+
message.user_state = object.user_state ?? "";
|
|
1322
|
+
message.mf_state = object.mf_state ?? "";
|
|
1323
|
+
message.father_name_dialog = object.father_name_dialog ?? false;
|
|
1324
|
+
message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
|
|
1325
|
+
message.web_blocks = (object.web_blocks !== undefined && object.web_blocks !== null)
|
|
1326
|
+
? exports.WebBlocks.fromPartial(object.web_blocks)
|
|
1327
|
+
: undefined;
|
|
1328
|
+
message.customer_feature_flag =
|
|
1329
|
+
(object.customer_feature_flag !== undefined && object.customer_feature_flag !== null)
|
|
1330
|
+
? exports.FeatureFlagsOutput.fromPartial(object.customer_feature_flag)
|
|
1331
|
+
: undefined;
|
|
1332
|
+
message.customer_bank_details =
|
|
1333
|
+
(object.customer_bank_details !== undefined && object.customer_bank_details !== null)
|
|
1334
|
+
? exports.CustomerBankDetails.fromPartial(object.customer_bank_details)
|
|
1335
|
+
: undefined;
|
|
1336
|
+
return message;
|
|
1337
|
+
},
|
|
1338
|
+
};
|
|
1339
|
+
function createBasegetlandingHomePageResponse() {
|
|
1340
|
+
return { success: false, data: undefined, error_message: undefined };
|
|
1341
|
+
}
|
|
1342
|
+
exports.getlandingHomePageResponse = {
|
|
1343
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1344
|
+
if (message.success !== false) {
|
|
1345
|
+
writer.uint32(8).bool(message.success);
|
|
1346
|
+
}
|
|
1347
|
+
if (message.data !== undefined) {
|
|
1348
|
+
exports.LandingPageData.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
1349
|
+
}
|
|
1350
|
+
if (message.error_message !== undefined) {
|
|
1351
|
+
writer.uint32(26).string(message.error_message);
|
|
1352
|
+
}
|
|
1353
|
+
return writer;
|
|
1354
|
+
},
|
|
1355
|
+
decode(input, length) {
|
|
1356
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1357
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1358
|
+
const message = createBasegetlandingHomePageResponse();
|
|
1359
|
+
while (reader.pos < end) {
|
|
1360
|
+
const tag = reader.uint32();
|
|
1361
|
+
switch (tag >>> 3) {
|
|
1362
|
+
case 1:
|
|
1363
|
+
if (tag !== 8) {
|
|
1364
|
+
break;
|
|
1365
|
+
}
|
|
1366
|
+
message.success = reader.bool();
|
|
1367
|
+
continue;
|
|
1368
|
+
case 2:
|
|
1369
|
+
if (tag !== 18) {
|
|
1370
|
+
break;
|
|
1371
|
+
}
|
|
1372
|
+
message.data = exports.LandingPageData.decode(reader, reader.uint32());
|
|
1373
|
+
continue;
|
|
1374
|
+
case 3:
|
|
1375
|
+
if (tag !== 26) {
|
|
1376
|
+
break;
|
|
1377
|
+
}
|
|
1378
|
+
message.error_message = reader.string();
|
|
1379
|
+
continue;
|
|
1380
|
+
}
|
|
1381
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1382
|
+
break;
|
|
1383
|
+
}
|
|
1384
|
+
reader.skipType(tag & 7);
|
|
1385
|
+
}
|
|
1386
|
+
return message;
|
|
1387
|
+
},
|
|
1388
|
+
fromJSON(object) {
|
|
1389
|
+
return {
|
|
1390
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
1391
|
+
data: isSet(object.data) ? exports.LandingPageData.fromJSON(object.data) : undefined,
|
|
1392
|
+
error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
|
|
1393
|
+
};
|
|
1394
|
+
},
|
|
1395
|
+
toJSON(message) {
|
|
1396
|
+
const obj = {};
|
|
1397
|
+
if (message.success !== false) {
|
|
1398
|
+
obj.success = message.success;
|
|
1399
|
+
}
|
|
1400
|
+
if (message.data !== undefined) {
|
|
1401
|
+
obj.data = exports.LandingPageData.toJSON(message.data);
|
|
1402
|
+
}
|
|
1403
|
+
if (message.error_message !== undefined) {
|
|
1404
|
+
obj.error_message = message.error_message;
|
|
1405
|
+
}
|
|
1406
|
+
return obj;
|
|
1407
|
+
},
|
|
1408
|
+
create(base) {
|
|
1409
|
+
return exports.getlandingHomePageResponse.fromPartial(base ?? {});
|
|
1410
|
+
},
|
|
1411
|
+
fromPartial(object) {
|
|
1412
|
+
const message = createBasegetlandingHomePageResponse();
|
|
1413
|
+
message.success = object.success ?? false;
|
|
1414
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
1415
|
+
? exports.LandingPageData.fromPartial(object.data)
|
|
1416
|
+
: undefined;
|
|
1417
|
+
message.error_message = object.error_message ?? undefined;
|
|
1418
|
+
return message;
|
|
1419
|
+
},
|
|
1420
|
+
};
|
|
1421
|
+
function isSet(value) {
|
|
1422
|
+
return value !== null && value !== undefined;
|
|
1423
|
+
}
|