@stashfin/grpc 1.2.690 → 1.2.692

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.690",
3
+ "version": "1.2.692",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -25,10 +25,28 @@ export interface TradeLineData {
25
25
  written_off_amount?: number | undefined;
26
26
  settlement_amount?: number | undefined;
27
27
  }
28
+ export interface HeadingTip {
29
+ title: string;
30
+ content: string;
31
+ }
32
+ export interface HeadingData {
33
+ key: string;
34
+ value: number;
35
+ }
36
+ export interface ScoreAnalysis {
37
+ heading: string;
38
+ description: string;
39
+ logoimage: string;
40
+ ratingcount: string;
41
+ ratingtype: string;
42
+ headingtips: HeadingTip[];
43
+ headingdata: HeadingData[];
44
+ }
28
45
  export interface chrReportResponse {
29
46
  resport_url: string;
30
47
  credit_score: number;
31
48
  tradelines: TradeLineData[];
49
+ scoreanalysis: ScoreAnalysis[];
32
50
  }
33
51
  export declare const chrReportRequest: {
34
52
  encode(message: chrReportRequest, writer?: _m0.Writer): _m0.Writer;
@@ -46,6 +64,30 @@ export declare const TradeLineData: {
46
64
  create<I extends Exact<DeepPartial<TradeLineData>, I>>(base?: I): TradeLineData;
47
65
  fromPartial<I extends Exact<DeepPartial<TradeLineData>, I>>(object: I): TradeLineData;
48
66
  };
67
+ export declare const HeadingTip: {
68
+ encode(message: HeadingTip, writer?: _m0.Writer): _m0.Writer;
69
+ decode(input: _m0.Reader | Uint8Array, length?: number): HeadingTip;
70
+ fromJSON(object: any): HeadingTip;
71
+ toJSON(message: HeadingTip): unknown;
72
+ create<I extends Exact<DeepPartial<HeadingTip>, I>>(base?: I): HeadingTip;
73
+ fromPartial<I extends Exact<DeepPartial<HeadingTip>, I>>(object: I): HeadingTip;
74
+ };
75
+ export declare const HeadingData: {
76
+ encode(message: HeadingData, writer?: _m0.Writer): _m0.Writer;
77
+ decode(input: _m0.Reader | Uint8Array, length?: number): HeadingData;
78
+ fromJSON(object: any): HeadingData;
79
+ toJSON(message: HeadingData): unknown;
80
+ create<I extends Exact<DeepPartial<HeadingData>, I>>(base?: I): HeadingData;
81
+ fromPartial<I extends Exact<DeepPartial<HeadingData>, I>>(object: I): HeadingData;
82
+ };
83
+ export declare const ScoreAnalysis: {
84
+ encode(message: ScoreAnalysis, writer?: _m0.Writer): _m0.Writer;
85
+ decode(input: _m0.Reader | Uint8Array, length?: number): ScoreAnalysis;
86
+ fromJSON(object: any): ScoreAnalysis;
87
+ toJSON(message: ScoreAnalysis): unknown;
88
+ create<I extends Exact<DeepPartial<ScoreAnalysis>, I>>(base?: I): ScoreAnalysis;
89
+ fromPartial<I extends Exact<DeepPartial<ScoreAnalysis>, I>>(object: I): ScoreAnalysis;
90
+ };
49
91
  export declare const chrReportResponse: {
50
92
  encode(message: chrReportResponse, writer?: _m0.Writer): _m0.Writer;
51
93
  decode(input: _m0.Reader | Uint8Array, length?: number): chrReportResponse;
@@ -8,7 +8,7 @@ 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.chrReportResponse = exports.TradeLineData = exports.chrReportRequest = exports.protobufPackage = void 0;
11
+ exports.chrReportResponse = exports.ScoreAnalysis = exports.HeadingData = exports.HeadingTip = exports.TradeLineData = exports.chrReportRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
@@ -404,8 +404,288 @@ exports.TradeLineData = {
404
404
  return message;
405
405
  },
406
406
  };
407
+ function createBaseHeadingTip() {
408
+ return { title: "", content: "" };
409
+ }
410
+ exports.HeadingTip = {
411
+ encode(message, writer = minimal_1.default.Writer.create()) {
412
+ if (message.title !== "") {
413
+ writer.uint32(10).string(message.title);
414
+ }
415
+ if (message.content !== "") {
416
+ writer.uint32(18).string(message.content);
417
+ }
418
+ return writer;
419
+ },
420
+ decode(input, length) {
421
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
422
+ let end = length === undefined ? reader.len : reader.pos + length;
423
+ const message = createBaseHeadingTip();
424
+ while (reader.pos < end) {
425
+ const tag = reader.uint32();
426
+ switch (tag >>> 3) {
427
+ case 1:
428
+ if (tag !== 10) {
429
+ break;
430
+ }
431
+ message.title = reader.string();
432
+ continue;
433
+ case 2:
434
+ if (tag !== 18) {
435
+ break;
436
+ }
437
+ message.content = reader.string();
438
+ continue;
439
+ }
440
+ if ((tag & 7) === 4 || tag === 0) {
441
+ break;
442
+ }
443
+ reader.skipType(tag & 7);
444
+ }
445
+ return message;
446
+ },
447
+ fromJSON(object) {
448
+ return {
449
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
450
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
451
+ };
452
+ },
453
+ toJSON(message) {
454
+ const obj = {};
455
+ if (message.title !== "") {
456
+ obj.title = message.title;
457
+ }
458
+ if (message.content !== "") {
459
+ obj.content = message.content;
460
+ }
461
+ return obj;
462
+ },
463
+ create(base) {
464
+ return exports.HeadingTip.fromPartial(base ?? {});
465
+ },
466
+ fromPartial(object) {
467
+ const message = createBaseHeadingTip();
468
+ message.title = object.title ?? "";
469
+ message.content = object.content ?? "";
470
+ return message;
471
+ },
472
+ };
473
+ function createBaseHeadingData() {
474
+ return { key: "", value: 0 };
475
+ }
476
+ exports.HeadingData = {
477
+ encode(message, writer = minimal_1.default.Writer.create()) {
478
+ if (message.key !== "") {
479
+ writer.uint32(10).string(message.key);
480
+ }
481
+ if (message.value !== 0) {
482
+ writer.uint32(16).int32(message.value);
483
+ }
484
+ return writer;
485
+ },
486
+ decode(input, length) {
487
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
488
+ let end = length === undefined ? reader.len : reader.pos + length;
489
+ const message = createBaseHeadingData();
490
+ while (reader.pos < end) {
491
+ const tag = reader.uint32();
492
+ switch (tag >>> 3) {
493
+ case 1:
494
+ if (tag !== 10) {
495
+ break;
496
+ }
497
+ message.key = reader.string();
498
+ continue;
499
+ case 2:
500
+ if (tag !== 16) {
501
+ break;
502
+ }
503
+ message.value = reader.int32();
504
+ continue;
505
+ }
506
+ if ((tag & 7) === 4 || tag === 0) {
507
+ break;
508
+ }
509
+ reader.skipType(tag & 7);
510
+ }
511
+ return message;
512
+ },
513
+ fromJSON(object) {
514
+ return {
515
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
516
+ value: isSet(object.value) ? globalThis.Number(object.value) : 0,
517
+ };
518
+ },
519
+ toJSON(message) {
520
+ const obj = {};
521
+ if (message.key !== "") {
522
+ obj.key = message.key;
523
+ }
524
+ if (message.value !== 0) {
525
+ obj.value = Math.round(message.value);
526
+ }
527
+ return obj;
528
+ },
529
+ create(base) {
530
+ return exports.HeadingData.fromPartial(base ?? {});
531
+ },
532
+ fromPartial(object) {
533
+ const message = createBaseHeadingData();
534
+ message.key = object.key ?? "";
535
+ message.value = object.value ?? 0;
536
+ return message;
537
+ },
538
+ };
539
+ function createBaseScoreAnalysis() {
540
+ return {
541
+ heading: "",
542
+ description: "",
543
+ logoimage: "",
544
+ ratingcount: "",
545
+ ratingtype: "",
546
+ headingtips: [],
547
+ headingdata: [],
548
+ };
549
+ }
550
+ exports.ScoreAnalysis = {
551
+ encode(message, writer = minimal_1.default.Writer.create()) {
552
+ if (message.heading !== "") {
553
+ writer.uint32(10).string(message.heading);
554
+ }
555
+ if (message.description !== "") {
556
+ writer.uint32(18).string(message.description);
557
+ }
558
+ if (message.logoimage !== "") {
559
+ writer.uint32(26).string(message.logoimage);
560
+ }
561
+ if (message.ratingcount !== "") {
562
+ writer.uint32(34).string(message.ratingcount);
563
+ }
564
+ if (message.ratingtype !== "") {
565
+ writer.uint32(42).string(message.ratingtype);
566
+ }
567
+ for (const v of message.headingtips) {
568
+ exports.HeadingTip.encode(v, writer.uint32(50).fork()).ldelim();
569
+ }
570
+ for (const v of message.headingdata) {
571
+ exports.HeadingData.encode(v, writer.uint32(58).fork()).ldelim();
572
+ }
573
+ return writer;
574
+ },
575
+ decode(input, length) {
576
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
577
+ let end = length === undefined ? reader.len : reader.pos + length;
578
+ const message = createBaseScoreAnalysis();
579
+ while (reader.pos < end) {
580
+ const tag = reader.uint32();
581
+ switch (tag >>> 3) {
582
+ case 1:
583
+ if (tag !== 10) {
584
+ break;
585
+ }
586
+ message.heading = reader.string();
587
+ continue;
588
+ case 2:
589
+ if (tag !== 18) {
590
+ break;
591
+ }
592
+ message.description = reader.string();
593
+ continue;
594
+ case 3:
595
+ if (tag !== 26) {
596
+ break;
597
+ }
598
+ message.logoimage = reader.string();
599
+ continue;
600
+ case 4:
601
+ if (tag !== 34) {
602
+ break;
603
+ }
604
+ message.ratingcount = reader.string();
605
+ continue;
606
+ case 5:
607
+ if (tag !== 42) {
608
+ break;
609
+ }
610
+ message.ratingtype = reader.string();
611
+ continue;
612
+ case 6:
613
+ if (tag !== 50) {
614
+ break;
615
+ }
616
+ message.headingtips.push(exports.HeadingTip.decode(reader, reader.uint32()));
617
+ continue;
618
+ case 7:
619
+ if (tag !== 58) {
620
+ break;
621
+ }
622
+ message.headingdata.push(exports.HeadingData.decode(reader, reader.uint32()));
623
+ continue;
624
+ }
625
+ if ((tag & 7) === 4 || tag === 0) {
626
+ break;
627
+ }
628
+ reader.skipType(tag & 7);
629
+ }
630
+ return message;
631
+ },
632
+ fromJSON(object) {
633
+ return {
634
+ heading: isSet(object.heading) ? globalThis.String(object.heading) : "",
635
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
636
+ logoimage: isSet(object.logoimage) ? globalThis.String(object.logoimage) : "",
637
+ ratingcount: isSet(object.ratingcount) ? globalThis.String(object.ratingcount) : "",
638
+ ratingtype: isSet(object.ratingtype) ? globalThis.String(object.ratingtype) : "",
639
+ headingtips: globalThis.Array.isArray(object?.headingtips)
640
+ ? object.headingtips.map((e) => exports.HeadingTip.fromJSON(e))
641
+ : [],
642
+ headingdata: globalThis.Array.isArray(object?.headingdata)
643
+ ? object.headingdata.map((e) => exports.HeadingData.fromJSON(e))
644
+ : [],
645
+ };
646
+ },
647
+ toJSON(message) {
648
+ const obj = {};
649
+ if (message.heading !== "") {
650
+ obj.heading = message.heading;
651
+ }
652
+ if (message.description !== "") {
653
+ obj.description = message.description;
654
+ }
655
+ if (message.logoimage !== "") {
656
+ obj.logoimage = message.logoimage;
657
+ }
658
+ if (message.ratingcount !== "") {
659
+ obj.ratingcount = message.ratingcount;
660
+ }
661
+ if (message.ratingtype !== "") {
662
+ obj.ratingtype = message.ratingtype;
663
+ }
664
+ if (message.headingtips?.length) {
665
+ obj.headingtips = message.headingtips.map((e) => exports.HeadingTip.toJSON(e));
666
+ }
667
+ if (message.headingdata?.length) {
668
+ obj.headingdata = message.headingdata.map((e) => exports.HeadingData.toJSON(e));
669
+ }
670
+ return obj;
671
+ },
672
+ create(base) {
673
+ return exports.ScoreAnalysis.fromPartial(base ?? {});
674
+ },
675
+ fromPartial(object) {
676
+ const message = createBaseScoreAnalysis();
677
+ message.heading = object.heading ?? "";
678
+ message.description = object.description ?? "";
679
+ message.logoimage = object.logoimage ?? "";
680
+ message.ratingcount = object.ratingcount ?? "";
681
+ message.ratingtype = object.ratingtype ?? "";
682
+ message.headingtips = object.headingtips?.map((e) => exports.HeadingTip.fromPartial(e)) || [];
683
+ message.headingdata = object.headingdata?.map((e) => exports.HeadingData.fromPartial(e)) || [];
684
+ return message;
685
+ },
686
+ };
407
687
  function createBasechrReportResponse() {
408
- return { resport_url: "", credit_score: 0, tradelines: [] };
688
+ return { resport_url: "", credit_score: 0, tradelines: [], scoreanalysis: [] };
409
689
  }
410
690
  exports.chrReportResponse = {
411
691
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -418,6 +698,9 @@ exports.chrReportResponse = {
418
698
  for (const v of message.tradelines) {
419
699
  exports.TradeLineData.encode(v, writer.uint32(26).fork()).ldelim();
420
700
  }
701
+ for (const v of message.scoreanalysis) {
702
+ exports.ScoreAnalysis.encode(v, writer.uint32(34).fork()).ldelim();
703
+ }
421
704
  return writer;
422
705
  },
423
706
  decode(input, length) {
@@ -445,6 +728,12 @@ exports.chrReportResponse = {
445
728
  }
446
729
  message.tradelines.push(exports.TradeLineData.decode(reader, reader.uint32()));
447
730
  continue;
731
+ case 4:
732
+ if (tag !== 34) {
733
+ break;
734
+ }
735
+ message.scoreanalysis.push(exports.ScoreAnalysis.decode(reader, reader.uint32()));
736
+ continue;
448
737
  }
449
738
  if ((tag & 7) === 4 || tag === 0) {
450
739
  break;
@@ -460,6 +749,9 @@ exports.chrReportResponse = {
460
749
  tradelines: globalThis.Array.isArray(object?.tradelines)
461
750
  ? object.tradelines.map((e) => exports.TradeLineData.fromJSON(e))
462
751
  : [],
752
+ scoreanalysis: globalThis.Array.isArray(object?.scoreanalysis)
753
+ ? object.scoreanalysis.map((e) => exports.ScoreAnalysis.fromJSON(e))
754
+ : [],
463
755
  };
464
756
  },
465
757
  toJSON(message) {
@@ -473,6 +765,9 @@ exports.chrReportResponse = {
473
765
  if (message.tradelines?.length) {
474
766
  obj.tradelines = message.tradelines.map((e) => exports.TradeLineData.toJSON(e));
475
767
  }
768
+ if (message.scoreanalysis?.length) {
769
+ obj.scoreanalysis = message.scoreanalysis.map((e) => exports.ScoreAnalysis.toJSON(e));
770
+ }
476
771
  return obj;
477
772
  },
478
773
  create(base) {
@@ -483,6 +778,7 @@ exports.chrReportResponse = {
483
778
  message.resport_url = object.resport_url ?? "";
484
779
  message.credit_score = object.credit_score ?? 0;
485
780
  message.tradelines = object.tradelines?.map((e) => exports.TradeLineData.fromPartial(e)) || [];
781
+ message.scoreanalysis = object.scoreanalysis?.map((e) => exports.ScoreAnalysis.fromPartial(e)) || [];
486
782
  return message;
487
783
  },
488
784
  };
@@ -96,7 +96,7 @@ export interface GetLocWithdrawlResponse {
96
96
  insurance_l: string;
97
97
  emi_card_description: string;
98
98
  bill_card_description: string;
99
- loan_id: string;
99
+ loan_id?: string | undefined;
100
100
  installment_amounts: string;
101
101
  apr_title: string;
102
102
  apr_value: string;
@@ -582,7 +582,7 @@ function createBaseGetLocWithdrawlResponse() {
582
582
  insurance_l: "",
583
583
  emi_card_description: "",
584
584
  bill_card_description: "",
585
- loan_id: "",
585
+ loan_id: undefined,
586
586
  installment_amounts: "",
587
587
  apr_title: "",
588
588
  apr_value: "",
@@ -802,7 +802,7 @@ exports.GetLocWithdrawlResponse = {
802
802
  if (message.bill_card_description !== "") {
803
803
  writer.uint32(514).string(message.bill_card_description);
804
804
  }
805
- if (message.loan_id !== "") {
805
+ if (message.loan_id !== undefined) {
806
806
  writer.uint32(522).string(message.loan_id);
807
807
  }
808
808
  if (message.installment_amounts !== "") {
@@ -1515,7 +1515,7 @@ exports.GetLocWithdrawlResponse = {
1515
1515
  insurance_l: isSet(object.insurance_l) ? globalThis.String(object.insurance_l) : "",
1516
1516
  emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
1517
1517
  bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
1518
- loan_id: isSet(object.loan_id) ? globalThis.String(object.loan_id) : "",
1518
+ loan_id: isSet(object.loan_id) ? globalThis.String(object.loan_id) : undefined,
1519
1519
  installment_amounts: isSet(object.installment_amounts) ? globalThis.String(object.installment_amounts) : "",
1520
1520
  apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
1521
1521
  apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : "",
@@ -1751,7 +1751,7 @@ exports.GetLocWithdrawlResponse = {
1751
1751
  if (message.bill_card_description !== "") {
1752
1752
  obj.bill_card_description = message.bill_card_description;
1753
1753
  }
1754
- if (message.loan_id !== "") {
1754
+ if (message.loan_id !== undefined) {
1755
1755
  obj.loan_id = message.loan_id;
1756
1756
  }
1757
1757
  if (message.installment_amounts !== "") {
@@ -1894,7 +1894,7 @@ exports.GetLocWithdrawlResponse = {
1894
1894
  message.insurance_l = object.insurance_l ?? "";
1895
1895
  message.emi_card_description = object.emi_card_description ?? "";
1896
1896
  message.bill_card_description = object.bill_card_description ?? "";
1897
- message.loan_id = object.loan_id ?? "";
1897
+ message.loan_id = object.loan_id ?? undefined;
1898
1898
  message.installment_amounts = object.installment_amounts ?? "";
1899
1899
  message.apr_title = object.apr_title ?? "";
1900
1900
  message.apr_value = object.apr_value ?? "";