@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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.797",
3
+ "version": "1.2.799",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -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 getlendingHomePageResponse {
21
- status: number;
22
- success: boolean;
23
- message: string;
24
- error_message: string;
25
- data: HomePageData | undefined;
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 HomePageData {
32
+ export interface DashboardData {
28
33
  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;
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 PaymentAction {
39
- amount: number;
40
- date: string;
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.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
+ 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(8).int32(message.partner_lead_id);
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(18).string(message.lead_source);
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(26).fork()).ldelim();
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 !== 8) {
46
+ if (tag !== 10) {
40
47
  break;
41
48
  }
42
- message.partner_lead_id = reader.int32();
49
+ message.customer_id = reader.string();
43
50
  continue;
44
51
  case 2:
45
- if (tag !== 18) {
52
+ if (tag !== 16) {
46
53
  break;
47
54
  }
48
- message.lead_source = reader.string();
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).int32(message.phone);
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.int32();
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 createBasegetlendingHomePageResponse() {
287
- return { status: 0, success: false, message: "", error_message: "", data: undefined };
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.getlendingHomePageResponse = {
327
+ exports.Section = {
290
328
  encode(message, writer = minimal_1.default.Writer.create()) {
291
- if (message.status !== 0) {
292
- writer.uint32(8).int32(message.status);
329
+ if (message.text !== undefined) {
330
+ writer.uint32(10).string(message.text);
293
331
  }
294
- if (message.success !== false) {
295
- writer.uint32(16).bool(message.success);
332
+ if (message.text_color !== undefined) {
333
+ writer.uint32(18).string(message.text_color);
296
334
  }
297
- if (message.message !== "") {
298
- writer.uint32(26).string(message.message);
335
+ if (message.action !== undefined) {
336
+ writer.uint32(26).string(message.action);
299
337
  }
300
- if (message.error_message !== "") {
301
- writer.uint32(34).string(message.error_message);
338
+ if (message.button_text !== undefined) {
339
+ writer.uint32(34).string(message.button_text);
302
340
  }
303
- if (message.data !== undefined) {
304
- exports.HomePageData.encode(message.data, writer.uint32(42).fork()).ldelim();
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 = createBasegetlendingHomePageResponse();
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 !== 8) {
363
+ if (tag !== 10) {
317
364
  break;
318
365
  }
319
- message.status = reader.int32();
366
+ message.text = reader.string();
320
367
  continue;
321
368
  case 2:
322
- if (tag !== 16) {
369
+ if (tag !== 18) {
323
370
  break;
324
371
  }
325
- message.success = reader.bool();
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.message = reader.string();
378
+ message.action = reader.string();
332
379
  continue;
333
380
  case 4:
334
381
  if (tag !== 34) {
335
382
  break;
336
383
  }
337
- message.error_message = reader.string();
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.data = exports.HomePageData.decode(reader, reader.uint32());
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
- 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,
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.status !== 0) {
365
- obj.status = Math.round(message.status);
436
+ if (message.text !== undefined) {
437
+ obj.text = message.text;
366
438
  }
367
- if (message.success !== false) {
368
- obj.success = message.success;
439
+ if (message.text_color !== undefined) {
440
+ obj.text_color = message.text_color;
369
441
  }
370
- if (message.message !== "") {
371
- obj.message = message.message;
442
+ if (message.action !== undefined) {
443
+ obj.action = message.action;
372
444
  }
373
- if (message.error_message !== "") {
374
- obj.error_message = message.error_message;
445
+ if (message.button_text !== undefined) {
446
+ obj.button_text = message.button_text;
375
447
  }
376
- if (message.data !== undefined) {
377
- obj.data = exports.HomePageData.toJSON(message.data);
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.getlendingHomePageResponse.fromPartial(base ?? {});
463
+ return exports.Section.fromPartial(base ?? {});
383
464
  },
384
465
  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;
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 createBaseHomePageData() {
397
- return { user_state: "", loc_limit: 0, loc_available: 0, loc_used: 0, actions: undefined };
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.HomePageData = {
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.loc_limit !== 0) {
405
- writer.uint32(17).double(message.loc_limit);
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.loc_available !== 0) {
408
- writer.uint32(25).double(message.loc_available);
526
+ if (message.action !== "") {
527
+ writer.uint32(82).string(message.action);
409
528
  }
410
- if (message.loc_used !== 0) {
411
- writer.uint32(33).double(message.loc_used);
529
+ if (message.button_text !== "") {
530
+ writer.uint32(90).string(message.button_text);
412
531
  }
413
- if (message.actions !== undefined) {
414
- exports.HomePageActions.encode(message.actions, writer.uint32(42).fork()).ldelim();
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 = createBaseHomePageData();
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 !== 17) {
560
+ if (tag !== 18) {
433
561
  break;
434
562
  }
435
- message.loc_limit = reader.double();
563
+ message.sub_text = reader.string();
436
564
  continue;
437
565
  case 3:
438
- if (tag !== 25) {
566
+ if (tag !== 26) {
439
567
  break;
440
568
  }
441
- message.loc_available = reader.double();
569
+ message.sub_text_color = reader.string();
442
570
  continue;
443
571
  case 4:
444
- if (tag !== 33) {
572
+ if (tag !== 34) {
445
573
  break;
446
574
  }
447
- message.loc_used = reader.double();
575
+ message.amount = reader.string();
448
576
  continue;
449
577
  case 5:
450
578
  if (tag !== 42) {
451
579
  break;
452
580
  }
453
- message.actions = exports.HomePageActions.decode(reader, reader.uint32());
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
- 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,
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.loc_limit !== 0) {
478
- obj.loc_limit = message.loc_limit;
677
+ if (message.sub_text !== "") {
678
+ obj.sub_text = message.sub_text;
479
679
  }
480
- if (message.loc_available !== 0) {
481
- obj.loc_available = message.loc_available;
680
+ if (message.sub_text_color !== "") {
681
+ obj.sub_text_color = message.sub_text_color;
482
682
  }
483
- if (message.loc_used !== 0) {
484
- obj.loc_used = message.loc_used;
683
+ if (message.amount !== "") {
684
+ obj.amount = message.amount;
485
685
  }
486
- if (message.actions !== undefined) {
487
- obj.actions = exports.HomePageActions.toJSON(message.actions);
686
+ if (message.amount_color !== "") {
687
+ obj.amount_color = message.amount_color;
488
688
  }
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();
689
+ if (message.button_background_color !== "") {
690
+ obj.button_background_color = message.button_background_color;
513
691
  }
514
- if (message.PayFull !== undefined) {
515
- exports.PaymentAction.encode(message.PayFull, writer.uint32(18).fork()).ldelim();
692
+ if (message.emi_amount !== "") {
693
+ obj.emi_amount = message.emi_amount;
516
694
  }
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);
695
+ if (message.text !== "") {
696
+ obj.text = message.text;
543
697
  }
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);
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.PayFull !== undefined) {
558
- obj.PayFull = exports.PaymentAction.toJSON(message.PayFull);
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.HomePageActions.fromPartial(base ?? {});
722
+ return exports.DashboardData.fromPartial(base ?? {});
564
723
  },
565
724
  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;
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 createBasePaymentAction() {
577
- return { amount: 0, date: "" };
744
+ function createBasegetlendingHomePageResponse() {
745
+ return { status: false, data: undefined };
578
746
  }
579
- exports.PaymentAction = {
747
+ exports.getlendingHomePageResponse = {
580
748
  encode(message, writer = minimal_1.default.Writer.create()) {
581
- if (message.amount !== 0) {
582
- writer.uint32(9).double(message.amount);
749
+ if (message.status !== false) {
750
+ writer.uint32(8).bool(message.status);
583
751
  }
584
- if (message.date !== "") {
585
- writer.uint32(18).string(message.date);
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 = createBasePaymentAction();
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 !== 9) {
765
+ if (tag !== 8) {
598
766
  break;
599
767
  }
600
- message.amount = reader.double();
768
+ message.status = reader.bool();
601
769
  continue;
602
770
  case 2:
603
771
  if (tag !== 18) {
604
772
  break;
605
773
  }
606
- message.date = reader.string();
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
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
619
- date: isSet(object.date) ? globalThis.String(object.date) : "",
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.amount !== 0) {
625
- obj.amount = message.amount;
792
+ if (message.status !== false) {
793
+ obj.status = message.status;
626
794
  }
627
- if (message.date !== "") {
628
- obj.date = message.date;
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.PaymentAction.fromPartial(base ?? {});
801
+ return exports.getlendingHomePageResponse.fromPartial(base ?? {});
634
802
  },
635
803
  fromPartial(object) {
636
- const message = createBasePaymentAction();
637
- message.amount = object.amount ?? 0;
638
- message.date = object.date ?? "";
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
  }