@kaiko-data/sdk-node 1.28.1 → 1.30.0

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": "@kaiko-data/sdk-node",
3
- "version": "1.28.1",
3
+ "version": "1.30.0",
4
4
  "description": "Kaiko Node SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -103,6 +103,11 @@ export class ConstantDurationFuture extends jspb.Message {
103
103
  getRateQuoteConversion(): RateQuoteConversion | undefined;
104
104
  setRateQuoteConversion(value?: RateQuoteConversion): void;
105
105
 
106
+ hasForecast(): boolean;
107
+ clearForecast(): void;
108
+ getForecast(): ConstantDurationFutureForecast | undefined;
109
+ setForecast(value?: ConstantDurationFutureForecast): void;
110
+
106
111
  serializeBinary(): Uint8Array;
107
112
  toObject(includeInstance?: boolean): ConstantDurationFuture.AsObject;
108
113
  static toObject(includeInstance: boolean, msg: ConstantDurationFuture): ConstantDurationFuture.AsObject;
@@ -122,6 +127,45 @@ export namespace ConstantDurationFuture {
122
127
  constantDuration: number,
123
128
  status: ConstantDurationFutureStatusMap[keyof ConstantDurationFutureStatusMap],
124
129
  rateQuoteConversion?: RateQuoteConversion.AsObject,
130
+ forecast?: ConstantDurationFutureForecast.AsObject,
131
+ }
132
+ }
133
+
134
+ export class ConstantDurationFutureForecast extends jspb.Message {
135
+ getExchange(): string;
136
+ setExchange(value: string): void;
137
+
138
+ hasFutureDate(): boolean;
139
+ clearFutureDate(): void;
140
+ getFutureDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
141
+ setFutureDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
142
+
143
+ hasFrontFuture(): boolean;
144
+ clearFrontFuture(): void;
145
+ getFrontFuture(): ConstantDurationFutureDetail | undefined;
146
+ setFrontFuture(value?: ConstantDurationFutureDetail): void;
147
+
148
+ hasBackFuture(): boolean;
149
+ clearBackFuture(): void;
150
+ getBackFuture(): ConstantDurationFutureDetail | undefined;
151
+ setBackFuture(value?: ConstantDurationFutureDetail): void;
152
+
153
+ serializeBinary(): Uint8Array;
154
+ toObject(includeInstance?: boolean): ConstantDurationFutureForecast.AsObject;
155
+ static toObject(includeInstance: boolean, msg: ConstantDurationFutureForecast): ConstantDurationFutureForecast.AsObject;
156
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
157
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
158
+ static serializeBinaryToWriter(message: ConstantDurationFutureForecast, writer: jspb.BinaryWriter): void;
159
+ static deserializeBinary(bytes: Uint8Array): ConstantDurationFutureForecast;
160
+ static deserializeBinaryFromReader(message: ConstantDurationFutureForecast, reader: jspb.BinaryReader): ConstantDurationFutureForecast;
161
+ }
162
+
163
+ export namespace ConstantDurationFutureForecast {
164
+ export type AsObject = {
165
+ exchange: string,
166
+ futureDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
167
+ frontFuture?: ConstantDurationFutureDetail.AsObject,
168
+ backFuture?: ConstantDurationFutureDetail.AsObject,
125
169
  }
126
170
  }
127
171
 
@@ -27,6 +27,7 @@ var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/com
27
27
  goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
28
28
  goog.exportSymbol('proto.kaikosdk.ConstantDurationFuture', null, global);
29
29
  goog.exportSymbol('proto.kaikosdk.ConstantDurationFutureDetail', null, global);
30
+ goog.exportSymbol('proto.kaikosdk.ConstantDurationFutureForecast', null, global);
30
31
  goog.exportSymbol('proto.kaikosdk.ConstantDurationFutureStatus', null, global);
31
32
  goog.exportSymbol('proto.kaikosdk.RateQuoteConversion', null, global);
32
33
  goog.exportSymbol('proto.kaikosdk.StreamConstantDurationIndicesServiceResponseComposition', null, global);
@@ -94,6 +95,27 @@ if (goog.DEBUG && !COMPILED) {
94
95
  */
95
96
  proto.kaikosdk.ConstantDurationFuture.displayName = 'proto.kaikosdk.ConstantDurationFuture';
96
97
  }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.kaikosdk.ConstantDurationFutureForecast = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.kaikosdk.ConstantDurationFutureForecast, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.kaikosdk.ConstantDurationFutureForecast.displayName = 'proto.kaikosdk.ConstantDurationFutureForecast';
118
+ }
97
119
  /**
98
120
  * Generated by JsPbCodeGenerator.
99
121
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -677,7 +699,8 @@ proto.kaikosdk.ConstantDurationFuture.toObject = function(includeInstance, msg)
677
699
  backFuture: (f = msg.getBackFuture()) && proto.kaikosdk.ConstantDurationFutureDetail.toObject(includeInstance, f),
678
700
  constantDuration: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
679
701
  status: jspb.Message.getFieldWithDefault(msg, 6, 0),
680
- rateQuoteConversion: (f = msg.getRateQuoteConversion()) && proto.kaikosdk.RateQuoteConversion.toObject(includeInstance, f)
702
+ rateQuoteConversion: (f = msg.getRateQuoteConversion()) && proto.kaikosdk.RateQuoteConversion.toObject(includeInstance, f),
703
+ forecast: (f = msg.getForecast()) && proto.kaikosdk.ConstantDurationFutureForecast.toObject(includeInstance, f)
681
704
  };
682
705
 
683
706
  if (includeInstance) {
@@ -745,6 +768,11 @@ proto.kaikosdk.ConstantDurationFuture.deserializeBinaryFromReader = function(msg
745
768
  reader.readMessage(value,proto.kaikosdk.RateQuoteConversion.deserializeBinaryFromReader);
746
769
  msg.setRateQuoteConversion(value);
747
770
  break;
771
+ case 8:
772
+ var value = new proto.kaikosdk.ConstantDurationFutureForecast;
773
+ reader.readMessage(value,proto.kaikosdk.ConstantDurationFutureForecast.deserializeBinaryFromReader);
774
+ msg.setForecast(value);
775
+ break;
748
776
  default:
749
777
  reader.skipField();
750
778
  break;
@@ -826,6 +854,14 @@ proto.kaikosdk.ConstantDurationFuture.serializeBinaryToWriter = function(message
826
854
  proto.kaikosdk.RateQuoteConversion.serializeBinaryToWriter
827
855
  );
828
856
  }
857
+ f = message.getForecast();
858
+ if (f != null) {
859
+ writer.writeMessage(
860
+ 8,
861
+ f,
862
+ proto.kaikosdk.ConstantDurationFutureForecast.serializeBinaryToWriter
863
+ );
864
+ }
829
865
  };
830
866
 
831
867
 
@@ -1012,6 +1048,326 @@ proto.kaikosdk.ConstantDurationFuture.prototype.hasRateQuoteConversion = functio
1012
1048
  };
1013
1049
 
1014
1050
 
1051
+ /**
1052
+ * optional ConstantDurationFutureForecast forecast = 8;
1053
+ * @return {?proto.kaikosdk.ConstantDurationFutureForecast}
1054
+ */
1055
+ proto.kaikosdk.ConstantDurationFuture.prototype.getForecast = function() {
1056
+ return /** @type{?proto.kaikosdk.ConstantDurationFutureForecast} */ (
1057
+ jspb.Message.getWrapperField(this, proto.kaikosdk.ConstantDurationFutureForecast, 8));
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * @param {?proto.kaikosdk.ConstantDurationFutureForecast|undefined} value
1063
+ * @return {!proto.kaikosdk.ConstantDurationFuture} returns this
1064
+ */
1065
+ proto.kaikosdk.ConstantDurationFuture.prototype.setForecast = function(value) {
1066
+ return jspb.Message.setWrapperField(this, 8, value);
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * Clears the message field making it undefined.
1072
+ * @return {!proto.kaikosdk.ConstantDurationFuture} returns this
1073
+ */
1074
+ proto.kaikosdk.ConstantDurationFuture.prototype.clearForecast = function() {
1075
+ return this.setForecast(undefined);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * Returns whether this field is set.
1081
+ * @return {boolean}
1082
+ */
1083
+ proto.kaikosdk.ConstantDurationFuture.prototype.hasForecast = function() {
1084
+ return jspb.Message.getField(this, 8) != null;
1085
+ };
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1092
+ /**
1093
+ * Creates an object representation of this proto.
1094
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1095
+ * Optional fields that are not set will be set to undefined.
1096
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1097
+ * For the list of reserved names please see:
1098
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1099
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1100
+ * JSPB instance for transitional soy proto support:
1101
+ * http://goto/soy-param-migration
1102
+ * @return {!Object}
1103
+ */
1104
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.toObject = function(opt_includeInstance) {
1105
+ return proto.kaikosdk.ConstantDurationFutureForecast.toObject(opt_includeInstance, this);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Static version of the {@see toObject} method.
1111
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1112
+ * the JSPB instance for transitional soy proto support:
1113
+ * http://goto/soy-param-migration
1114
+ * @param {!proto.kaikosdk.ConstantDurationFutureForecast} msg The msg instance to transform.
1115
+ * @return {!Object}
1116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1117
+ */
1118
+ proto.kaikosdk.ConstantDurationFutureForecast.toObject = function(includeInstance, msg) {
1119
+ var f, obj = {
1120
+ exchange: jspb.Message.getFieldWithDefault(msg, 1, ""),
1121
+ futureDate: (f = msg.getFutureDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1122
+ frontFuture: (f = msg.getFrontFuture()) && proto.kaikosdk.ConstantDurationFutureDetail.toObject(includeInstance, f),
1123
+ backFuture: (f = msg.getBackFuture()) && proto.kaikosdk.ConstantDurationFutureDetail.toObject(includeInstance, f)
1124
+ };
1125
+
1126
+ if (includeInstance) {
1127
+ obj.$jspbMessageInstance = msg;
1128
+ }
1129
+ return obj;
1130
+ };
1131
+ }
1132
+
1133
+
1134
+ /**
1135
+ * Deserializes binary data (in protobuf wire format).
1136
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1137
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast}
1138
+ */
1139
+ proto.kaikosdk.ConstantDurationFutureForecast.deserializeBinary = function(bytes) {
1140
+ var reader = new jspb.BinaryReader(bytes);
1141
+ var msg = new proto.kaikosdk.ConstantDurationFutureForecast;
1142
+ return proto.kaikosdk.ConstantDurationFutureForecast.deserializeBinaryFromReader(msg, reader);
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * Deserializes binary data (in protobuf wire format) from the
1148
+ * given reader into the given message object.
1149
+ * @param {!proto.kaikosdk.ConstantDurationFutureForecast} msg The message object to deserialize into.
1150
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1151
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast}
1152
+ */
1153
+ proto.kaikosdk.ConstantDurationFutureForecast.deserializeBinaryFromReader = function(msg, reader) {
1154
+ while (reader.nextField()) {
1155
+ if (reader.isEndGroup()) {
1156
+ break;
1157
+ }
1158
+ var field = reader.getFieldNumber();
1159
+ switch (field) {
1160
+ case 1:
1161
+ var value = /** @type {string} */ (reader.readString());
1162
+ msg.setExchange(value);
1163
+ break;
1164
+ case 2:
1165
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1166
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1167
+ msg.setFutureDate(value);
1168
+ break;
1169
+ case 3:
1170
+ var value = new proto.kaikosdk.ConstantDurationFutureDetail;
1171
+ reader.readMessage(value,proto.kaikosdk.ConstantDurationFutureDetail.deserializeBinaryFromReader);
1172
+ msg.setFrontFuture(value);
1173
+ break;
1174
+ case 4:
1175
+ var value = new proto.kaikosdk.ConstantDurationFutureDetail;
1176
+ reader.readMessage(value,proto.kaikosdk.ConstantDurationFutureDetail.deserializeBinaryFromReader);
1177
+ msg.setBackFuture(value);
1178
+ break;
1179
+ default:
1180
+ reader.skipField();
1181
+ break;
1182
+ }
1183
+ }
1184
+ return msg;
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Serializes the message to binary data (in protobuf wire format).
1190
+ * @return {!Uint8Array}
1191
+ */
1192
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.serializeBinary = function() {
1193
+ var writer = new jspb.BinaryWriter();
1194
+ proto.kaikosdk.ConstantDurationFutureForecast.serializeBinaryToWriter(this, writer);
1195
+ return writer.getResultBuffer();
1196
+ };
1197
+
1198
+
1199
+ /**
1200
+ * Serializes the given message to binary data (in protobuf wire
1201
+ * format), writing to the given BinaryWriter.
1202
+ * @param {!proto.kaikosdk.ConstantDurationFutureForecast} message
1203
+ * @param {!jspb.BinaryWriter} writer
1204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1205
+ */
1206
+ proto.kaikosdk.ConstantDurationFutureForecast.serializeBinaryToWriter = function(message, writer) {
1207
+ var f = undefined;
1208
+ f = message.getExchange();
1209
+ if (f.length > 0) {
1210
+ writer.writeString(
1211
+ 1,
1212
+ f
1213
+ );
1214
+ }
1215
+ f = message.getFutureDate();
1216
+ if (f != null) {
1217
+ writer.writeMessage(
1218
+ 2,
1219
+ f,
1220
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1221
+ );
1222
+ }
1223
+ f = message.getFrontFuture();
1224
+ if (f != null) {
1225
+ writer.writeMessage(
1226
+ 3,
1227
+ f,
1228
+ proto.kaikosdk.ConstantDurationFutureDetail.serializeBinaryToWriter
1229
+ );
1230
+ }
1231
+ f = message.getBackFuture();
1232
+ if (f != null) {
1233
+ writer.writeMessage(
1234
+ 4,
1235
+ f,
1236
+ proto.kaikosdk.ConstantDurationFutureDetail.serializeBinaryToWriter
1237
+ );
1238
+ }
1239
+ };
1240
+
1241
+
1242
+ /**
1243
+ * optional string exchange = 1;
1244
+ * @return {string}
1245
+ */
1246
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.getExchange = function() {
1247
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1248
+ };
1249
+
1250
+
1251
+ /**
1252
+ * @param {string} value
1253
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1254
+ */
1255
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.setExchange = function(value) {
1256
+ return jspb.Message.setProto3StringField(this, 1, value);
1257
+ };
1258
+
1259
+
1260
+ /**
1261
+ * optional google.protobuf.Timestamp future_date = 2;
1262
+ * @return {?proto.google.protobuf.Timestamp}
1263
+ */
1264
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.getFutureDate = function() {
1265
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1266
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1272
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1273
+ */
1274
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.setFutureDate = function(value) {
1275
+ return jspb.Message.setWrapperField(this, 2, value);
1276
+ };
1277
+
1278
+
1279
+ /**
1280
+ * Clears the message field making it undefined.
1281
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1282
+ */
1283
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.clearFutureDate = function() {
1284
+ return this.setFutureDate(undefined);
1285
+ };
1286
+
1287
+
1288
+ /**
1289
+ * Returns whether this field is set.
1290
+ * @return {boolean}
1291
+ */
1292
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.hasFutureDate = function() {
1293
+ return jspb.Message.getField(this, 2) != null;
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * optional ConstantDurationFutureDetail front_future = 3;
1299
+ * @return {?proto.kaikosdk.ConstantDurationFutureDetail}
1300
+ */
1301
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.getFrontFuture = function() {
1302
+ return /** @type{?proto.kaikosdk.ConstantDurationFutureDetail} */ (
1303
+ jspb.Message.getWrapperField(this, proto.kaikosdk.ConstantDurationFutureDetail, 3));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * @param {?proto.kaikosdk.ConstantDurationFutureDetail|undefined} value
1309
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1310
+ */
1311
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.setFrontFuture = function(value) {
1312
+ return jspb.Message.setWrapperField(this, 3, value);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * Clears the message field making it undefined.
1318
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1319
+ */
1320
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.clearFrontFuture = function() {
1321
+ return this.setFrontFuture(undefined);
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * Returns whether this field is set.
1327
+ * @return {boolean}
1328
+ */
1329
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.hasFrontFuture = function() {
1330
+ return jspb.Message.getField(this, 3) != null;
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional ConstantDurationFutureDetail back_future = 4;
1336
+ * @return {?proto.kaikosdk.ConstantDurationFutureDetail}
1337
+ */
1338
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.getBackFuture = function() {
1339
+ return /** @type{?proto.kaikosdk.ConstantDurationFutureDetail} */ (
1340
+ jspb.Message.getWrapperField(this, proto.kaikosdk.ConstantDurationFutureDetail, 4));
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * @param {?proto.kaikosdk.ConstantDurationFutureDetail|undefined} value
1346
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1347
+ */
1348
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.setBackFuture = function(value) {
1349
+ return jspb.Message.setWrapperField(this, 4, value);
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * Clears the message field making it undefined.
1355
+ * @return {!proto.kaikosdk.ConstantDurationFutureForecast} returns this
1356
+ */
1357
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.clearBackFuture = function() {
1358
+ return this.setBackFuture(undefined);
1359
+ };
1360
+
1361
+
1362
+ /**
1363
+ * Returns whether this field is set.
1364
+ * @return {boolean}
1365
+ */
1366
+ proto.kaikosdk.ConstantDurationFutureForecast.prototype.hasBackFuture = function() {
1367
+ return jspb.Message.getField(this, 4) != null;
1368
+ };
1369
+
1370
+
1015
1371
 
1016
1372
  /**
1017
1373
  * List of repeated fields within this message type.