@fintekkers/ledger-models 0.4.57 → 0.4.59
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/node/fintekkers/requests/position/query_position_response_pb.d.ts +7 -0
- package/node/fintekkers/requests/position/query_position_response_pb.js +54 -1
- package/node/fintekkers/requests/price/query_price_response_pb.d.ts +6 -0
- package/node/fintekkers/requests/price/query_price_response_pb.js +61 -1
- package/node/wrappers/requests/query-price-truncation.test.d.ts +1 -0
- package/node/wrappers/requests/query-price-truncation.test.js +36 -0
- package/node/wrappers/requests/query-price-truncation.test.js.map +1 -0
- package/node/wrappers/requests/query-price-truncation.test.ts +40 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
8
|
import * as fintekkers_models_position_position_pb from "../../../fintekkers/models/position/position_pb";
|
|
9
9
|
import * as fintekkers_requests_position_query_position_request_pb from "../../../fintekkers/requests/position/query_position_request_pb";
|
|
10
|
+
import * as fintekkers_requests_util_errors_summary_pb from "../../../fintekkers/requests/util/errors/summary_pb";
|
|
10
11
|
import * as fintekkers_models_util_object_type_pb from "../../../fintekkers/models/util/object_type_pb";
|
|
11
12
|
import * as fintekkers_models_util_version_pb from "../../../fintekkers/models/util/version_pb";
|
|
12
13
|
|
|
@@ -30,6 +31,11 @@ export class QueryPositionResponseProto extends jspb.Message {
|
|
|
30
31
|
setPositionsList(value: Array<fintekkers_models_position_position_pb.PositionProto>): QueryPositionResponseProto;
|
|
31
32
|
addPositions(value?: fintekkers_models_position_position_pb.PositionProto, index?: number): fintekkers_models_position_position_pb.PositionProto;
|
|
32
33
|
|
|
34
|
+
hasErrorsOrWarnings(): boolean;
|
|
35
|
+
clearErrorsOrWarnings(): void;
|
|
36
|
+
getErrorsOrWarnings(): fintekkers_requests_util_errors_summary_pb.SummaryProto | undefined;
|
|
37
|
+
setErrorsOrWarnings(value?: fintekkers_requests_util_errors_summary_pb.SummaryProto): QueryPositionResponseProto;
|
|
38
|
+
|
|
33
39
|
serializeBinary(): Uint8Array;
|
|
34
40
|
toObject(includeInstance?: boolean): QueryPositionResponseProto.AsObject;
|
|
35
41
|
static toObject(includeInstance: boolean, msg: QueryPositionResponseProto): QueryPositionResponseProto.AsObject;
|
|
@@ -47,5 +53,6 @@ export namespace QueryPositionResponseProto {
|
|
|
47
53
|
positionRequest?: fintekkers_requests_position_query_position_request_pb.QueryPositionRequestProto.AsObject,
|
|
48
54
|
reportingCurrency: string,
|
|
49
55
|
positionsList: Array<fintekkers_models_position_position_pb.PositionProto.AsObject>,
|
|
56
|
+
errorsOrWarnings?: fintekkers_requests_util_errors_summary_pb.SummaryProto.AsObject,
|
|
50
57
|
}
|
|
51
58
|
}
|
|
@@ -25,6 +25,8 @@ var fintekkers_models_position_position_pb = require('../../../fintekkers/models
|
|
|
25
25
|
goog.object.extend(proto, fintekkers_models_position_position_pb);
|
|
26
26
|
var fintekkers_requests_position_query_position_request_pb = require('../../../fintekkers/requests/position/query_position_request_pb.js');
|
|
27
27
|
goog.object.extend(proto, fintekkers_requests_position_query_position_request_pb);
|
|
28
|
+
var fintekkers_requests_util_errors_summary_pb = require('../../../fintekkers/requests/util/errors/summary_pb.js');
|
|
29
|
+
goog.object.extend(proto, fintekkers_requests_util_errors_summary_pb);
|
|
28
30
|
var fintekkers_models_util_object_type_pb = require('../../../fintekkers/models/util/object_type_pb.js');
|
|
29
31
|
goog.object.extend(proto, fintekkers_models_util_object_type_pb);
|
|
30
32
|
var fintekkers_models_util_version_pb = require('../../../fintekkers/models/util/version_pb.js');
|
|
@@ -95,7 +97,8 @@ proto.fintekkers.requests.position.QueryPositionResponseProto.toObject = functio
|
|
|
95
97
|
positionRequest: (f = msg.getPositionRequest()) && fintekkers_requests_position_query_position_request_pb.QueryPositionRequestProto.toObject(includeInstance, f),
|
|
96
98
|
reportingCurrency: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
97
99
|
positionsList: jspb.Message.toObjectList(msg.getPositionsList(),
|
|
98
|
-
fintekkers_models_position_position_pb.PositionProto.toObject, includeInstance)
|
|
100
|
+
fintekkers_models_position_position_pb.PositionProto.toObject, includeInstance),
|
|
101
|
+
errorsOrWarnings: (f = msg.getErrorsOrWarnings()) && fintekkers_requests_util_errors_summary_pb.SummaryProto.toObject(includeInstance, f)
|
|
99
102
|
};
|
|
100
103
|
|
|
101
104
|
if (includeInstance) {
|
|
@@ -155,6 +158,11 @@ proto.fintekkers.requests.position.QueryPositionResponseProto.deserializeBinaryF
|
|
|
155
158
|
reader.readMessage(value,fintekkers_models_position_position_pb.PositionProto.deserializeBinaryFromReader);
|
|
156
159
|
msg.addPositions(value);
|
|
157
160
|
break;
|
|
161
|
+
case 40:
|
|
162
|
+
var value = new fintekkers_requests_util_errors_summary_pb.SummaryProto;
|
|
163
|
+
reader.readMessage(value,fintekkers_requests_util_errors_summary_pb.SummaryProto.deserializeBinaryFromReader);
|
|
164
|
+
msg.setErrorsOrWarnings(value);
|
|
165
|
+
break;
|
|
158
166
|
default:
|
|
159
167
|
reader.skipField();
|
|
160
168
|
break;
|
|
@@ -222,6 +230,14 @@ proto.fintekkers.requests.position.QueryPositionResponseProto.serializeBinaryToW
|
|
|
222
230
|
fintekkers_models_position_position_pb.PositionProto.serializeBinaryToWriter
|
|
223
231
|
);
|
|
224
232
|
}
|
|
233
|
+
f = message.getErrorsOrWarnings();
|
|
234
|
+
if (f != null) {
|
|
235
|
+
writer.writeMessage(
|
|
236
|
+
40,
|
|
237
|
+
f,
|
|
238
|
+
fintekkers_requests_util_errors_summary_pb.SummaryProto.serializeBinaryToWriter
|
|
239
|
+
);
|
|
240
|
+
}
|
|
225
241
|
};
|
|
226
242
|
|
|
227
243
|
|
|
@@ -373,4 +389,41 @@ proto.fintekkers.requests.position.QueryPositionResponseProto.prototype.clearPos
|
|
|
373
389
|
};
|
|
374
390
|
|
|
375
391
|
|
|
392
|
+
/**
|
|
393
|
+
* optional fintekkers.requests.util.errors.SummaryProto errors_or_warnings = 40;
|
|
394
|
+
* @return {?proto.fintekkers.requests.util.errors.SummaryProto}
|
|
395
|
+
*/
|
|
396
|
+
proto.fintekkers.requests.position.QueryPositionResponseProto.prototype.getErrorsOrWarnings = function() {
|
|
397
|
+
return /** @type{?proto.fintekkers.requests.util.errors.SummaryProto} */ (
|
|
398
|
+
jspb.Message.getWrapperField(this, fintekkers_requests_util_errors_summary_pb.SummaryProto, 40));
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @param {?proto.fintekkers.requests.util.errors.SummaryProto|undefined} value
|
|
404
|
+
* @return {!proto.fintekkers.requests.position.QueryPositionResponseProto} returns this
|
|
405
|
+
*/
|
|
406
|
+
proto.fintekkers.requests.position.QueryPositionResponseProto.prototype.setErrorsOrWarnings = function(value) {
|
|
407
|
+
return jspb.Message.setWrapperField(this, 40, value);
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Clears the message field making it undefined.
|
|
413
|
+
* @return {!proto.fintekkers.requests.position.QueryPositionResponseProto} returns this
|
|
414
|
+
*/
|
|
415
|
+
proto.fintekkers.requests.position.QueryPositionResponseProto.prototype.clearErrorsOrWarnings = function() {
|
|
416
|
+
return this.setErrorsOrWarnings(undefined);
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Returns whether this field is set.
|
|
422
|
+
* @return {boolean}
|
|
423
|
+
*/
|
|
424
|
+
proto.fintekkers.requests.position.QueryPositionResponseProto.prototype.hasErrorsOrWarnings = function() {
|
|
425
|
+
return jspb.Message.getField(this, 40) != null;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
|
|
376
429
|
goog.object.extend(exports, proto.fintekkers.requests.position);
|
|
@@ -35,6 +35,10 @@ export class QueryPriceResponseProto extends jspb.Message {
|
|
|
35
35
|
setErrorsOrWarnings(value?: fintekkers_requests_util_errors_summary_pb.SummaryProto): QueryPriceResponseProto;
|
|
36
36
|
getNextPageToken(): string;
|
|
37
37
|
setNextPageToken(value: string): QueryPriceResponseProto;
|
|
38
|
+
getTruncated(): boolean;
|
|
39
|
+
setTruncated(value: boolean): QueryPriceResponseProto;
|
|
40
|
+
getRowCap(): number;
|
|
41
|
+
setRowCap(value: number): QueryPriceResponseProto;
|
|
38
42
|
|
|
39
43
|
serializeBinary(): Uint8Array;
|
|
40
44
|
toObject(includeInstance?: boolean): QueryPriceResponseProto.AsObject;
|
|
@@ -54,5 +58,7 @@ export namespace QueryPriceResponseProto {
|
|
|
54
58
|
priceResponseList: Array<fintekkers_models_price_price_pb.PriceProto.AsObject>,
|
|
55
59
|
errorsOrWarnings?: fintekkers_requests_util_errors_summary_pb.SummaryProto.AsObject,
|
|
56
60
|
nextPageToken: string,
|
|
61
|
+
truncated: boolean,
|
|
62
|
+
rowCap: number,
|
|
57
63
|
}
|
|
58
64
|
}
|
|
@@ -98,7 +98,9 @@ proto.fintekkers.requests.price.QueryPriceResponseProto.toObject = function(incl
|
|
|
98
98
|
priceResponseList: jspb.Message.toObjectList(msg.getPriceResponseList(),
|
|
99
99
|
fintekkers_models_price_price_pb.PriceProto.toObject, includeInstance),
|
|
100
100
|
errorsOrWarnings: (f = msg.getErrorsOrWarnings()) && fintekkers_requests_util_errors_summary_pb.SummaryProto.toObject(includeInstance, f),
|
|
101
|
-
nextPageToken: jspb.Message.getFieldWithDefault(msg, 50, "")
|
|
101
|
+
nextPageToken: jspb.Message.getFieldWithDefault(msg, 50, ""),
|
|
102
|
+
truncated: jspb.Message.getBooleanFieldWithDefault(msg, 60, false),
|
|
103
|
+
rowCap: jspb.Message.getFieldWithDefault(msg, 61, 0)
|
|
102
104
|
};
|
|
103
105
|
|
|
104
106
|
if (includeInstance) {
|
|
@@ -163,6 +165,14 @@ proto.fintekkers.requests.price.QueryPriceResponseProto.deserializeBinaryFromRea
|
|
|
163
165
|
var value = /** @type {string} */ (reader.readString());
|
|
164
166
|
msg.setNextPageToken(value);
|
|
165
167
|
break;
|
|
168
|
+
case 60:
|
|
169
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
170
|
+
msg.setTruncated(value);
|
|
171
|
+
break;
|
|
172
|
+
case 61:
|
|
173
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
174
|
+
msg.setRowCap(value);
|
|
175
|
+
break;
|
|
166
176
|
default:
|
|
167
177
|
reader.skipField();
|
|
168
178
|
break;
|
|
@@ -238,6 +248,20 @@ proto.fintekkers.requests.price.QueryPriceResponseProto.serializeBinaryToWriter
|
|
|
238
248
|
f
|
|
239
249
|
);
|
|
240
250
|
}
|
|
251
|
+
f = message.getTruncated();
|
|
252
|
+
if (f) {
|
|
253
|
+
writer.writeBool(
|
|
254
|
+
60,
|
|
255
|
+
f
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
f = message.getRowCap();
|
|
259
|
+
if (f !== 0) {
|
|
260
|
+
writer.writeInt32(
|
|
261
|
+
61,
|
|
262
|
+
f
|
|
263
|
+
);
|
|
264
|
+
}
|
|
241
265
|
};
|
|
242
266
|
|
|
243
267
|
|
|
@@ -426,4 +450,40 @@ proto.fintekkers.requests.price.QueryPriceResponseProto.prototype.setNextPageTok
|
|
|
426
450
|
};
|
|
427
451
|
|
|
428
452
|
|
|
453
|
+
/**
|
|
454
|
+
* optional bool truncated = 60;
|
|
455
|
+
* @return {boolean}
|
|
456
|
+
*/
|
|
457
|
+
proto.fintekkers.requests.price.QueryPriceResponseProto.prototype.getTruncated = function() {
|
|
458
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 60, false));
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @param {boolean} value
|
|
464
|
+
* @return {!proto.fintekkers.requests.price.QueryPriceResponseProto} returns this
|
|
465
|
+
*/
|
|
466
|
+
proto.fintekkers.requests.price.QueryPriceResponseProto.prototype.setTruncated = function(value) {
|
|
467
|
+
return jspb.Message.setProto3BooleanField(this, 60, value);
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* optional int32 row_cap = 61;
|
|
473
|
+
* @return {number}
|
|
474
|
+
*/
|
|
475
|
+
proto.fintekkers.requests.price.QueryPriceResponseProto.prototype.getRowCap = function() {
|
|
476
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 61, 0));
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @param {number} value
|
|
482
|
+
* @return {!proto.fintekkers.requests.price.QueryPriceResponseProto} returns this
|
|
483
|
+
*/
|
|
484
|
+
proto.fintekkers.requests.price.QueryPriceResponseProto.prototype.setRowCap = function(value) {
|
|
485
|
+
return jspb.Message.setProto3IntField(this, 61, value);
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
|
|
429
489
|
goog.object.extend(exports, proto.fintekkers.requests.price);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Wire tests for QueryPriceResponseProto.truncated / row_cap.
|
|
4
|
+
// See docs/adr/query_price_truncation.md.
|
|
5
|
+
const price_pb_1 = require("../../fintekkers/models/price/price_pb");
|
|
6
|
+
const query_price_response_pb_1 = require("../../fintekkers/requests/price/query_price_response_pb");
|
|
7
|
+
function pagedResponse() {
|
|
8
|
+
const response = new query_price_response_pb_1.QueryPriceResponseProto();
|
|
9
|
+
response.addPriceResponse(new price_pb_1.PriceProto().setIsLink(true));
|
|
10
|
+
response.setNextPageToken('opaque-def');
|
|
11
|
+
return response;
|
|
12
|
+
}
|
|
13
|
+
describe('QueryPriceResponseProto truncation fields', () => {
|
|
14
|
+
test('truncated and row_cap round-trip with existing fields', () => {
|
|
15
|
+
const response = pagedResponse();
|
|
16
|
+
response.setTruncated(true);
|
|
17
|
+
response.setRowCap(1000);
|
|
18
|
+
const parsed = query_price_response_pb_1.QueryPriceResponseProto.deserializeBinary(response.serializeBinary());
|
|
19
|
+
expect(parsed.getTruncated()).toBe(true);
|
|
20
|
+
expect(parsed.getRowCap()).toBe(1000);
|
|
21
|
+
expect(parsed.getNextPageToken()).toBe('opaque-def');
|
|
22
|
+
expect(parsed.getPriceResponseList()).toHaveLength(1);
|
|
23
|
+
expect(parsed.getPriceResponseList()[0].getIsLink()).toBe(true);
|
|
24
|
+
});
|
|
25
|
+
test('response without the new fields reads false / 0', () => {
|
|
26
|
+
const old = pagedResponse();
|
|
27
|
+
const explicit = pagedResponse();
|
|
28
|
+
explicit.setTruncated(false);
|
|
29
|
+
explicit.setRowCap(0);
|
|
30
|
+
const parsed = query_price_response_pb_1.QueryPriceResponseProto.deserializeBinary(old.serializeBinary());
|
|
31
|
+
expect(parsed.getTruncated()).toBe(false);
|
|
32
|
+
expect(parsed.getRowCap()).toBe(0);
|
|
33
|
+
expect(Array.from(explicit.serializeBinary())).toEqual(Array.from(old.serializeBinary()));
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=query-price-truncation.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-price-truncation.test.js","sourceRoot":"","sources":["query-price-truncation.test.ts"],"names":[],"mappings":";;AAAA,8DAA8D;AAC9D,0CAA0C;AAC1C,qEAAoE;AACpE,qGAAkG;AAElG,SAAS,aAAa;IACpB,MAAM,QAAQ,GAAG,IAAI,iDAAuB,EAAE,CAAC;IAC/C,QAAQ,CAAC,gBAAgB,CAAC,IAAI,qBAAU,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACxC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,QAAQ,CAAC,2CAA2C,EAAE,GAAG,EAAE;IACzD,IAAI,CAAC,uDAAuD,EAAE,GAAG,EAAE;QACjE,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC;QACjC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC5B,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAEzB,MAAM,MAAM,GAAG,iDAAuB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC;QAErF,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iDAAiD,EAAE,GAAG,EAAE;QAC3D,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC;QACjC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC7B,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QAEtB,MAAM,MAAM,GAAG,iDAAuB,CAAC,iBAAiB,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;QAEhF,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;IAC5F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Wire tests for QueryPriceResponseProto.truncated / row_cap.
|
|
2
|
+
// See docs/adr/query_price_truncation.md.
|
|
3
|
+
import { PriceProto } from '../../fintekkers/models/price/price_pb';
|
|
4
|
+
import { QueryPriceResponseProto } from '../../fintekkers/requests/price/query_price_response_pb';
|
|
5
|
+
|
|
6
|
+
function pagedResponse(): QueryPriceResponseProto {
|
|
7
|
+
const response = new QueryPriceResponseProto();
|
|
8
|
+
response.addPriceResponse(new PriceProto().setIsLink(true));
|
|
9
|
+
response.setNextPageToken('opaque-def');
|
|
10
|
+
return response;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
describe('QueryPriceResponseProto truncation fields', () => {
|
|
14
|
+
test('truncated and row_cap round-trip with existing fields', () => {
|
|
15
|
+
const response = pagedResponse();
|
|
16
|
+
response.setTruncated(true);
|
|
17
|
+
response.setRowCap(1000);
|
|
18
|
+
|
|
19
|
+
const parsed = QueryPriceResponseProto.deserializeBinary(response.serializeBinary());
|
|
20
|
+
|
|
21
|
+
expect(parsed.getTruncated()).toBe(true);
|
|
22
|
+
expect(parsed.getRowCap()).toBe(1000);
|
|
23
|
+
expect(parsed.getNextPageToken()).toBe('opaque-def');
|
|
24
|
+
expect(parsed.getPriceResponseList()).toHaveLength(1);
|
|
25
|
+
expect(parsed.getPriceResponseList()[0].getIsLink()).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('response without the new fields reads false / 0', () => {
|
|
29
|
+
const old = pagedResponse();
|
|
30
|
+
const explicit = pagedResponse();
|
|
31
|
+
explicit.setTruncated(false);
|
|
32
|
+
explicit.setRowCap(0);
|
|
33
|
+
|
|
34
|
+
const parsed = QueryPriceResponseProto.deserializeBinary(old.serializeBinary());
|
|
35
|
+
|
|
36
|
+
expect(parsed.getTruncated()).toBe(false);
|
|
37
|
+
expect(parsed.getRowCap()).toBe(0);
|
|
38
|
+
expect(Array.from(explicit.serializeBinary())).toEqual(Array.from(old.serializeBinary()));
|
|
39
|
+
});
|
|
40
|
+
});
|