@stashfin/grpc 1.2.10 → 1.2.11

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.10",
3
+ "version": "1.2.11",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -28,7 +28,7 @@ export interface BlockData {
28
28
  action_type: string;
29
29
  color1: string;
30
30
  color2: string;
31
- image_trailing: boolean;
31
+ image_trailing: string;
32
32
  tag: Tag | undefined;
33
33
  overlay_image: string;
34
34
  }
@@ -254,7 +254,7 @@ function createBaseBlockData() {
254
254
  action_type: "",
255
255
  color1: "",
256
256
  color2: "",
257
- image_trailing: false,
257
+ image_trailing: "",
258
258
  tag: undefined,
259
259
  overlay_image: "",
260
260
  };
@@ -300,8 +300,8 @@ exports.BlockData = {
300
300
  if (message.color2 !== "") {
301
301
  writer.uint32(106).string(message.color2);
302
302
  }
303
- if (message.image_trailing !== false) {
304
- writer.uint32(112).bool(message.image_trailing);
303
+ if (message.image_trailing !== "") {
304
+ writer.uint32(114).string(message.image_trailing);
305
305
  }
306
306
  if (message.tag !== undefined) {
307
307
  exports.Tag.encode(message.tag, writer.uint32(122).fork()).ldelim();
@@ -397,10 +397,10 @@ exports.BlockData = {
397
397
  message.color2 = reader.string();
398
398
  continue;
399
399
  case 14:
400
- if (tag !== 112) {
400
+ if (tag !== 114) {
401
401
  break;
402
402
  }
403
- message.image_trailing = reader.bool();
403
+ message.image_trailing = reader.string();
404
404
  continue;
405
405
  case 15:
406
406
  if (tag !== 122) {
@@ -437,7 +437,7 @@ exports.BlockData = {
437
437
  action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
438
438
  color1: isSet(object.color1) ? globalThis.String(object.color1) : "",
439
439
  color2: isSet(object.color2) ? globalThis.String(object.color2) : "",
440
- image_trailing: isSet(object.image_trailing) ? globalThis.Boolean(object.image_trailing) : false,
440
+ image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) : "",
441
441
  tag: isSet(object.tag) ? exports.Tag.fromJSON(object.tag) : undefined,
442
442
  overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) : "",
443
443
  };
@@ -483,7 +483,7 @@ exports.BlockData = {
483
483
  if (message.color2 !== "") {
484
484
  obj.color2 = message.color2;
485
485
  }
486
- if (message.image_trailing !== false) {
486
+ if (message.image_trailing !== "") {
487
487
  obj.image_trailing = message.image_trailing;
488
488
  }
489
489
  if (message.tag !== undefined) {
@@ -512,7 +512,7 @@ exports.BlockData = {
512
512
  message.action_type = object.action_type ?? "";
513
513
  message.color1 = object.color1 ?? "";
514
514
  message.color2 = object.color2 ?? "";
515
- message.image_trailing = object.image_trailing ?? false;
515
+ message.image_trailing = object.image_trailing ?? "";
516
516
  message.tag = (object.tag !== undefined && object.tag !== null) ? exports.Tag.fromPartial(object.tag) : undefined;
517
517
  message.overlay_image = object.overlay_image ?? "";
518
518
  return message;
@@ -2,9 +2,13 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.updateinstallments";
3
3
  export interface updateInstallmentsRequest {
4
4
  installment_id: number;
5
- r_principal: number;
6
- r_interest: number;
7
- r_penalty: number;
5
+ principal: number;
6
+ interest: number;
7
+ penalty: number;
8
+ r_pif_principal: number;
9
+ r_pif_interest: number;
10
+ r_pif_penalty: number;
11
+ amount: number;
8
12
  }
9
13
  export interface updateInstallmentsResponse {
10
14
  id: number;
@@ -13,21 +13,42 @@ exports.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.updateinstallments";
15
15
  function createBaseupdateInstallmentsRequest() {
16
- return { installment_id: 0, r_principal: 0, r_interest: 0, r_penalty: 0 };
16
+ return {
17
+ installment_id: 0,
18
+ principal: 0,
19
+ interest: 0,
20
+ penalty: 0,
21
+ r_pif_principal: 0,
22
+ r_pif_interest: 0,
23
+ r_pif_penalty: 0,
24
+ amount: 0,
25
+ };
17
26
  }
18
27
  exports.updateInstallmentsRequest = {
19
28
  encode(message, writer = minimal_1.default.Writer.create()) {
20
29
  if (message.installment_id !== 0) {
21
30
  writer.uint32(8).int32(message.installment_id);
22
31
  }
23
- if (message.r_principal !== 0) {
24
- writer.uint32(16).int32(message.r_principal);
32
+ if (message.principal !== 0) {
33
+ writer.uint32(16).int32(message.principal);
25
34
  }
26
- if (message.r_interest !== 0) {
27
- writer.uint32(24).int32(message.r_interest);
35
+ if (message.interest !== 0) {
36
+ writer.uint32(24).int32(message.interest);
28
37
  }
29
- if (message.r_penalty !== 0) {
30
- writer.uint32(32).int32(message.r_penalty);
38
+ if (message.penalty !== 0) {
39
+ writer.uint32(32).int32(message.penalty);
40
+ }
41
+ if (message.r_pif_principal !== 0) {
42
+ writer.uint32(40).int32(message.r_pif_principal);
43
+ }
44
+ if (message.r_pif_interest !== 0) {
45
+ writer.uint32(48).int32(message.r_pif_interest);
46
+ }
47
+ if (message.r_pif_penalty !== 0) {
48
+ writer.uint32(56).int32(message.r_pif_penalty);
49
+ }
50
+ if (message.amount !== 0) {
51
+ writer.uint32(64).int32(message.amount);
31
52
  }
32
53
  return writer;
33
54
  },
@@ -48,19 +69,43 @@ exports.updateInstallmentsRequest = {
48
69
  if (tag !== 16) {
49
70
  break;
50
71
  }
51
- message.r_principal = reader.int32();
72
+ message.principal = reader.int32();
52
73
  continue;
53
74
  case 3:
54
75
  if (tag !== 24) {
55
76
  break;
56
77
  }
57
- message.r_interest = reader.int32();
78
+ message.interest = reader.int32();
58
79
  continue;
59
80
  case 4:
60
81
  if (tag !== 32) {
61
82
  break;
62
83
  }
63
- message.r_penalty = reader.int32();
84
+ message.penalty = reader.int32();
85
+ continue;
86
+ case 5:
87
+ if (tag !== 40) {
88
+ break;
89
+ }
90
+ message.r_pif_principal = reader.int32();
91
+ continue;
92
+ case 6:
93
+ if (tag !== 48) {
94
+ break;
95
+ }
96
+ message.r_pif_interest = reader.int32();
97
+ continue;
98
+ case 7:
99
+ if (tag !== 56) {
100
+ break;
101
+ }
102
+ message.r_pif_penalty = reader.int32();
103
+ continue;
104
+ case 8:
105
+ if (tag !== 64) {
106
+ break;
107
+ }
108
+ message.amount = reader.int32();
64
109
  continue;
65
110
  }
66
111
  if ((tag & 7) === 4 || tag === 0) {
@@ -73,9 +118,13 @@ exports.updateInstallmentsRequest = {
73
118
  fromJSON(object) {
74
119
  return {
75
120
  installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
76
- r_principal: isSet(object.r_principal) ? globalThis.Number(object.r_principal) : 0,
77
- r_interest: isSet(object.r_interest) ? globalThis.Number(object.r_interest) : 0,
78
- r_penalty: isSet(object.r_penalty) ? globalThis.Number(object.r_penalty) : 0,
121
+ principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
122
+ interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
123
+ penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
124
+ r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
125
+ r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
126
+ r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
127
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
79
128
  };
80
129
  },
81
130
  toJSON(message) {
@@ -83,14 +132,26 @@ exports.updateInstallmentsRequest = {
83
132
  if (message.installment_id !== 0) {
84
133
  obj.installment_id = Math.round(message.installment_id);
85
134
  }
86
- if (message.r_principal !== 0) {
87
- obj.r_principal = Math.round(message.r_principal);
135
+ if (message.principal !== 0) {
136
+ obj.principal = Math.round(message.principal);
137
+ }
138
+ if (message.interest !== 0) {
139
+ obj.interest = Math.round(message.interest);
140
+ }
141
+ if (message.penalty !== 0) {
142
+ obj.penalty = Math.round(message.penalty);
143
+ }
144
+ if (message.r_pif_principal !== 0) {
145
+ obj.r_pif_principal = Math.round(message.r_pif_principal);
146
+ }
147
+ if (message.r_pif_interest !== 0) {
148
+ obj.r_pif_interest = Math.round(message.r_pif_interest);
88
149
  }
89
- if (message.r_interest !== 0) {
90
- obj.r_interest = Math.round(message.r_interest);
150
+ if (message.r_pif_penalty !== 0) {
151
+ obj.r_pif_penalty = Math.round(message.r_pif_penalty);
91
152
  }
92
- if (message.r_penalty !== 0) {
93
- obj.r_penalty = Math.round(message.r_penalty);
153
+ if (message.amount !== 0) {
154
+ obj.amount = Math.round(message.amount);
94
155
  }
95
156
  return obj;
96
157
  },
@@ -100,9 +161,13 @@ exports.updateInstallmentsRequest = {
100
161
  fromPartial(object) {
101
162
  const message = createBaseupdateInstallmentsRequest();
102
163
  message.installment_id = object.installment_id ?? 0;
103
- message.r_principal = object.r_principal ?? 0;
104
- message.r_interest = object.r_interest ?? 0;
105
- message.r_penalty = object.r_penalty ?? 0;
164
+ message.principal = object.principal ?? 0;
165
+ message.interest = object.interest ?? 0;
166
+ message.penalty = object.penalty ?? 0;
167
+ message.r_pif_principal = object.r_pif_principal ?? 0;
168
+ message.r_pif_interest = object.r_pif_interest ?? 0;
169
+ message.r_pif_penalty = object.r_pif_penalty ?? 0;
170
+ message.amount = object.amount ?? 0;
106
171
  return message;
107
172
  },
108
173
  };