@stashfin/grpc 1.2.144 → 1.2.146

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.144",
3
+ "version": "1.2.146",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -15,7 +15,7 @@ export interface Report {
15
15
  report_id: number;
16
16
  score: number;
17
17
  type: string;
18
- trdelines: TradeLine[];
18
+ tradelines: TradeLine[];
19
19
  dpd: DPD | undefined;
20
20
  enquiries: Enquiries | undefined;
21
21
  dpd_char: dpdChar | undefined;
@@ -39,6 +39,9 @@ export interface TradeLine {
39
39
  account_status?: string | undefined;
40
40
  emi_amount?: number | undefined;
41
41
  credit_limit?: number | undefined;
42
+ loan_type?: string | undefined;
43
+ written_off_amount?: number | undefined;
44
+ settlement_amount?: number | undefined;
42
45
  }
43
46
  export interface DPD {
44
47
  month1: number;
@@ -98,6 +101,7 @@ export interface EnquiriesData {
98
101
  date_reported: string;
99
102
  enquiry_purpose: number;
100
103
  reporting_member: string;
104
+ loan_type?: string | undefined;
101
105
  }
102
106
  export declare const bureauRequest: {
103
107
  encode(message: bureauRequest, writer?: _m0.Writer): _m0.Writer;
@@ -192,7 +192,7 @@ function createBaseReport() {
192
192
  report_id: 0,
193
193
  score: 0,
194
194
  type: "",
195
- trdelines: [],
195
+ tradelines: [],
196
196
  dpd: undefined,
197
197
  enquiries: undefined,
198
198
  dpd_char: undefined,
@@ -212,7 +212,7 @@ exports.Report = {
212
212
  if (message.type !== "") {
213
213
  writer.uint32(26).string(message.type);
214
214
  }
215
- for (const v of message.trdelines) {
215
+ for (const v of message.tradelines) {
216
216
  exports.TradeLine.encode(v, writer.uint32(34).fork()).ldelim();
217
217
  }
218
218
  if (message.dpd !== undefined) {
@@ -264,7 +264,7 @@ exports.Report = {
264
264
  if (tag !== 34) {
265
265
  break;
266
266
  }
267
- message.trdelines.push(exports.TradeLine.decode(reader, reader.uint32()));
267
+ message.tradelines.push(exports.TradeLine.decode(reader, reader.uint32()));
268
268
  continue;
269
269
  case 5:
270
270
  if (tag !== 42) {
@@ -315,8 +315,8 @@ exports.Report = {
315
315
  report_id: isSet(object.report_id) ? globalThis.Number(object.report_id) : 0,
316
316
  score: isSet(object.score) ? globalThis.Number(object.score) : 0,
317
317
  type: isSet(object.type) ? globalThis.String(object.type) : "",
318
- trdelines: globalThis.Array.isArray(object?.trdelines)
319
- ? object.trdelines.map((e) => exports.TradeLine.fromJSON(e))
318
+ tradelines: globalThis.Array.isArray(object?.tradelines)
319
+ ? object.tradelines.map((e) => exports.TradeLine.fromJSON(e))
320
320
  : [],
321
321
  dpd: isSet(object.dpd) ? exports.DPD.fromJSON(object.dpd) : undefined,
322
322
  enquiries: isSet(object.enquiries) ? exports.Enquiries.fromJSON(object.enquiries) : undefined,
@@ -339,8 +339,8 @@ exports.Report = {
339
339
  if (message.type !== "") {
340
340
  obj.type = message.type;
341
341
  }
342
- if (message.trdelines?.length) {
343
- obj.trdelines = message.trdelines.map((e) => exports.TradeLine.toJSON(e));
342
+ if (message.tradelines?.length) {
343
+ obj.tradelines = message.tradelines.map((e) => exports.TradeLine.toJSON(e));
344
344
  }
345
345
  if (message.dpd !== undefined) {
346
346
  obj.dpd = exports.DPD.toJSON(message.dpd);
@@ -370,7 +370,7 @@ exports.Report = {
370
370
  message.report_id = object.report_id ?? 0;
371
371
  message.score = object.score ?? 0;
372
372
  message.type = object.type ?? "";
373
- message.trdelines = object.trdelines?.map((e) => exports.TradeLine.fromPartial(e)) || [];
373
+ message.tradelines = object.tradelines?.map((e) => exports.TradeLine.fromPartial(e)) || [];
374
374
  message.dpd = (object.dpd !== undefined && object.dpd !== null) ? exports.DPD.fromPartial(object.dpd) : undefined;
375
375
  message.enquiries = (object.enquiries !== undefined && object.enquiries !== null)
376
376
  ? exports.Enquiries.fromPartial(object.enquiries)
@@ -403,6 +403,9 @@ function createBaseTradeLine() {
403
403
  account_status: undefined,
404
404
  emi_amount: undefined,
405
405
  credit_limit: undefined,
406
+ loan_type: undefined,
407
+ written_off_amount: undefined,
408
+ settlement_amount: undefined,
406
409
  };
407
410
  }
408
411
  exports.TradeLine = {
@@ -452,6 +455,15 @@ exports.TradeLine = {
452
455
  if (message.credit_limit !== undefined) {
453
456
  writer.uint32(120).int64(message.credit_limit);
454
457
  }
458
+ if (message.loan_type !== undefined) {
459
+ writer.uint32(130).string(message.loan_type);
460
+ }
461
+ if (message.written_off_amount !== undefined) {
462
+ writer.uint32(136).int64(message.written_off_amount);
463
+ }
464
+ if (message.settlement_amount !== undefined) {
465
+ writer.uint32(144).int64(message.settlement_amount);
466
+ }
455
467
  return writer;
456
468
  },
457
469
  decode(input, length) {
@@ -551,6 +563,24 @@ exports.TradeLine = {
551
563
  }
552
564
  message.credit_limit = longToNumber(reader.int64());
553
565
  continue;
566
+ case 16:
567
+ if (tag !== 130) {
568
+ break;
569
+ }
570
+ message.loan_type = reader.string();
571
+ continue;
572
+ case 17:
573
+ if (tag !== 136) {
574
+ break;
575
+ }
576
+ message.written_off_amount = longToNumber(reader.int64());
577
+ continue;
578
+ case 18:
579
+ if (tag !== 144) {
580
+ break;
581
+ }
582
+ message.settlement_amount = longToNumber(reader.int64());
583
+ continue;
554
584
  }
555
585
  if ((tag & 7) === 4 || tag === 0) {
556
586
  break;
@@ -578,6 +608,9 @@ exports.TradeLine = {
578
608
  account_status: isSet(object.account_status) ? globalThis.String(object.account_status) : undefined,
579
609
  emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : undefined,
580
610
  credit_limit: isSet(object.credit_limit) ? globalThis.Number(object.credit_limit) : undefined,
611
+ loan_type: isSet(object.loan_type) ? globalThis.String(object.loan_type) : undefined,
612
+ written_off_amount: isSet(object.written_off_amount) ? globalThis.Number(object.written_off_amount) : undefined,
613
+ settlement_amount: isSet(object.settlement_amount) ? globalThis.Number(object.settlement_amount) : undefined,
581
614
  };
582
615
  },
583
616
  toJSON(message) {
@@ -627,6 +660,15 @@ exports.TradeLine = {
627
660
  if (message.credit_limit !== undefined) {
628
661
  obj.credit_limit = Math.round(message.credit_limit);
629
662
  }
663
+ if (message.loan_type !== undefined) {
664
+ obj.loan_type = message.loan_type;
665
+ }
666
+ if (message.written_off_amount !== undefined) {
667
+ obj.written_off_amount = Math.round(message.written_off_amount);
668
+ }
669
+ if (message.settlement_amount !== undefined) {
670
+ obj.settlement_amount = Math.round(message.settlement_amount);
671
+ }
630
672
  return obj;
631
673
  },
632
674
  create(base) {
@@ -649,6 +691,9 @@ exports.TradeLine = {
649
691
  message.account_status = object.account_status ?? undefined;
650
692
  message.emi_amount = object.emi_amount ?? undefined;
651
693
  message.credit_limit = object.credit_limit ?? undefined;
694
+ message.loan_type = object.loan_type ?? undefined;
695
+ message.written_off_amount = object.written_off_amount ?? undefined;
696
+ message.settlement_amount = object.settlement_amount ?? undefined;
652
697
  return message;
653
698
  },
654
699
  };
@@ -1484,7 +1529,7 @@ exports.DPDCounts = {
1484
1529
  },
1485
1530
  };
1486
1531
  function createBaseEnquiriesData() {
1487
- return { date_reported: "", enquiry_purpose: 0, reporting_member: "" };
1532
+ return { date_reported: "", enquiry_purpose: 0, reporting_member: "", loan_type: undefined };
1488
1533
  }
1489
1534
  exports.EnquiriesData = {
1490
1535
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -1497,6 +1542,9 @@ exports.EnquiriesData = {
1497
1542
  if (message.reporting_member !== "") {
1498
1543
  writer.uint32(26).string(message.reporting_member);
1499
1544
  }
1545
+ if (message.loan_type !== undefined) {
1546
+ writer.uint32(34).string(message.loan_type);
1547
+ }
1500
1548
  return writer;
1501
1549
  },
1502
1550
  decode(input, length) {
@@ -1524,6 +1572,12 @@ exports.EnquiriesData = {
1524
1572
  }
1525
1573
  message.reporting_member = reader.string();
1526
1574
  continue;
1575
+ case 4:
1576
+ if (tag !== 34) {
1577
+ break;
1578
+ }
1579
+ message.loan_type = reader.string();
1580
+ continue;
1527
1581
  }
1528
1582
  if ((tag & 7) === 4 || tag === 0) {
1529
1583
  break;
@@ -1537,6 +1591,7 @@ exports.EnquiriesData = {
1537
1591
  date_reported: isSet(object.date_reported) ? globalThis.String(object.date_reported) : "",
1538
1592
  enquiry_purpose: isSet(object.enquiry_purpose) ? globalThis.Number(object.enquiry_purpose) : 0,
1539
1593
  reporting_member: isSet(object.reporting_member) ? globalThis.String(object.reporting_member) : "",
1594
+ loan_type: isSet(object.loan_type) ? globalThis.String(object.loan_type) : undefined,
1540
1595
  };
1541
1596
  },
1542
1597
  toJSON(message) {
@@ -1550,6 +1605,9 @@ exports.EnquiriesData = {
1550
1605
  if (message.reporting_member !== "") {
1551
1606
  obj.reporting_member = message.reporting_member;
1552
1607
  }
1608
+ if (message.loan_type !== undefined) {
1609
+ obj.loan_type = message.loan_type;
1610
+ }
1553
1611
  return obj;
1554
1612
  },
1555
1613
  create(base) {
@@ -1560,6 +1618,7 @@ exports.EnquiriesData = {
1560
1618
  message.date_reported = object.date_reported ?? "";
1561
1619
  message.enquiry_purpose = object.enquiry_purpose ?? 0;
1562
1620
  message.reporting_member = object.reporting_member ?? "";
1621
+ message.loan_type = object.loan_type ?? undefined;
1563
1622
  return message;
1564
1623
  },
1565
1624
  };
@@ -3,9 +3,6 @@ export declare const protobufPackage = "customers.getdashboard";
3
3
  export interface getDashboardRequest {
4
4
  }
5
5
  export interface getDashboardResponse {
6
- user_state: string;
7
- father_name_dialog: boolean;
8
- current_step: string;
9
6
  blocks: Block[];
10
7
  }
11
8
  export interface Block {
@@ -50,21 +50,12 @@ exports.getDashboardRequest = {
50
50
  },
51
51
  };
52
52
  function createBasegetDashboardResponse() {
53
- return { user_state: "", father_name_dialog: false, current_step: "", blocks: [] };
53
+ return { blocks: [] };
54
54
  }
55
55
  exports.getDashboardResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
57
- if (message.user_state !== "") {
58
- writer.uint32(10).string(message.user_state);
59
- }
60
- if (message.father_name_dialog !== false) {
61
- writer.uint32(16).bool(message.father_name_dialog);
62
- }
63
- if (message.current_step !== "") {
64
- writer.uint32(26).string(message.current_step);
65
- }
66
57
  for (const v of message.blocks) {
67
- exports.Block.encode(v, writer.uint32(34).fork()).ldelim();
58
+ exports.Block.encode(v, writer.uint32(10).fork()).ldelim();
68
59
  }
69
60
  return writer;
70
61
  },
@@ -79,24 +70,6 @@ exports.getDashboardResponse = {
79
70
  if (tag !== 10) {
80
71
  break;
81
72
  }
82
- message.user_state = reader.string();
83
- continue;
84
- case 2:
85
- if (tag !== 16) {
86
- break;
87
- }
88
- message.father_name_dialog = reader.bool();
89
- continue;
90
- case 3:
91
- if (tag !== 26) {
92
- break;
93
- }
94
- message.current_step = reader.string();
95
- continue;
96
- case 4:
97
- if (tag !== 34) {
98
- break;
99
- }
100
73
  message.blocks.push(exports.Block.decode(reader, reader.uint32()));
101
74
  continue;
102
75
  }
@@ -108,24 +81,10 @@ exports.getDashboardResponse = {
108
81
  return message;
109
82
  },
110
83
  fromJSON(object) {
111
- return {
112
- user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
113
- father_name_dialog: isSet(object.father_name_dialog) ? globalThis.Boolean(object.father_name_dialog) : false,
114
- current_step: isSet(object.current_step) ? globalThis.String(object.current_step) : "",
115
- blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
116
- };
84
+ return { blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [] };
117
85
  },
118
86
  toJSON(message) {
119
87
  const obj = {};
120
- if (message.user_state !== "") {
121
- obj.user_state = message.user_state;
122
- }
123
- if (message.father_name_dialog !== false) {
124
- obj.father_name_dialog = message.father_name_dialog;
125
- }
126
- if (message.current_step !== "") {
127
- obj.current_step = message.current_step;
128
- }
129
88
  if (message.blocks?.length) {
130
89
  obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
131
90
  }
@@ -136,9 +95,6 @@ exports.getDashboardResponse = {
136
95
  },
137
96
  fromPartial(object) {
138
97
  const message = createBasegetDashboardResponse();
139
- message.user_state = object.user_state ?? "";
140
- message.father_name_dialog = object.father_name_dialog ?? false;
141
- message.current_step = object.current_step ?? "";
142
98
  message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
143
99
  return message;
144
100
  },
@@ -6,6 +6,7 @@ export interface getDashboardMainCardResponse {
6
6
  block_name: string;
7
7
  block_code: string;
8
8
  block_data: MainCardData | undefined;
9
+ user_state: string;
9
10
  }
10
11
  export interface MainCardData {
11
12
  text: string;
@@ -50,7 +50,7 @@ exports.getDashboardMainCardRequest = {
50
50
  },
51
51
  };
52
52
  function createBasegetDashboardMainCardResponse() {
53
- return { block_name: "", block_code: "", block_data: undefined };
53
+ return { block_name: "", block_code: "", block_data: undefined, user_state: "" };
54
54
  }
55
55
  exports.getDashboardMainCardResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -63,6 +63,9 @@ exports.getDashboardMainCardResponse = {
63
63
  if (message.block_data !== undefined) {
64
64
  exports.MainCardData.encode(message.block_data, writer.uint32(26).fork()).ldelim();
65
65
  }
66
+ if (message.user_state !== "") {
67
+ writer.uint32(34).string(message.user_state);
68
+ }
66
69
  return writer;
67
70
  },
68
71
  decode(input, length) {
@@ -90,6 +93,12 @@ exports.getDashboardMainCardResponse = {
90
93
  }
91
94
  message.block_data = exports.MainCardData.decode(reader, reader.uint32());
92
95
  continue;
96
+ case 4:
97
+ if (tag !== 34) {
98
+ break;
99
+ }
100
+ message.user_state = reader.string();
101
+ continue;
93
102
  }
94
103
  if ((tag & 7) === 4 || tag === 0) {
95
104
  break;
@@ -103,6 +112,7 @@ exports.getDashboardMainCardResponse = {
103
112
  block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
104
113
  block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
105
114
  block_data: isSet(object.block_data) ? exports.MainCardData.fromJSON(object.block_data) : undefined,
115
+ user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
106
116
  };
107
117
  },
108
118
  toJSON(message) {
@@ -116,6 +126,9 @@ exports.getDashboardMainCardResponse = {
116
126
  if (message.block_data !== undefined) {
117
127
  obj.block_data = exports.MainCardData.toJSON(message.block_data);
118
128
  }
129
+ if (message.user_state !== "") {
130
+ obj.user_state = message.user_state;
131
+ }
119
132
  return obj;
120
133
  },
121
134
  create(base) {
@@ -128,6 +141,7 @@ exports.getDashboardMainCardResponse = {
128
141
  message.block_data = (object.block_data !== undefined && object.block_data !== null)
129
142
  ? exports.MainCardData.fromPartial(object.block_data)
130
143
  : undefined;
144
+ message.user_state = object.user_state ?? "";
131
145
  return message;
132
146
  },
133
147
  };
@@ -3,7 +3,8 @@ export declare const protobufPackage = "customers.getlimit";
3
3
  export interface getLimitRequest {
4
4
  }
5
5
  export interface getLimitResponse {
6
- limit: string;
6
+ basic_limit: number;
7
+ higher_limit: number;
7
8
  }
8
9
  export declare const getLimitRequest: {
9
10
  encode(_: getLimitRequest, writer?: _m0.Writer): _m0.Writer;
@@ -50,12 +50,15 @@ exports.getLimitRequest = {
50
50
  },
51
51
  };
52
52
  function createBasegetLimitResponse() {
53
- return { limit: "" };
53
+ return { basic_limit: 0, higher_limit: 0 };
54
54
  }
55
55
  exports.getLimitResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
57
- if (message.limit !== "") {
58
- writer.uint32(10).string(message.limit);
57
+ if (message.basic_limit !== 0) {
58
+ writer.uint32(8).int32(message.basic_limit);
59
+ }
60
+ if (message.higher_limit !== 0) {
61
+ writer.uint32(16).int32(message.higher_limit);
59
62
  }
60
63
  return writer;
61
64
  },
@@ -67,10 +70,16 @@ exports.getLimitResponse = {
67
70
  const tag = reader.uint32();
68
71
  switch (tag >>> 3) {
69
72
  case 1:
70
- if (tag !== 10) {
73
+ if (tag !== 8) {
71
74
  break;
72
75
  }
73
- message.limit = reader.string();
76
+ message.basic_limit = reader.int32();
77
+ continue;
78
+ case 2:
79
+ if (tag !== 16) {
80
+ break;
81
+ }
82
+ message.higher_limit = reader.int32();
74
83
  continue;
75
84
  }
76
85
  if ((tag & 7) === 4 || tag === 0) {
@@ -81,12 +90,18 @@ exports.getLimitResponse = {
81
90
  return message;
82
91
  },
83
92
  fromJSON(object) {
84
- return { limit: isSet(object.limit) ? globalThis.String(object.limit) : "" };
93
+ return {
94
+ basic_limit: isSet(object.basic_limit) ? globalThis.Number(object.basic_limit) : 0,
95
+ higher_limit: isSet(object.higher_limit) ? globalThis.Number(object.higher_limit) : 0,
96
+ };
85
97
  },
86
98
  toJSON(message) {
87
99
  const obj = {};
88
- if (message.limit !== "") {
89
- obj.limit = message.limit;
100
+ if (message.basic_limit !== 0) {
101
+ obj.basic_limit = Math.round(message.basic_limit);
102
+ }
103
+ if (message.higher_limit !== 0) {
104
+ obj.higher_limit = Math.round(message.higher_limit);
90
105
  }
91
106
  return obj;
92
107
  },
@@ -95,7 +110,8 @@ exports.getLimitResponse = {
95
110
  },
96
111
  fromPartial(object) {
97
112
  const message = createBasegetLimitResponse();
98
- message.limit = object.limit ?? "";
113
+ message.basic_limit = object.basic_limit ?? 0;
114
+ message.higher_limit = object.higher_limit ?? 0;
99
115
  return message;
100
116
  },
101
117
  };