@stashfin/grpc 1.2.797 → 1.2.798

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