@stashfin/grpc 1.2.146 → 1.2.147

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.146",
3
+ "version": "1.2.147",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,6 +5,8 @@ export interface getLimitRequest {
5
5
  export interface getLimitResponse {
6
6
  basic_limit: number;
7
7
  higher_limit: number;
8
+ basic_next_step: number;
9
+ higher_next_step: number;
8
10
  }
9
11
  export declare const getLimitRequest: {
10
12
  encode(_: getLimitRequest, writer?: _m0.Writer): _m0.Writer;
@@ -50,7 +50,7 @@ exports.getLimitRequest = {
50
50
  },
51
51
  };
52
52
  function createBasegetLimitResponse() {
53
- return { basic_limit: 0, higher_limit: 0 };
53
+ return { basic_limit: 0, higher_limit: 0, basic_next_step: 0, higher_next_step: 0 };
54
54
  }
55
55
  exports.getLimitResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -60,6 +60,12 @@ exports.getLimitResponse = {
60
60
  if (message.higher_limit !== 0) {
61
61
  writer.uint32(16).int32(message.higher_limit);
62
62
  }
63
+ if (message.basic_next_step !== 0) {
64
+ writer.uint32(24).int32(message.basic_next_step);
65
+ }
66
+ if (message.higher_next_step !== 0) {
67
+ writer.uint32(32).int32(message.higher_next_step);
68
+ }
63
69
  return writer;
64
70
  },
65
71
  decode(input, length) {
@@ -81,6 +87,18 @@ exports.getLimitResponse = {
81
87
  }
82
88
  message.higher_limit = reader.int32();
83
89
  continue;
90
+ case 3:
91
+ if (tag !== 24) {
92
+ break;
93
+ }
94
+ message.basic_next_step = reader.int32();
95
+ continue;
96
+ case 4:
97
+ if (tag !== 32) {
98
+ break;
99
+ }
100
+ message.higher_next_step = reader.int32();
101
+ continue;
84
102
  }
85
103
  if ((tag & 7) === 4 || tag === 0) {
86
104
  break;
@@ -93,6 +111,8 @@ exports.getLimitResponse = {
93
111
  return {
94
112
  basic_limit: isSet(object.basic_limit) ? globalThis.Number(object.basic_limit) : 0,
95
113
  higher_limit: isSet(object.higher_limit) ? globalThis.Number(object.higher_limit) : 0,
114
+ basic_next_step: isSet(object.basic_next_step) ? globalThis.Number(object.basic_next_step) : 0,
115
+ higher_next_step: isSet(object.higher_next_step) ? globalThis.Number(object.higher_next_step) : 0,
96
116
  };
97
117
  },
98
118
  toJSON(message) {
@@ -103,6 +123,12 @@ exports.getLimitResponse = {
103
123
  if (message.higher_limit !== 0) {
104
124
  obj.higher_limit = Math.round(message.higher_limit);
105
125
  }
126
+ if (message.basic_next_step !== 0) {
127
+ obj.basic_next_step = Math.round(message.basic_next_step);
128
+ }
129
+ if (message.higher_next_step !== 0) {
130
+ obj.higher_next_step = Math.round(message.higher_next_step);
131
+ }
106
132
  return obj;
107
133
  },
108
134
  create(base) {
@@ -112,6 +138,8 @@ exports.getLimitResponse = {
112
138
  const message = createBasegetLimitResponse();
113
139
  message.basic_limit = object.basic_limit ?? 0;
114
140
  message.higher_limit = object.higher_limit ?? 0;
141
+ message.basic_next_step = object.basic_next_step ?? 0;
142
+ message.higher_next_step = object.higher_next_step ?? 0;
115
143
  return message;
116
144
  },
117
145
  };