@stashfin/grpc 1.2.797 → 1.2.799
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
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "eqxcustomers.getlendinghomepage";
|
|
3
3
|
export interface getlendingHomePageRequest {
|
|
4
|
+
customer_id: string;
|
|
4
5
|
partner_lead_id: number;
|
|
6
|
+
source?: string | undefined;
|
|
5
7
|
lead_source: string;
|
|
6
8
|
personal_details?: PersonalDetails | undefined;
|
|
7
9
|
}
|
|
@@ -17,27 +19,36 @@ export interface PersonalDetails {
|
|
|
17
19
|
aadhaar?: string | undefined;
|
|
18
20
|
avg_salary?: number | undefined;
|
|
19
21
|
}
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
export interface Section {
|
|
23
|
+
text?: string | undefined;
|
|
24
|
+
text_color?: string | undefined;
|
|
25
|
+
action?: string | undefined;
|
|
26
|
+
button_text?: string | undefined;
|
|
27
|
+
button_color?: string | undefined;
|
|
28
|
+
button_background_color?: string | undefined;
|
|
29
|
+
section_background_color?: string | undefined;
|
|
30
|
+
icon?: string | undefined;
|
|
26
31
|
}
|
|
27
|
-
export interface
|
|
32
|
+
export interface DashboardData {
|
|
28
33
|
user_state: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
sub_text: string;
|
|
35
|
+
sub_text_color: string;
|
|
36
|
+
amount: string;
|
|
37
|
+
amount_color: string;
|
|
38
|
+
button_background_color: string;
|
|
39
|
+
emi_amount: string;
|
|
40
|
+
text: string;
|
|
41
|
+
loan_source: string;
|
|
42
|
+
action: string;
|
|
43
|
+
button_text: string;
|
|
44
|
+
button_color: string;
|
|
45
|
+
image: string;
|
|
46
|
+
slider_image: string;
|
|
47
|
+
sections: Section[];
|
|
37
48
|
}
|
|
38
|
-
export interface
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
export interface getlendingHomePageResponse {
|
|
50
|
+
status: boolean;
|
|
51
|
+
data: DashboardData | undefined;
|
|
41
52
|
}
|
|
42
53
|
export declare const getlendingHomePageRequest: {
|
|
43
54
|
encode(message: getlendingHomePageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -55,6 +66,22 @@ export declare const PersonalDetails: {
|
|
|
55
66
|
create<I extends Exact<DeepPartial<PersonalDetails>, I>>(base?: I): PersonalDetails;
|
|
56
67
|
fromPartial<I extends Exact<DeepPartial<PersonalDetails>, I>>(object: I): PersonalDetails;
|
|
57
68
|
};
|
|
69
|
+
export declare const Section: {
|
|
70
|
+
encode(message: Section, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Section;
|
|
72
|
+
fromJSON(object: any): Section;
|
|
73
|
+
toJSON(message: Section): unknown;
|
|
74
|
+
create<I extends Exact<DeepPartial<Section>, I>>(base?: I): Section;
|
|
75
|
+
fromPartial<I extends Exact<DeepPartial<Section>, I>>(object: I): Section;
|
|
76
|
+
};
|
|
77
|
+
export declare const DashboardData: {
|
|
78
|
+
encode(message: DashboardData, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DashboardData;
|
|
80
|
+
fromJSON(object: any): DashboardData;
|
|
81
|
+
toJSON(message: DashboardData): unknown;
|
|
82
|
+
create<I extends Exact<DeepPartial<DashboardData>, I>>(base?: I): DashboardData;
|
|
83
|
+
fromPartial<I extends Exact<DeepPartial<DashboardData>, I>>(object: I): DashboardData;
|
|
84
|
+
};
|
|
58
85
|
export declare const getlendingHomePageResponse: {
|
|
59
86
|
encode(message: getlendingHomePageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
60
87
|
decode(input: _m0.Reader | Uint8Array, length?: number): getlendingHomePageResponse;
|
|
@@ -63,30 +90,6 @@ export declare const getlendingHomePageResponse: {
|
|
|
63
90
|
create<I extends Exact<DeepPartial<getlendingHomePageResponse>, I>>(base?: I): getlendingHomePageResponse;
|
|
64
91
|
fromPartial<I extends Exact<DeepPartial<getlendingHomePageResponse>, I>>(object: I): getlendingHomePageResponse;
|
|
65
92
|
};
|
|
66
|
-
export declare const HomePageData: {
|
|
67
|
-
encode(message: HomePageData, writer?: _m0.Writer): _m0.Writer;
|
|
68
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): HomePageData;
|
|
69
|
-
fromJSON(object: any): HomePageData;
|
|
70
|
-
toJSON(message: HomePageData): unknown;
|
|
71
|
-
create<I extends Exact<DeepPartial<HomePageData>, I>>(base?: I): HomePageData;
|
|
72
|
-
fromPartial<I extends Exact<DeepPartial<HomePageData>, I>>(object: I): HomePageData;
|
|
73
|
-
};
|
|
74
|
-
export declare const HomePageActions: {
|
|
75
|
-
encode(message: HomePageActions, writer?: _m0.Writer): _m0.Writer;
|
|
76
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): HomePageActions;
|
|
77
|
-
fromJSON(object: any): HomePageActions;
|
|
78
|
-
toJSON(message: HomePageActions): unknown;
|
|
79
|
-
create<I extends Exact<DeepPartial<HomePageActions>, I>>(base?: I): HomePageActions;
|
|
80
|
-
fromPartial<I extends Exact<DeepPartial<HomePageActions>, I>>(object: I): HomePageActions;
|
|
81
|
-
};
|
|
82
|
-
export declare const PaymentAction: {
|
|
83
|
-
encode(message: PaymentAction, writer?: _m0.Writer): _m0.Writer;
|
|
84
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentAction;
|
|
85
|
-
fromJSON(object: any): PaymentAction;
|
|
86
|
-
toJSON(message: PaymentAction): unknown;
|
|
87
|
-
create<I extends Exact<DeepPartial<PaymentAction>, I>>(base?: I): PaymentAction;
|
|
88
|
-
fromPartial<I extends Exact<DeepPartial<PaymentAction>, I>>(object: I): PaymentAction;
|
|
89
|
-
};
|
|
90
93
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
91
94
|
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 {} ? {
|
|
92
95
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,23 +8,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.getlendingHomePageResponse = exports.DashboardData = exports.Section = exports.PersonalDetails = exports.getlendingHomePageRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "eqxcustomers.getlendinghomepage";
|
|
15
16
|
function createBasegetlendingHomePageRequest() {
|
|
16
|
-
return { partner_lead_id: 0, lead_source: "", personal_details: undefined };
|
|
17
|
+
return { customer_id: "", partner_lead_id: 0, source: undefined, lead_source: "", personal_details: undefined };
|
|
17
18
|
}
|
|
18
19
|
exports.getlendingHomePageRequest = {
|
|
19
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.customer_id);
|
|
23
|
+
}
|
|
20
24
|
if (message.partner_lead_id !== 0) {
|
|
21
|
-
writer.uint32(
|
|
25
|
+
writer.uint32(16).int32(message.partner_lead_id);
|
|
26
|
+
}
|
|
27
|
+
if (message.source !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.source);
|
|
22
29
|
}
|
|
23
30
|
if (message.lead_source !== "") {
|
|
24
|
-
writer.uint32(
|
|
31
|
+
writer.uint32(34).string(message.lead_source);
|
|
25
32
|
}
|
|
26
33
|
if (message.personal_details !== undefined) {
|
|
27
|
-
exports.PersonalDetails.encode(message.personal_details, writer.uint32(
|
|
34
|
+
exports.PersonalDetails.encode(message.personal_details, writer.uint32(42).fork()).ldelim();
|
|
28
35
|
}
|
|
29
36
|
return writer;
|
|
30
37
|
},
|
|
@@ -36,21 +43,33 @@ exports.getlendingHomePageRequest = {
|
|
|
36
43
|
const tag = reader.uint32();
|
|
37
44
|
switch (tag >>> 3) {
|
|
38
45
|
case 1:
|
|
39
|
-
if (tag !==
|
|
46
|
+
if (tag !== 10) {
|
|
40
47
|
break;
|
|
41
48
|
}
|
|
42
|
-
message.
|
|
49
|
+
message.customer_id = reader.string();
|
|
43
50
|
continue;
|
|
44
51
|
case 2:
|
|
45
|
-
if (tag !==
|
|
52
|
+
if (tag !== 16) {
|
|
46
53
|
break;
|
|
47
54
|
}
|
|
48
|
-
message.
|
|
55
|
+
message.partner_lead_id = reader.int32();
|
|
49
56
|
continue;
|
|
50
57
|
case 3:
|
|
51
58
|
if (tag !== 26) {
|
|
52
59
|
break;
|
|
53
60
|
}
|
|
61
|
+
message.source = reader.string();
|
|
62
|
+
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 34) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.lead_source = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
54
73
|
message.personal_details = exports.PersonalDetails.decode(reader, reader.uint32());
|
|
55
74
|
continue;
|
|
56
75
|
}
|
|
@@ -63,16 +82,24 @@ exports.getlendingHomePageRequest = {
|
|
|
63
82
|
},
|
|
64
83
|
fromJSON(object) {
|
|
65
84
|
return {
|
|
85
|
+
customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
|
|
66
86
|
partner_lead_id: isSet(object.partner_lead_id) ? globalThis.Number(object.partner_lead_id) : 0,
|
|
87
|
+
source: isSet(object.source) ? globalThis.String(object.source) : undefined,
|
|
67
88
|
lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : "",
|
|
68
89
|
personal_details: isSet(object.personal_details) ? exports.PersonalDetails.fromJSON(object.personal_details) : undefined,
|
|
69
90
|
};
|
|
70
91
|
},
|
|
71
92
|
toJSON(message) {
|
|
72
93
|
const obj = {};
|
|
94
|
+
if (message.customer_id !== "") {
|
|
95
|
+
obj.customer_id = message.customer_id;
|
|
96
|
+
}
|
|
73
97
|
if (message.partner_lead_id !== 0) {
|
|
74
98
|
obj.partner_lead_id = Math.round(message.partner_lead_id);
|
|
75
99
|
}
|
|
100
|
+
if (message.source !== undefined) {
|
|
101
|
+
obj.source = message.source;
|
|
102
|
+
}
|
|
76
103
|
if (message.lead_source !== "") {
|
|
77
104
|
obj.lead_source = message.lead_source;
|
|
78
105
|
}
|
|
@@ -86,7 +113,9 @@ exports.getlendingHomePageRequest = {
|
|
|
86
113
|
},
|
|
87
114
|
fromPartial(object) {
|
|
88
115
|
const message = createBasegetlendingHomePageRequest();
|
|
116
|
+
message.customer_id = object.customer_id ?? "";
|
|
89
117
|
message.partner_lead_id = object.partner_lead_id ?? 0;
|
|
118
|
+
message.source = object.source ?? undefined;
|
|
90
119
|
message.lead_source = object.lead_source ?? "";
|
|
91
120
|
message.personal_details = (object.personal_details !== undefined && object.personal_details !== null)
|
|
92
121
|
? exports.PersonalDetails.fromPartial(object.personal_details)
|
|
@@ -123,7 +152,7 @@ exports.PersonalDetails = {
|
|
|
123
152
|
writer.uint32(34).string(message.email);
|
|
124
153
|
}
|
|
125
154
|
if (message.phone !== 0) {
|
|
126
|
-
writer.uint32(40).
|
|
155
|
+
writer.uint32(40).int64(message.phone);
|
|
127
156
|
}
|
|
128
157
|
if (message.gender !== undefined) {
|
|
129
158
|
writer.uint32(50).string(message.gender);
|
|
@@ -177,7 +206,7 @@ exports.PersonalDetails = {
|
|
|
177
206
|
if (tag !== 40) {
|
|
178
207
|
break;
|
|
179
208
|
}
|
|
180
|
-
message.phone = reader.
|
|
209
|
+
message.phone = longToNumber(reader.int64());
|
|
181
210
|
continue;
|
|
182
211
|
case 6:
|
|
183
212
|
if (tag !== 50) {
|
|
@@ -283,64 +312,100 @@ exports.PersonalDetails = {
|
|
|
283
312
|
return message;
|
|
284
313
|
},
|
|
285
314
|
};
|
|
286
|
-
function
|
|
287
|
-
return {
|
|
315
|
+
function createBaseSection() {
|
|
316
|
+
return {
|
|
317
|
+
text: undefined,
|
|
318
|
+
text_color: undefined,
|
|
319
|
+
action: undefined,
|
|
320
|
+
button_text: undefined,
|
|
321
|
+
button_color: undefined,
|
|
322
|
+
button_background_color: undefined,
|
|
323
|
+
section_background_color: undefined,
|
|
324
|
+
icon: undefined,
|
|
325
|
+
};
|
|
288
326
|
}
|
|
289
|
-
exports.
|
|
327
|
+
exports.Section = {
|
|
290
328
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
291
|
-
if (message.
|
|
292
|
-
writer.uint32(
|
|
329
|
+
if (message.text !== undefined) {
|
|
330
|
+
writer.uint32(10).string(message.text);
|
|
293
331
|
}
|
|
294
|
-
if (message.
|
|
295
|
-
writer.uint32(
|
|
332
|
+
if (message.text_color !== undefined) {
|
|
333
|
+
writer.uint32(18).string(message.text_color);
|
|
296
334
|
}
|
|
297
|
-
if (message.
|
|
298
|
-
writer.uint32(26).string(message.
|
|
335
|
+
if (message.action !== undefined) {
|
|
336
|
+
writer.uint32(26).string(message.action);
|
|
299
337
|
}
|
|
300
|
-
if (message.
|
|
301
|
-
writer.uint32(34).string(message.
|
|
338
|
+
if (message.button_text !== undefined) {
|
|
339
|
+
writer.uint32(34).string(message.button_text);
|
|
302
340
|
}
|
|
303
|
-
if (message.
|
|
304
|
-
|
|
341
|
+
if (message.button_color !== undefined) {
|
|
342
|
+
writer.uint32(42).string(message.button_color);
|
|
343
|
+
}
|
|
344
|
+
if (message.button_background_color !== undefined) {
|
|
345
|
+
writer.uint32(50).string(message.button_background_color);
|
|
346
|
+
}
|
|
347
|
+
if (message.section_background_color !== undefined) {
|
|
348
|
+
writer.uint32(58).string(message.section_background_color);
|
|
349
|
+
}
|
|
350
|
+
if (message.icon !== undefined) {
|
|
351
|
+
writer.uint32(66).string(message.icon);
|
|
305
352
|
}
|
|
306
353
|
return writer;
|
|
307
354
|
},
|
|
308
355
|
decode(input, length) {
|
|
309
356
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
310
357
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
|
-
const message =
|
|
358
|
+
const message = createBaseSection();
|
|
312
359
|
while (reader.pos < end) {
|
|
313
360
|
const tag = reader.uint32();
|
|
314
361
|
switch (tag >>> 3) {
|
|
315
362
|
case 1:
|
|
316
|
-
if (tag !==
|
|
363
|
+
if (tag !== 10) {
|
|
317
364
|
break;
|
|
318
365
|
}
|
|
319
|
-
message.
|
|
366
|
+
message.text = reader.string();
|
|
320
367
|
continue;
|
|
321
368
|
case 2:
|
|
322
|
-
if (tag !==
|
|
369
|
+
if (tag !== 18) {
|
|
323
370
|
break;
|
|
324
371
|
}
|
|
325
|
-
message.
|
|
372
|
+
message.text_color = reader.string();
|
|
326
373
|
continue;
|
|
327
374
|
case 3:
|
|
328
375
|
if (tag !== 26) {
|
|
329
376
|
break;
|
|
330
377
|
}
|
|
331
|
-
message.
|
|
378
|
+
message.action = reader.string();
|
|
332
379
|
continue;
|
|
333
380
|
case 4:
|
|
334
381
|
if (tag !== 34) {
|
|
335
382
|
break;
|
|
336
383
|
}
|
|
337
|
-
message.
|
|
384
|
+
message.button_text = reader.string();
|
|
338
385
|
continue;
|
|
339
386
|
case 5:
|
|
340
387
|
if (tag !== 42) {
|
|
341
388
|
break;
|
|
342
389
|
}
|
|
343
|
-
message.
|
|
390
|
+
message.button_color = reader.string();
|
|
391
|
+
continue;
|
|
392
|
+
case 6:
|
|
393
|
+
if (tag !== 50) {
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
message.button_background_color = reader.string();
|
|
397
|
+
continue;
|
|
398
|
+
case 7:
|
|
399
|
+
if (tag !== 58) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.section_background_color = reader.string();
|
|
403
|
+
continue;
|
|
404
|
+
case 8:
|
|
405
|
+
if (tag !== 66) {
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
message.icon = reader.string();
|
|
344
409
|
continue;
|
|
345
410
|
}
|
|
346
411
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -352,73 +417,136 @@ exports.getlendingHomePageResponse = {
|
|
|
352
417
|
},
|
|
353
418
|
fromJSON(object) {
|
|
354
419
|
return {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
420
|
+
text: isSet(object.text) ? globalThis.String(object.text) : undefined,
|
|
421
|
+
text_color: isSet(object.text_color) ? globalThis.String(object.text_color) : undefined,
|
|
422
|
+
action: isSet(object.action) ? globalThis.String(object.action) : undefined,
|
|
423
|
+
button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : undefined,
|
|
424
|
+
button_color: isSet(object.button_color) ? globalThis.String(object.button_color) : undefined,
|
|
425
|
+
button_background_color: isSet(object.button_background_color)
|
|
426
|
+
? globalThis.String(object.button_background_color)
|
|
427
|
+
: undefined,
|
|
428
|
+
section_background_color: isSet(object.section_background_color)
|
|
429
|
+
? globalThis.String(object.section_background_color)
|
|
430
|
+
: undefined,
|
|
431
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
|
|
360
432
|
};
|
|
361
433
|
},
|
|
362
434
|
toJSON(message) {
|
|
363
435
|
const obj = {};
|
|
364
|
-
if (message.
|
|
365
|
-
obj.
|
|
436
|
+
if (message.text !== undefined) {
|
|
437
|
+
obj.text = message.text;
|
|
366
438
|
}
|
|
367
|
-
if (message.
|
|
368
|
-
obj.
|
|
439
|
+
if (message.text_color !== undefined) {
|
|
440
|
+
obj.text_color = message.text_color;
|
|
369
441
|
}
|
|
370
|
-
if (message.
|
|
371
|
-
obj.
|
|
442
|
+
if (message.action !== undefined) {
|
|
443
|
+
obj.action = message.action;
|
|
372
444
|
}
|
|
373
|
-
if (message.
|
|
374
|
-
obj.
|
|
445
|
+
if (message.button_text !== undefined) {
|
|
446
|
+
obj.button_text = message.button_text;
|
|
375
447
|
}
|
|
376
|
-
if (message.
|
|
377
|
-
obj.
|
|
448
|
+
if (message.button_color !== undefined) {
|
|
449
|
+
obj.button_color = message.button_color;
|
|
450
|
+
}
|
|
451
|
+
if (message.button_background_color !== undefined) {
|
|
452
|
+
obj.button_background_color = message.button_background_color;
|
|
453
|
+
}
|
|
454
|
+
if (message.section_background_color !== undefined) {
|
|
455
|
+
obj.section_background_color = message.section_background_color;
|
|
456
|
+
}
|
|
457
|
+
if (message.icon !== undefined) {
|
|
458
|
+
obj.icon = message.icon;
|
|
378
459
|
}
|
|
379
460
|
return obj;
|
|
380
461
|
},
|
|
381
462
|
create(base) {
|
|
382
|
-
return exports.
|
|
463
|
+
return exports.Section.fromPartial(base ?? {});
|
|
383
464
|
},
|
|
384
465
|
fromPartial(object) {
|
|
385
|
-
const message =
|
|
386
|
-
message.
|
|
387
|
-
message.
|
|
388
|
-
message.
|
|
389
|
-
message.
|
|
390
|
-
message.
|
|
391
|
-
|
|
392
|
-
|
|
466
|
+
const message = createBaseSection();
|
|
467
|
+
message.text = object.text ?? undefined;
|
|
468
|
+
message.text_color = object.text_color ?? undefined;
|
|
469
|
+
message.action = object.action ?? undefined;
|
|
470
|
+
message.button_text = object.button_text ?? undefined;
|
|
471
|
+
message.button_color = object.button_color ?? undefined;
|
|
472
|
+
message.button_background_color = object.button_background_color ?? undefined;
|
|
473
|
+
message.section_background_color = object.section_background_color ?? undefined;
|
|
474
|
+
message.icon = object.icon ?? undefined;
|
|
393
475
|
return message;
|
|
394
476
|
},
|
|
395
477
|
};
|
|
396
|
-
function
|
|
397
|
-
return {
|
|
478
|
+
function createBaseDashboardData() {
|
|
479
|
+
return {
|
|
480
|
+
user_state: "",
|
|
481
|
+
sub_text: "",
|
|
482
|
+
sub_text_color: "",
|
|
483
|
+
amount: "",
|
|
484
|
+
amount_color: "",
|
|
485
|
+
button_background_color: "",
|
|
486
|
+
emi_amount: "",
|
|
487
|
+
text: "",
|
|
488
|
+
loan_source: "",
|
|
489
|
+
action: "",
|
|
490
|
+
button_text: "",
|
|
491
|
+
button_color: "",
|
|
492
|
+
image: "",
|
|
493
|
+
slider_image: "",
|
|
494
|
+
sections: [],
|
|
495
|
+
};
|
|
398
496
|
}
|
|
399
|
-
exports.
|
|
497
|
+
exports.DashboardData = {
|
|
400
498
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
401
499
|
if (message.user_state !== "") {
|
|
402
500
|
writer.uint32(10).string(message.user_state);
|
|
403
501
|
}
|
|
404
|
-
if (message.
|
|
405
|
-
writer.uint32(
|
|
502
|
+
if (message.sub_text !== "") {
|
|
503
|
+
writer.uint32(18).string(message.sub_text);
|
|
504
|
+
}
|
|
505
|
+
if (message.sub_text_color !== "") {
|
|
506
|
+
writer.uint32(26).string(message.sub_text_color);
|
|
507
|
+
}
|
|
508
|
+
if (message.amount !== "") {
|
|
509
|
+
writer.uint32(34).string(message.amount);
|
|
510
|
+
}
|
|
511
|
+
if (message.amount_color !== "") {
|
|
512
|
+
writer.uint32(42).string(message.amount_color);
|
|
513
|
+
}
|
|
514
|
+
if (message.button_background_color !== "") {
|
|
515
|
+
writer.uint32(50).string(message.button_background_color);
|
|
516
|
+
}
|
|
517
|
+
if (message.emi_amount !== "") {
|
|
518
|
+
writer.uint32(58).string(message.emi_amount);
|
|
519
|
+
}
|
|
520
|
+
if (message.text !== "") {
|
|
521
|
+
writer.uint32(66).string(message.text);
|
|
522
|
+
}
|
|
523
|
+
if (message.loan_source !== "") {
|
|
524
|
+
writer.uint32(74).string(message.loan_source);
|
|
406
525
|
}
|
|
407
|
-
if (message.
|
|
408
|
-
writer.uint32(
|
|
526
|
+
if (message.action !== "") {
|
|
527
|
+
writer.uint32(82).string(message.action);
|
|
409
528
|
}
|
|
410
|
-
if (message.
|
|
411
|
-
writer.uint32(
|
|
529
|
+
if (message.button_text !== "") {
|
|
530
|
+
writer.uint32(90).string(message.button_text);
|
|
412
531
|
}
|
|
413
|
-
if (message.
|
|
414
|
-
|
|
532
|
+
if (message.button_color !== "") {
|
|
533
|
+
writer.uint32(98).string(message.button_color);
|
|
534
|
+
}
|
|
535
|
+
if (message.image !== "") {
|
|
536
|
+
writer.uint32(106).string(message.image);
|
|
537
|
+
}
|
|
538
|
+
if (message.slider_image !== "") {
|
|
539
|
+
writer.uint32(114).string(message.slider_image);
|
|
540
|
+
}
|
|
541
|
+
for (const v of message.sections) {
|
|
542
|
+
exports.Section.encode(v, writer.uint32(122).fork()).ldelim();
|
|
415
543
|
}
|
|
416
544
|
return writer;
|
|
417
545
|
},
|
|
418
546
|
decode(input, length) {
|
|
419
547
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
420
548
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
421
|
-
const message =
|
|
549
|
+
const message = createBaseDashboardData();
|
|
422
550
|
while (reader.pos < end) {
|
|
423
551
|
const tag = reader.uint32();
|
|
424
552
|
switch (tag >>> 3) {
|
|
@@ -429,28 +557,88 @@ exports.HomePageData = {
|
|
|
429
557
|
message.user_state = reader.string();
|
|
430
558
|
continue;
|
|
431
559
|
case 2:
|
|
432
|
-
if (tag !==
|
|
560
|
+
if (tag !== 18) {
|
|
433
561
|
break;
|
|
434
562
|
}
|
|
435
|
-
message.
|
|
563
|
+
message.sub_text = reader.string();
|
|
436
564
|
continue;
|
|
437
565
|
case 3:
|
|
438
|
-
if (tag !==
|
|
566
|
+
if (tag !== 26) {
|
|
439
567
|
break;
|
|
440
568
|
}
|
|
441
|
-
message.
|
|
569
|
+
message.sub_text_color = reader.string();
|
|
442
570
|
continue;
|
|
443
571
|
case 4:
|
|
444
|
-
if (tag !==
|
|
572
|
+
if (tag !== 34) {
|
|
445
573
|
break;
|
|
446
574
|
}
|
|
447
|
-
message.
|
|
575
|
+
message.amount = reader.string();
|
|
448
576
|
continue;
|
|
449
577
|
case 5:
|
|
450
578
|
if (tag !== 42) {
|
|
451
579
|
break;
|
|
452
580
|
}
|
|
453
|
-
message.
|
|
581
|
+
message.amount_color = reader.string();
|
|
582
|
+
continue;
|
|
583
|
+
case 6:
|
|
584
|
+
if (tag !== 50) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
message.button_background_color = reader.string();
|
|
588
|
+
continue;
|
|
589
|
+
case 7:
|
|
590
|
+
if (tag !== 58) {
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
message.emi_amount = reader.string();
|
|
594
|
+
continue;
|
|
595
|
+
case 8:
|
|
596
|
+
if (tag !== 66) {
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
message.text = reader.string();
|
|
600
|
+
continue;
|
|
601
|
+
case 9:
|
|
602
|
+
if (tag !== 74) {
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
message.loan_source = reader.string();
|
|
606
|
+
continue;
|
|
607
|
+
case 10:
|
|
608
|
+
if (tag !== 82) {
|
|
609
|
+
break;
|
|
610
|
+
}
|
|
611
|
+
message.action = reader.string();
|
|
612
|
+
continue;
|
|
613
|
+
case 11:
|
|
614
|
+
if (tag !== 90) {
|
|
615
|
+
break;
|
|
616
|
+
}
|
|
617
|
+
message.button_text = reader.string();
|
|
618
|
+
continue;
|
|
619
|
+
case 12:
|
|
620
|
+
if (tag !== 98) {
|
|
621
|
+
break;
|
|
622
|
+
}
|
|
623
|
+
message.button_color = reader.string();
|
|
624
|
+
continue;
|
|
625
|
+
case 13:
|
|
626
|
+
if (tag !== 106) {
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
message.image = reader.string();
|
|
630
|
+
continue;
|
|
631
|
+
case 14:
|
|
632
|
+
if (tag !== 114) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
message.slider_image = reader.string();
|
|
636
|
+
continue;
|
|
637
|
+
case 15:
|
|
638
|
+
if (tag !== 122) {
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
message.sections.push(exports.Section.decode(reader, reader.uint32()));
|
|
454
642
|
continue;
|
|
455
643
|
}
|
|
456
644
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -463,10 +651,22 @@ exports.HomePageData = {
|
|
|
463
651
|
fromJSON(object) {
|
|
464
652
|
return {
|
|
465
653
|
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
654
|
+
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
|
|
655
|
+
sub_text_color: isSet(object.sub_text_color) ? globalThis.String(object.sub_text_color) : "",
|
|
656
|
+
amount: isSet(object.amount) ? globalThis.String(object.amount) : "",
|
|
657
|
+
amount_color: isSet(object.amount_color) ? globalThis.String(object.amount_color) : "",
|
|
658
|
+
button_background_color: isSet(object.button_background_color)
|
|
659
|
+
? globalThis.String(object.button_background_color)
|
|
660
|
+
: "",
|
|
661
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.String(object.emi_amount) : "",
|
|
662
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
663
|
+
loan_source: isSet(object.loan_source) ? globalThis.String(object.loan_source) : "",
|
|
664
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
665
|
+
button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
|
|
666
|
+
button_color: isSet(object.button_color) ? globalThis.String(object.button_color) : "",
|
|
667
|
+
image: isSet(object.image) ? globalThis.String(object.image) : "",
|
|
668
|
+
slider_image: isSet(object.slider_image) ? globalThis.String(object.slider_image) : "",
|
|
669
|
+
sections: globalThis.Array.isArray(object?.sections) ? object.sections.map((e) => exports.Section.fromJSON(e)) : [],
|
|
470
670
|
};
|
|
471
671
|
},
|
|
472
672
|
toJSON(message) {
|
|
@@ -474,136 +674,104 @@ exports.HomePageData = {
|
|
|
474
674
|
if (message.user_state !== "") {
|
|
475
675
|
obj.user_state = message.user_state;
|
|
476
676
|
}
|
|
477
|
-
if (message.
|
|
478
|
-
obj.
|
|
677
|
+
if (message.sub_text !== "") {
|
|
678
|
+
obj.sub_text = message.sub_text;
|
|
479
679
|
}
|
|
480
|
-
if (message.
|
|
481
|
-
obj.
|
|
680
|
+
if (message.sub_text_color !== "") {
|
|
681
|
+
obj.sub_text_color = message.sub_text_color;
|
|
482
682
|
}
|
|
483
|
-
if (message.
|
|
484
|
-
obj.
|
|
683
|
+
if (message.amount !== "") {
|
|
684
|
+
obj.amount = message.amount;
|
|
485
685
|
}
|
|
486
|
-
if (message.
|
|
487
|
-
obj.
|
|
686
|
+
if (message.amount_color !== "") {
|
|
687
|
+
obj.amount_color = message.amount_color;
|
|
488
688
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
create(base) {
|
|
492
|
-
return exports.HomePageData.fromPartial(base ?? {});
|
|
493
|
-
},
|
|
494
|
-
fromPartial(object) {
|
|
495
|
-
const message = createBaseHomePageData();
|
|
496
|
-
message.user_state = object.user_state ?? "";
|
|
497
|
-
message.loc_limit = object.loc_limit ?? 0;
|
|
498
|
-
message.loc_available = object.loc_available ?? 0;
|
|
499
|
-
message.loc_used = object.loc_used ?? 0;
|
|
500
|
-
message.actions = (object.actions !== undefined && object.actions !== null)
|
|
501
|
-
? exports.HomePageActions.fromPartial(object.actions)
|
|
502
|
-
: undefined;
|
|
503
|
-
return message;
|
|
504
|
-
},
|
|
505
|
-
};
|
|
506
|
-
function createBaseHomePageActions() {
|
|
507
|
-
return { PayNow: undefined, PayFull: undefined };
|
|
508
|
-
}
|
|
509
|
-
exports.HomePageActions = {
|
|
510
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
511
|
-
if (message.PayNow !== undefined) {
|
|
512
|
-
exports.PaymentAction.encode(message.PayNow, writer.uint32(10).fork()).ldelim();
|
|
689
|
+
if (message.button_background_color !== "") {
|
|
690
|
+
obj.button_background_color = message.button_background_color;
|
|
513
691
|
}
|
|
514
|
-
if (message.
|
|
515
|
-
|
|
692
|
+
if (message.emi_amount !== "") {
|
|
693
|
+
obj.emi_amount = message.emi_amount;
|
|
516
694
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
decode(input, length) {
|
|
520
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
521
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
522
|
-
const message = createBaseHomePageActions();
|
|
523
|
-
while (reader.pos < end) {
|
|
524
|
-
const tag = reader.uint32();
|
|
525
|
-
switch (tag >>> 3) {
|
|
526
|
-
case 1:
|
|
527
|
-
if (tag !== 10) {
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
message.PayNow = exports.PaymentAction.decode(reader, reader.uint32());
|
|
531
|
-
continue;
|
|
532
|
-
case 2:
|
|
533
|
-
if (tag !== 18) {
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
message.PayFull = exports.PaymentAction.decode(reader, reader.uint32());
|
|
537
|
-
continue;
|
|
538
|
-
}
|
|
539
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
540
|
-
break;
|
|
541
|
-
}
|
|
542
|
-
reader.skipType(tag & 7);
|
|
695
|
+
if (message.text !== "") {
|
|
696
|
+
obj.text = message.text;
|
|
543
697
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
698
|
+
if (message.loan_source !== "") {
|
|
699
|
+
obj.loan_source = message.loan_source;
|
|
700
|
+
}
|
|
701
|
+
if (message.action !== "") {
|
|
702
|
+
obj.action = message.action;
|
|
703
|
+
}
|
|
704
|
+
if (message.button_text !== "") {
|
|
705
|
+
obj.button_text = message.button_text;
|
|
706
|
+
}
|
|
707
|
+
if (message.button_color !== "") {
|
|
708
|
+
obj.button_color = message.button_color;
|
|
709
|
+
}
|
|
710
|
+
if (message.image !== "") {
|
|
711
|
+
obj.image = message.image;
|
|
712
|
+
}
|
|
713
|
+
if (message.slider_image !== "") {
|
|
714
|
+
obj.slider_image = message.slider_image;
|
|
556
715
|
}
|
|
557
|
-
if (message.
|
|
558
|
-
obj.
|
|
716
|
+
if (message.sections?.length) {
|
|
717
|
+
obj.sections = message.sections.map((e) => exports.Section.toJSON(e));
|
|
559
718
|
}
|
|
560
719
|
return obj;
|
|
561
720
|
},
|
|
562
721
|
create(base) {
|
|
563
|
-
return exports.
|
|
722
|
+
return exports.DashboardData.fromPartial(base ?? {});
|
|
564
723
|
},
|
|
565
724
|
fromPartial(object) {
|
|
566
|
-
const message =
|
|
567
|
-
message.
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
message.
|
|
571
|
-
|
|
572
|
-
|
|
725
|
+
const message = createBaseDashboardData();
|
|
726
|
+
message.user_state = object.user_state ?? "";
|
|
727
|
+
message.sub_text = object.sub_text ?? "";
|
|
728
|
+
message.sub_text_color = object.sub_text_color ?? "";
|
|
729
|
+
message.amount = object.amount ?? "";
|
|
730
|
+
message.amount_color = object.amount_color ?? "";
|
|
731
|
+
message.button_background_color = object.button_background_color ?? "";
|
|
732
|
+
message.emi_amount = object.emi_amount ?? "";
|
|
733
|
+
message.text = object.text ?? "";
|
|
734
|
+
message.loan_source = object.loan_source ?? "";
|
|
735
|
+
message.action = object.action ?? "";
|
|
736
|
+
message.button_text = object.button_text ?? "";
|
|
737
|
+
message.button_color = object.button_color ?? "";
|
|
738
|
+
message.image = object.image ?? "";
|
|
739
|
+
message.slider_image = object.slider_image ?? "";
|
|
740
|
+
message.sections = object.sections?.map((e) => exports.Section.fromPartial(e)) || [];
|
|
573
741
|
return message;
|
|
574
742
|
},
|
|
575
743
|
};
|
|
576
|
-
function
|
|
577
|
-
return {
|
|
744
|
+
function createBasegetlendingHomePageResponse() {
|
|
745
|
+
return { status: false, data: undefined };
|
|
578
746
|
}
|
|
579
|
-
exports.
|
|
747
|
+
exports.getlendingHomePageResponse = {
|
|
580
748
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
581
|
-
if (message.
|
|
582
|
-
writer.uint32(
|
|
749
|
+
if (message.status !== false) {
|
|
750
|
+
writer.uint32(8).bool(message.status);
|
|
583
751
|
}
|
|
584
|
-
if (message.
|
|
585
|
-
writer.uint32(18).
|
|
752
|
+
if (message.data !== undefined) {
|
|
753
|
+
exports.DashboardData.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
586
754
|
}
|
|
587
755
|
return writer;
|
|
588
756
|
},
|
|
589
757
|
decode(input, length) {
|
|
590
758
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
591
759
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
-
const message =
|
|
760
|
+
const message = createBasegetlendingHomePageResponse();
|
|
593
761
|
while (reader.pos < end) {
|
|
594
762
|
const tag = reader.uint32();
|
|
595
763
|
switch (tag >>> 3) {
|
|
596
764
|
case 1:
|
|
597
|
-
if (tag !==
|
|
765
|
+
if (tag !== 8) {
|
|
598
766
|
break;
|
|
599
767
|
}
|
|
600
|
-
message.
|
|
768
|
+
message.status = reader.bool();
|
|
601
769
|
continue;
|
|
602
770
|
case 2:
|
|
603
771
|
if (tag !== 18) {
|
|
604
772
|
break;
|
|
605
773
|
}
|
|
606
|
-
message.
|
|
774
|
+
message.data = exports.DashboardData.decode(reader, reader.uint32());
|
|
607
775
|
continue;
|
|
608
776
|
}
|
|
609
777
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -615,30 +783,45 @@ exports.PaymentAction = {
|
|
|
615
783
|
},
|
|
616
784
|
fromJSON(object) {
|
|
617
785
|
return {
|
|
618
|
-
|
|
619
|
-
|
|
786
|
+
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
787
|
+
data: isSet(object.data) ? exports.DashboardData.fromJSON(object.data) : undefined,
|
|
620
788
|
};
|
|
621
789
|
},
|
|
622
790
|
toJSON(message) {
|
|
623
791
|
const obj = {};
|
|
624
|
-
if (message.
|
|
625
|
-
obj.
|
|
792
|
+
if (message.status !== false) {
|
|
793
|
+
obj.status = message.status;
|
|
626
794
|
}
|
|
627
|
-
if (message.
|
|
628
|
-
obj.
|
|
795
|
+
if (message.data !== undefined) {
|
|
796
|
+
obj.data = exports.DashboardData.toJSON(message.data);
|
|
629
797
|
}
|
|
630
798
|
return obj;
|
|
631
799
|
},
|
|
632
800
|
create(base) {
|
|
633
|
-
return exports.
|
|
801
|
+
return exports.getlendingHomePageResponse.fromPartial(base ?? {});
|
|
634
802
|
},
|
|
635
803
|
fromPartial(object) {
|
|
636
|
-
const message =
|
|
637
|
-
message.
|
|
638
|
-
message.
|
|
804
|
+
const message = createBasegetlendingHomePageResponse();
|
|
805
|
+
message.status = object.status ?? false;
|
|
806
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
807
|
+
? exports.DashboardData.fromPartial(object.data)
|
|
808
|
+
: undefined;
|
|
639
809
|
return message;
|
|
640
810
|
},
|
|
641
811
|
};
|
|
812
|
+
function longToNumber(long) {
|
|
813
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
814
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
815
|
+
}
|
|
816
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
817
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
818
|
+
}
|
|
819
|
+
return long.toNumber();
|
|
820
|
+
}
|
|
821
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
822
|
+
minimal_1.default.util.Long = long_1.default;
|
|
823
|
+
minimal_1.default.configure();
|
|
824
|
+
}
|
|
642
825
|
function isSet(value) {
|
|
643
826
|
return value !== null && value !== undefined;
|
|
644
827
|
}
|