@fintekkers/ledger-models 0.1.73 → 0.1.76
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/models/util/api/api_key_grpc_pb.js +1 -0
- package/node/fintekkers/models/util/api/api_key_pb.d.ts +36 -0
- package/node/fintekkers/models/util/api/api_key_pb.js +266 -0
- package/node/wrappers/models/position/position.js +21 -14
- package/node/wrappers/models/position/position.js.map +1 -1
- package/node/wrappers/models/position/position.test.js +79 -10
- package/node/wrappers/models/position/position.test.js.map +1 -1
- package/node/wrappers/models/position/position.test.ts +86 -10
- package/node/wrappers/models/position/position.ts +26 -27
- package/node/wrappers/models/utils/datetime.js +0 -19
- package/node/wrappers/models/utils/datetime.js.map +1 -1
- package/node/wrappers/models/utils/datetime.test.js +48 -0
- package/node/wrappers/models/utils/datetime.test.js.map +1 -0
- package/node/wrappers/models/utils/datetime.test.ts +8 -0
- package/node/wrappers/models/utils/datetime.ts +0 -24
- package/node/wrappers/models/utils/protoEnum.js +5 -1
- package/node/wrappers/models/utils/protoEnum.js.map +1 -1
- package/node/wrappers/models/utils/protoEnum.test.js +4 -0
- package/node/wrappers/models/utils/protoEnum.test.js.map +1 -1
- package/node/wrappers/models/utils/protoEnum.test.ts +5 -0
- package/node/wrappers/models/utils/protoEnum.ts +7 -2
- package/node/wrappers/models/utils/serialization.js.map +1 -1
- package/node/wrappers/models/utils/serialization.ts +2 -7
- package/node/wrappers/requests/position/QueryPositionRequest.js +44 -0
- package/node/wrappers/requests/position/QueryPositionRequest.js.map +1 -0
- package/node/wrappers/requests/position/QueryPositionRequest.ts +64 -0
- package/node/wrappers/services/portfolio-service/portfolio.test.js +1 -1
- package/node/wrappers/services/portfolio-service/portfolio.test.js.map +1 -1
- package/node/wrappers/services/portfolio-service/portfolio.test.ts +1 -1
- package/node/wrappers/services/position-service/PositionService.js +3 -2
- package/node/wrappers/services/position-service/PositionService.js.map +1 -1
- package/node/wrappers/services/position-service/PositionService.ts +3 -1
- package/node/wrappers/services/position-service/position.test.js +2 -9
- package/node/wrappers/services/position-service/position.test.js.map +1 -1
- package/node/wrappers/services/position-service/position.test.ts +2 -10
- package/package.json +1 -1
- package/tsconfig.json +27 -25
- package/web/fintekkers/models/util/api/api_key_pb.d.ts +34 -0
- package/web/fintekkers/models/util/api/api_key_pb.js +260 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// package: fintekkers.models.util.api
|
|
2
|
+
// file: fintekkers/models/util/api/api_key.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class API_Key extends jspb.Message {
|
|
10
|
+
getObjectClass(): string;
|
|
11
|
+
setObjectClass(value: string): API_Key;
|
|
12
|
+
getVersion(): string;
|
|
13
|
+
setVersion(value: string): API_Key;
|
|
14
|
+
getIdentity(): string;
|
|
15
|
+
setIdentity(value: string): API_Key;
|
|
16
|
+
getKey(): string;
|
|
17
|
+
setKey(value: string): API_Key;
|
|
18
|
+
|
|
19
|
+
serializeBinary(): Uint8Array;
|
|
20
|
+
toObject(includeInstance?: boolean): API_Key.AsObject;
|
|
21
|
+
static toObject(includeInstance: boolean, msg: API_Key): API_Key.AsObject;
|
|
22
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
23
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
24
|
+
static serializeBinaryToWriter(message: API_Key, writer: jspb.BinaryWriter): void;
|
|
25
|
+
static deserializeBinary(bytes: Uint8Array): API_Key;
|
|
26
|
+
static deserializeBinaryFromReader(message: API_Key, reader: jspb.BinaryReader): API_Key;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace API_Key {
|
|
30
|
+
export type AsObject = {
|
|
31
|
+
objectClass: string,
|
|
32
|
+
version: string,
|
|
33
|
+
identity: string,
|
|
34
|
+
key: string,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
// source: fintekkers/models/util/api/api_key.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.fintekkers.models.util.api.API_Key', null, global);
|
|
25
|
+
/**
|
|
26
|
+
* Generated by JsPbCodeGenerator.
|
|
27
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
28
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
29
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
30
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
31
|
+
* valid.
|
|
32
|
+
* @extends {jspb.Message}
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
proto.fintekkers.models.util.api.API_Key = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.fintekkers.models.util.api.API_Key, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
proto.fintekkers.models.util.api.API_Key.displayName = 'proto.fintekkers.models.util.api.API_Key';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50
|
+
/**
|
|
51
|
+
* Creates an object representation of this proto.
|
|
52
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53
|
+
* Optional fields that are not set will be set to undefined.
|
|
54
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55
|
+
* For the list of reserved names please see:
|
|
56
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58
|
+
* JSPB instance for transitional soy proto support:
|
|
59
|
+
* http://goto/soy-param-migration
|
|
60
|
+
* @return {!Object}
|
|
61
|
+
*/
|
|
62
|
+
proto.fintekkers.models.util.api.API_Key.prototype.toObject = function(opt_includeInstance) {
|
|
63
|
+
return proto.fintekkers.models.util.api.API_Key.toObject(opt_includeInstance, this);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Static version of the {@see toObject} method.
|
|
69
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70
|
+
* the JSPB instance for transitional soy proto support:
|
|
71
|
+
* http://goto/soy-param-migration
|
|
72
|
+
* @param {!proto.fintekkers.models.util.api.API_Key} msg The msg instance to transform.
|
|
73
|
+
* @return {!Object}
|
|
74
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75
|
+
*/
|
|
76
|
+
proto.fintekkers.models.util.api.API_Key.toObject = function(includeInstance, msg) {
|
|
77
|
+
var f, obj = {
|
|
78
|
+
objectClass: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79
|
+
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
80
|
+
identity: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
81
|
+
key: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
if (includeInstance) {
|
|
85
|
+
obj.$jspbMessageInstance = msg;
|
|
86
|
+
}
|
|
87
|
+
return obj;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Deserializes binary data (in protobuf wire format).
|
|
94
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
95
|
+
* @return {!proto.fintekkers.models.util.api.API_Key}
|
|
96
|
+
*/
|
|
97
|
+
proto.fintekkers.models.util.api.API_Key.deserializeBinary = function(bytes) {
|
|
98
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
99
|
+
var msg = new proto.fintekkers.models.util.api.API_Key;
|
|
100
|
+
return proto.fintekkers.models.util.api.API_Key.deserializeBinaryFromReader(msg, reader);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
106
|
+
* given reader into the given message object.
|
|
107
|
+
* @param {!proto.fintekkers.models.util.api.API_Key} msg The message object to deserialize into.
|
|
108
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
109
|
+
* @return {!proto.fintekkers.models.util.api.API_Key}
|
|
110
|
+
*/
|
|
111
|
+
proto.fintekkers.models.util.api.API_Key.deserializeBinaryFromReader = function(msg, reader) {
|
|
112
|
+
while (reader.nextField()) {
|
|
113
|
+
if (reader.isEndGroup()) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
var field = reader.getFieldNumber();
|
|
117
|
+
switch (field) {
|
|
118
|
+
case 1:
|
|
119
|
+
var value = /** @type {string} */ (reader.readString());
|
|
120
|
+
msg.setObjectClass(value);
|
|
121
|
+
break;
|
|
122
|
+
case 2:
|
|
123
|
+
var value = /** @type {string} */ (reader.readString());
|
|
124
|
+
msg.setVersion(value);
|
|
125
|
+
break;
|
|
126
|
+
case 3:
|
|
127
|
+
var value = /** @type {string} */ (reader.readString());
|
|
128
|
+
msg.setIdentity(value);
|
|
129
|
+
break;
|
|
130
|
+
case 4:
|
|
131
|
+
var value = /** @type {string} */ (reader.readString());
|
|
132
|
+
msg.setKey(value);
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
reader.skipField();
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return msg;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
145
|
+
* @return {!Uint8Array}
|
|
146
|
+
*/
|
|
147
|
+
proto.fintekkers.models.util.api.API_Key.prototype.serializeBinary = function() {
|
|
148
|
+
var writer = new jspb.BinaryWriter();
|
|
149
|
+
proto.fintekkers.models.util.api.API_Key.serializeBinaryToWriter(this, writer);
|
|
150
|
+
return writer.getResultBuffer();
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
156
|
+
* format), writing to the given BinaryWriter.
|
|
157
|
+
* @param {!proto.fintekkers.models.util.api.API_Key} message
|
|
158
|
+
* @param {!jspb.BinaryWriter} writer
|
|
159
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
160
|
+
*/
|
|
161
|
+
proto.fintekkers.models.util.api.API_Key.serializeBinaryToWriter = function(message, writer) {
|
|
162
|
+
var f = undefined;
|
|
163
|
+
f = message.getObjectClass();
|
|
164
|
+
if (f.length > 0) {
|
|
165
|
+
writer.writeString(
|
|
166
|
+
1,
|
|
167
|
+
f
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
f = message.getVersion();
|
|
171
|
+
if (f.length > 0) {
|
|
172
|
+
writer.writeString(
|
|
173
|
+
2,
|
|
174
|
+
f
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
f = message.getIdentity();
|
|
178
|
+
if (f.length > 0) {
|
|
179
|
+
writer.writeString(
|
|
180
|
+
3,
|
|
181
|
+
f
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
f = message.getKey();
|
|
185
|
+
if (f.length > 0) {
|
|
186
|
+
writer.writeString(
|
|
187
|
+
4,
|
|
188
|
+
f
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* optional string object_class = 1;
|
|
196
|
+
* @return {string}
|
|
197
|
+
*/
|
|
198
|
+
proto.fintekkers.models.util.api.API_Key.prototype.getObjectClass = function() {
|
|
199
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @param {string} value
|
|
205
|
+
* @return {!proto.fintekkers.models.util.api.API_Key} returns this
|
|
206
|
+
*/
|
|
207
|
+
proto.fintekkers.models.util.api.API_Key.prototype.setObjectClass = function(value) {
|
|
208
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* optional string version = 2;
|
|
214
|
+
* @return {string}
|
|
215
|
+
*/
|
|
216
|
+
proto.fintekkers.models.util.api.API_Key.prototype.getVersion = function() {
|
|
217
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} value
|
|
223
|
+
* @return {!proto.fintekkers.models.util.api.API_Key} returns this
|
|
224
|
+
*/
|
|
225
|
+
proto.fintekkers.models.util.api.API_Key.prototype.setVersion = function(value) {
|
|
226
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* optional string identity = 3;
|
|
232
|
+
* @return {string}
|
|
233
|
+
*/
|
|
234
|
+
proto.fintekkers.models.util.api.API_Key.prototype.getIdentity = function() {
|
|
235
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @param {string} value
|
|
241
|
+
* @return {!proto.fintekkers.models.util.api.API_Key} returns this
|
|
242
|
+
*/
|
|
243
|
+
proto.fintekkers.models.util.api.API_Key.prototype.setIdentity = function(value) {
|
|
244
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* optional string key = 4;
|
|
250
|
+
* @return {string}
|
|
251
|
+
*/
|
|
252
|
+
proto.fintekkers.models.util.api.API_Key.prototype.getKey = function() {
|
|
253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @param {string} value
|
|
259
|
+
* @return {!proto.fintekkers.models.util.api.API_Key} returns this
|
|
260
|
+
*/
|
|
261
|
+
proto.fintekkers.models.util.api.API_Key.prototype.setKey = function(value) {
|
|
262
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
goog.object.extend(exports, proto.fintekkers.models.util.api);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Note: Some classes and functions have been omitted or simplified due to lack of context.
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.Position = void 0;
|
|
4
|
+
//Models
|
|
5
5
|
var field_pb_1 = require("../../../fintekkers/models/position/field_pb");
|
|
6
|
+
var position_pb_1 = require("../../../fintekkers/models/position/position_pb");
|
|
6
7
|
var position_util_pb_1 = require("../../../fintekkers/models/position/position_util_pb");
|
|
7
8
|
var portfolio_1 = require("../portfolio/portfolio");
|
|
8
9
|
var security_1 = require("../security/security");
|
|
@@ -13,10 +14,26 @@ var identifier_pb_1 = require("../../../fintekkers/models/security/identifier/id
|
|
|
13
14
|
var measure_pb_1 = require("../../../fintekkers/models/position/measure_pb");
|
|
14
15
|
var serialization_1 = require("../utils/serialization");
|
|
15
16
|
var wrappers_pb_1 = require("google-protobuf/google/protobuf/wrappers_pb");
|
|
17
|
+
var protoEnum_1 = require("../utils/protoEnum");
|
|
18
|
+
var field_1 = require("./field");
|
|
16
19
|
var Position = /** @class */ (function () {
|
|
17
20
|
function Position(positionProto) {
|
|
18
21
|
this.proto = positionProto;
|
|
19
22
|
}
|
|
23
|
+
/*** */
|
|
24
|
+
Position.prototype.toJSON = function () {
|
|
25
|
+
return {
|
|
26
|
+
proto: this.proto.serializeBinary(), // Serialize Age object to binary buffer
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Experimental impelementaiton
|
|
31
|
+
* @param binary An array which is the raw binary of the proto object
|
|
32
|
+
* @returns A Position object with the deserialized binary inside it
|
|
33
|
+
*/
|
|
34
|
+
Position.fromJSON = function (json) {
|
|
35
|
+
return new Position(position_pb_1.PositionProto.deserializeBinary(json['proto']));
|
|
36
|
+
};
|
|
20
37
|
Position.prototype.getFieldValue = function (field) {
|
|
21
38
|
return this.getField(new position_util_pb_1.FieldMapEntry().setField(field));
|
|
22
39
|
};
|
|
@@ -28,9 +45,9 @@ var Position = /** @class */ (function () {
|
|
|
28
45
|
return tmpField.getStringValue();
|
|
29
46
|
}
|
|
30
47
|
if (tmpField.getEnumValue() > 0) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
48
|
+
var fieldName = new field_1.Field(fieldToGet.getField()).getName();
|
|
49
|
+
var proto = protoEnum_1.ProtoEnum.fromEnumName(fieldName, tmpField.getEnumValue());
|
|
50
|
+
return proto;
|
|
34
51
|
}
|
|
35
52
|
var unpackedValue = Position.unpackField(tmpField);
|
|
36
53
|
if (field_pb_1.FieldProto.SECURITY == fieldToGet.getField()) {
|
|
@@ -81,16 +98,6 @@ var Position = /** @class */ (function () {
|
|
|
81
98
|
}
|
|
82
99
|
return output;
|
|
83
100
|
};
|
|
84
|
-
// private static wrapStringToAny(myString: string): Any {
|
|
85
|
-
// const myAny = new Any();
|
|
86
|
-
// myAny.pack(wrappers.StringValue.create({ value: myString }));
|
|
87
|
-
// return myAny;
|
|
88
|
-
// }
|
|
89
|
-
// private static packField(fieldToPack: any): Any {
|
|
90
|
-
// const myAny = new Any();
|
|
91
|
-
// myAny.pack(fieldToPack);
|
|
92
|
-
// return myAny;
|
|
93
|
-
// }
|
|
94
101
|
Position.unpackField = function (fieldToUnpack) {
|
|
95
102
|
switch (fieldToUnpack.getField()) {
|
|
96
103
|
case field_pb_1.FieldProto.PORTFOLIO_ID:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.js","sourceRoot":"","sources":["position.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"position.js","sourceRoot":"","sources":["position.ts"],"names":[],"mappings":";;;AAAA,QAAQ;AACR,yEAA0E;AAC1E,+EAAgF;AAChF,yFAAsG;AACtG,oDAA+C;AAC/C,iDAA4C;AAC5C,mEAAoE;AACpE,yFAAyF;AACzF,+EAA+E;AAC/E,8FAA+F;AAC/F,6EAA8E;AAE9E,wDAAgE;AAChE,2EAA0E;AAC1E,gDAA+C;AAC/C,iCAAgC;AAIhC;IAGE,kBAAY,aAA4B;QACtC,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC;IAC7B,CAAC;IAED,OAAO;IACP,yBAAM,GAAN;QACE,OAAO;YACL,KAAK,EAA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__generator(this, function (_a) {
|
|
54
54
|
switch (_a.label) {
|
|
55
|
-
case 0: return [4 /*yield*/,
|
|
55
|
+
case 0: return [4 /*yield*/, testEnumSerialization()];
|
|
56
56
|
case 1:
|
|
57
|
+
isTrue = _a.sent();
|
|
58
|
+
expect(isTrue).toBe(true);
|
|
59
|
+
return [4 /*yield*/, testSerialization()];
|
|
60
|
+
case 2:
|
|
61
|
+
isTrue = _a.sent();
|
|
62
|
+
expect(isTrue).toBe(true);
|
|
63
|
+
return [4 /*yield*/, testJsonSerialization()];
|
|
64
|
+
case 3:
|
|
57
65
|
isTrue = _a.sent();
|
|
58
66
|
expect(isTrue).toBe(true);
|
|
59
67
|
return [2 /*return*/];
|
|
60
68
|
}
|
|
61
69
|
});
|
|
62
70
|
}); });
|
|
63
|
-
function
|
|
71
|
+
function testEnumSerialization() {
|
|
64
72
|
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
-
var
|
|
73
|
+
var positionProto, measureValue, position, status;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
positionProto = new position_pb_1.PositionProto();
|
|
76
|
+
positionProto.setFieldsList([
|
|
77
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.POSITION_STATUS).setEnumValue(position_status_pb_1.PositionStatusProto.EXECUTED)
|
|
78
|
+
]);
|
|
79
|
+
measureValue = new decimal_value_pb_1.DecimalValueProto().setArbitraryPrecisionValue("1.55");
|
|
80
|
+
positionProto.setMeasuresList([
|
|
81
|
+
new position_util_pb_1.MeasureMapEntry().setMeasure(measure_pb_1.MeasureProto.DIRECTED_QUANTITY).setMeasureDecimalValue(measureValue)
|
|
82
|
+
]);
|
|
83
|
+
position = new position_1.Position(positionProto);
|
|
84
|
+
status = position.getFieldValue(field_pb_1.FieldProto.POSITION_STATUS);
|
|
85
|
+
expect(status.getEnumValueName()).toBe("EXECUTED");
|
|
86
|
+
expect(status.getEnumValue()).toBe(position_status_pb_1.PositionStatusProto.EXECUTED);
|
|
87
|
+
expect(status.getEnumDescriptor()).toBe(position_status_pb_1.PositionStatusProto);
|
|
88
|
+
position.getMeasures().forEach(function (measureMapEntry) {
|
|
89
|
+
measureMapEntry.getMeasure().toString();
|
|
90
|
+
});
|
|
91
|
+
expect(position.getMeasureValue(measure_pb_1.MeasureProto.DIRECTED_QUANTITY)).toBe(1.55);
|
|
92
|
+
return [2 /*return*/, true];
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function testJsonSerialization() {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
98
|
+
var security, portfolio, tradeDate, productType, id, tradeDatePacked, idPacked, positionProto, position, position2, tradeDatePosition;
|
|
66
99
|
return __generator(this, function (_a) {
|
|
67
|
-
fields = [field_pb_1.FieldProto.ID, field_pb_1.FieldProto.TRADE_DATE, field_pb_1.FieldProto.PRODUCT_TYPE, field_pb_1.FieldProto.PORTFOLIO, field_pb_1.FieldProto.SECURITY];
|
|
68
100
|
security = new security_pb_1.SecurityProto().setAssetClass("Test");
|
|
69
101
|
portfolio = new portfolio_pb_1.PortfolioProto().setPortfolioName("Test portfolio");
|
|
70
102
|
tradeDate = date_1.LocalDate.today().toDate();
|
|
71
103
|
productType = "Test product type";
|
|
72
104
|
id = new uuid_1.UUID(uuid_1.UUID.random().toBytes());
|
|
73
|
-
measure = measure_pb_1.MeasureProto.DIRECTED_QUANTITY;
|
|
74
|
-
measureValue = new decimal_value_pb_1.DecimalValueProto().setArbitraryPrecisionValue("1.0");
|
|
75
105
|
tradeDatePacked = new any_pb_1.Any();
|
|
76
106
|
tradeDatePacked.setTypeUrl("Doesn't matter");
|
|
77
107
|
tradeDatePacked.setValue(date_1.LocalDate.from(tradeDate).toProto().serializeBinary());
|
|
@@ -80,14 +110,28 @@ function testSerialization() {
|
|
|
80
110
|
idPacked.setValue(id.toUUIDProto().serializeBinary());
|
|
81
111
|
positionProto = new position_pb_1.PositionProto();
|
|
82
112
|
positionProto.setFieldsList([
|
|
83
|
-
new
|
|
84
|
-
new
|
|
85
|
-
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.PORTFOLIO).setFieldValuePacked(portfolio),
|
|
113
|
+
// new FieldMapEntry().setField(FieldProto.SECURITY).setFieldValuePacked(security),
|
|
114
|
+
// new FieldMapEntry().setField(FieldProto.PORTFOLIO).setFieldValuePacked(portfolio),
|
|
86
115
|
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.POSITION_STATUS).setEnumValue(position_status_pb_1.PositionStatusProto.EXECUTED),
|
|
87
116
|
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.PRODUCT_TYPE).setStringValue(productType),
|
|
88
117
|
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.ID).setFieldValuePacked(idPacked),
|
|
89
118
|
]);
|
|
90
119
|
position = new position_1.Position(positionProto);
|
|
120
|
+
position2 = position_1.Position.fromJSON(position.toJSON());
|
|
121
|
+
tradeDatePosition = position2.getFieldValue(field_pb_1.FieldProto.TRADE_DATE);
|
|
122
|
+
expect(tradeDate.getFullYear()).toBe(tradeDatePosition.getFullYear());
|
|
123
|
+
expect(tradeDate.getMonth()).toBe(tradeDatePosition.getMonth());
|
|
124
|
+
expect(tradeDate.getDay()).toBe(tradeDatePosition.getDay());
|
|
125
|
+
expect(tradeDate.getMonth()).toBe(tradeDatePosition.getMonth());
|
|
126
|
+
return [2 /*return*/, true];
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function testSerialization() {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
132
|
+
var _a, position, tradeDate, security, portfolio, productType, id, tradeDatePosition, securityPosition, portfolioPosition, positionID;
|
|
133
|
+
return __generator(this, function (_b) {
|
|
134
|
+
_a = getPosition(), position = _a.position, tradeDate = _a.tradeDate, security = _a.security, portfolio = _a.portfolio, productType = _a.productType, id = _a.id;
|
|
91
135
|
tradeDatePosition = position.getFieldValue(field_pb_1.FieldProto.TRADE_DATE);
|
|
92
136
|
expect(tradeDate.getFullYear()).toBe(tradeDatePosition.getFullYear());
|
|
93
137
|
expect(tradeDate.getMonth()).toBe(tradeDatePosition.getMonth());
|
|
@@ -99,9 +143,34 @@ function testSerialization() {
|
|
|
99
143
|
expect(position.getFieldValue(field_pb_1.FieldProto.PRODUCT_TYPE)).toBe(productType);
|
|
100
144
|
positionID = position.getFieldValue(field_pb_1.FieldProto.ID);
|
|
101
145
|
expect(positionID.toString()).toBe(id.toString());
|
|
102
|
-
expect(position.getFieldValue(field_pb_1.FieldProto.POSITION_STATUS)).toBe(
|
|
146
|
+
expect(position.getFieldValue(field_pb_1.FieldProto.POSITION_STATUS).toString()).toBe("EXECUTED");
|
|
103
147
|
return [2 /*return*/, true];
|
|
104
148
|
});
|
|
105
149
|
});
|
|
106
150
|
}
|
|
151
|
+
function getPosition() {
|
|
152
|
+
var security = new security_pb_1.SecurityProto().setAssetClass("Test");
|
|
153
|
+
var portfolio = new portfolio_pb_1.PortfolioProto().setPortfolioName("Test portfolio");
|
|
154
|
+
var tradeDate = date_1.LocalDate.today().toDate();
|
|
155
|
+
var productType = "Test product type";
|
|
156
|
+
var id = new uuid_1.UUID(uuid_1.UUID.random().toBytes());
|
|
157
|
+
var measure = measure_pb_1.MeasureProto.DIRECTED_QUANTITY;
|
|
158
|
+
var measureValue = new decimal_value_pb_1.DecimalValueProto().setArbitraryPrecisionValue("1.0");
|
|
159
|
+
var tradeDatePacked = new any_pb_1.Any();
|
|
160
|
+
tradeDatePacked.setTypeUrl("Doesn't matter");
|
|
161
|
+
tradeDatePacked.setValue(date_1.LocalDate.from(tradeDate).toProto().serializeBinary());
|
|
162
|
+
var idPacked = new any_pb_1.Any();
|
|
163
|
+
idPacked.setTypeUrl("Doesn't matter");
|
|
164
|
+
idPacked.setValue(id.toUUIDProto().serializeBinary());
|
|
165
|
+
var positionProto = new position_pb_1.PositionProto();
|
|
166
|
+
positionProto.setFieldsList([
|
|
167
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.SECURITY).setFieldValuePacked(security),
|
|
168
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.PORTFOLIO).setFieldValuePacked(portfolio),
|
|
169
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.POSITION_STATUS).setEnumValue(position_status_pb_1.PositionStatusProto.EXECUTED),
|
|
170
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.PRODUCT_TYPE).setStringValue(productType),
|
|
171
|
+
new position_util_pb_1.FieldMapEntry().setField(field_pb_1.FieldProto.ID).setFieldValuePacked(idPacked),
|
|
172
|
+
]);
|
|
173
|
+
var position = new position_1.Position(positionProto);
|
|
174
|
+
return { position: position, tradeDate: tradeDate, security: security, portfolio: portfolio, productType: productType, id: id };
|
|
175
|
+
}
|
|
107
176
|
//# sourceMappingURL=position.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.test.js","sourceRoot":"","sources":["position.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AACrC,iEAA6D;AAI7D,qFAAqF;AACrF,+EAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"position.test.js","sourceRoot":"","sources":["position.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AACrC,iEAA6D;AAI7D,qFAAqF;AACrF,+EAAgF;AAChF,yFAAsG;AACtG,yEAA0E;AAC1E,6EAA8E;AAC9E,+EAAgF;AAChF,kFAAmF;AACnF,uCAAsC;AACtC,sCAA0C;AAC1C,6FAA6F;AAG7F,IAAI,CAAC,2BAA2B,EAAE;;;;oBACjB,qBAAM,qBAAqB,EAAE,EAAA;;gBAAtC,MAAM,GAAG,SAA6B;gBAC1C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;g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