@stashfin/grpc 1.2.757 → 1.2.758
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
|
@@ -160,7 +160,7 @@ exports.getEarningResponse = {
|
|
|
160
160
|
},
|
|
161
161
|
};
|
|
162
162
|
function createBaseData() {
|
|
163
|
-
return { locked: 0, unlocked: 0, balance: 0 };
|
|
163
|
+
return { locked: 0, unlocked: 0, balance: 0, weekly_earning_percentage: 0 };
|
|
164
164
|
}
|
|
165
165
|
exports.Data = {
|
|
166
166
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -173,6 +173,9 @@ exports.Data = {
|
|
|
173
173
|
if (message.balance !== 0) {
|
|
174
174
|
writer.uint32(29).float(message.balance);
|
|
175
175
|
}
|
|
176
|
+
if (message.weekly_earning_percentage !== 0) {
|
|
177
|
+
writer.uint32(37).float(message.weekly_earning_percentage);
|
|
178
|
+
}
|
|
176
179
|
return writer;
|
|
177
180
|
},
|
|
178
181
|
decode(input, length) {
|
|
@@ -200,6 +203,12 @@ exports.Data = {
|
|
|
200
203
|
}
|
|
201
204
|
message.balance = reader.float();
|
|
202
205
|
continue;
|
|
206
|
+
case 4:
|
|
207
|
+
if (tag !== 37) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.weekly_earning_percentage = reader.float();
|
|
211
|
+
continue;
|
|
203
212
|
}
|
|
204
213
|
if ((tag & 7) === 4 || tag === 0) {
|
|
205
214
|
break;
|
|
@@ -213,6 +222,9 @@ exports.Data = {
|
|
|
213
222
|
locked: isSet(object.locked) ? globalThis.Number(object.locked) : 0,
|
|
214
223
|
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : 0,
|
|
215
224
|
balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
|
|
225
|
+
weekly_earning_percentage: isSet(object.weekly_earning_percentage)
|
|
226
|
+
? globalThis.Number(object.weekly_earning_percentage)
|
|
227
|
+
: 0,
|
|
216
228
|
};
|
|
217
229
|
},
|
|
218
230
|
toJSON(message) {
|
|
@@ -226,6 +238,9 @@ exports.Data = {
|
|
|
226
238
|
if (message.balance !== 0) {
|
|
227
239
|
obj.balance = message.balance;
|
|
228
240
|
}
|
|
241
|
+
if (message.weekly_earning_percentage !== 0) {
|
|
242
|
+
obj.weekly_earning_percentage = message.weekly_earning_percentage;
|
|
243
|
+
}
|
|
229
244
|
return obj;
|
|
230
245
|
},
|
|
231
246
|
create(base) {
|
|
@@ -236,6 +251,7 @@ exports.Data = {
|
|
|
236
251
|
message.locked = object.locked ?? 0;
|
|
237
252
|
message.unlocked = object.unlocked ?? 0;
|
|
238
253
|
message.balance = object.balance ?? 0;
|
|
254
|
+
message.weekly_earning_percentage = object.weekly_earning_percentage ?? 0;
|
|
239
255
|
return message;
|
|
240
256
|
},
|
|
241
257
|
};
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.getschistory";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, page: "", limit: "", filter_by: undefined };
|
|
17
|
+
return { customer_id: 0, page: "", limit: "", filter_by: undefined, product: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -30,6 +30,9 @@ exports.request = {
|
|
|
30
30
|
if (message.filter_by !== undefined) {
|
|
31
31
|
writer.uint32(34).string(message.filter_by);
|
|
32
32
|
}
|
|
33
|
+
if (message.product !== undefined) {
|
|
34
|
+
writer.uint32(42).string(message.product);
|
|
35
|
+
}
|
|
33
36
|
return writer;
|
|
34
37
|
},
|
|
35
38
|
decode(input, length) {
|
|
@@ -63,6 +66,12 @@ exports.request = {
|
|
|
63
66
|
}
|
|
64
67
|
message.filter_by = reader.string();
|
|
65
68
|
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.product = reader.string();
|
|
74
|
+
continue;
|
|
66
75
|
}
|
|
67
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
68
77
|
break;
|
|
@@ -77,6 +86,7 @@ exports.request = {
|
|
|
77
86
|
page: isSet(object.page) ? globalThis.String(object.page) : "",
|
|
78
87
|
limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
|
|
79
88
|
filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : undefined,
|
|
89
|
+
product: isSet(object.product) ? globalThis.String(object.product) : undefined,
|
|
80
90
|
};
|
|
81
91
|
},
|
|
82
92
|
toJSON(message) {
|
|
@@ -93,6 +103,9 @@ exports.request = {
|
|
|
93
103
|
if (message.filter_by !== undefined) {
|
|
94
104
|
obj.filter_by = message.filter_by;
|
|
95
105
|
}
|
|
106
|
+
if (message.product !== undefined) {
|
|
107
|
+
obj.product = message.product;
|
|
108
|
+
}
|
|
96
109
|
return obj;
|
|
97
110
|
},
|
|
98
111
|
create(base) {
|
|
@@ -104,6 +117,7 @@ exports.request = {
|
|
|
104
117
|
message.page = object.page ?? "";
|
|
105
118
|
message.limit = object.limit ?? "";
|
|
106
119
|
message.filter_by = object.filter_by ?? undefined;
|
|
120
|
+
message.product = object.product ?? undefined;
|
|
107
121
|
return message;
|
|
108
122
|
},
|
|
109
123
|
};
|