@kaiko-data/sdk-node 1.0.5 → 1.0.6
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 +1 -1
- package/sdk/stream/index_v1/commodity_grpc_pb.d.ts +1 -0
- package/sdk/stream/index_v1/commodity_grpc_pb.js +1 -0
- package/sdk/stream/index_v1/commodity_pb.d.ts +13 -0
- package/sdk/stream/index_v1/commodity_pb.js +28 -0
- package/sdk/stream/index_v1/request_pb.d.ts +6 -3
- package/sdk/stream/index_v1/request_pb.js +43 -13
- package/sdk/stream/index_v1/response_pb.d.ts +4 -3
- package/sdk/stream/index_v1/response_pb.js +15 -13
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// package: kaikosdk
|
|
2
|
+
// file: sdk/stream/index_v1/commodity.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export interface StreamIndexCommodityMap {
|
|
7
|
+
SIC_UNKNOWN: 0;
|
|
8
|
+
SIC_REAL_TIME: 1;
|
|
9
|
+
SIC_DAILY_FIXING: 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const StreamIndexCommodity: StreamIndexCommodityMap;
|
|
13
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// source: sdk/stream/index_v1/commodity.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('return this')();
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.kaikosdk.StreamIndexCommodity', null, global);
|
|
19
|
+
/**
|
|
20
|
+
* @enum {number}
|
|
21
|
+
*/
|
|
22
|
+
proto.kaikosdk.StreamIndexCommodity = {
|
|
23
|
+
SIC_UNKNOWN: 0,
|
|
24
|
+
SIC_REAL_TIME: 1,
|
|
25
|
+
SIC_DAILY_FIXING: 2
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
goog.object.extend(exports, proto.kaikosdk);
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
// file: sdk/stream/index_v1/request.proto
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as sdk_stream_index_v1_commodity_pb from "../../../sdk/stream/index_v1/commodity_pb";
|
|
5
6
|
|
|
6
7
|
export class StreamIndexServiceRequestV1 extends jspb.Message {
|
|
7
8
|
getIndexCode(): string;
|
|
8
9
|
setIndexCode(value: string): void;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
clearCommoditiesList(): void;
|
|
12
|
+
getCommoditiesList(): Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>;
|
|
13
|
+
setCommoditiesList(value: Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>): void;
|
|
14
|
+
addCommodities(value: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap], index?: number): sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap];
|
|
12
15
|
|
|
13
16
|
serializeBinary(): Uint8Array;
|
|
14
17
|
toObject(includeInstance?: boolean): StreamIndexServiceRequestV1.AsObject;
|
|
@@ -23,7 +26,7 @@ export class StreamIndexServiceRequestV1 extends jspb.Message {
|
|
|
23
26
|
export namespace StreamIndexServiceRequestV1 {
|
|
24
27
|
export type AsObject = {
|
|
25
28
|
indexCode: string,
|
|
26
|
-
|
|
29
|
+
commoditiesList: Array<sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]>,
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = Function('return this')();
|
|
17
17
|
|
|
18
|
+
var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
|
|
19
|
+
goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
|
|
18
20
|
goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
|
|
19
21
|
/**
|
|
20
22
|
* Generated by JsPbCodeGenerator.
|
|
@@ -27,7 +29,7 @@ goog.exportSymbol('proto.kaikosdk.StreamIndexServiceRequestV1', null, global);
|
|
|
27
29
|
* @constructor
|
|
28
30
|
*/
|
|
29
31
|
proto.kaikosdk.StreamIndexServiceRequestV1 = function(opt_data) {
|
|
30
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
32
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_, null);
|
|
31
33
|
};
|
|
32
34
|
goog.inherits(proto.kaikosdk.StreamIndexServiceRequestV1, jspb.Message);
|
|
33
35
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -38,6 +40,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
38
40
|
proto.kaikosdk.StreamIndexServiceRequestV1.displayName = 'proto.kaikosdk.StreamIndexServiceRequestV1';
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
/**
|
|
44
|
+
* List of repeated fields within this message type.
|
|
45
|
+
* @private {!Array<number>}
|
|
46
|
+
* @const
|
|
47
|
+
*/
|
|
48
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.repeatedFields_ = [2];
|
|
49
|
+
|
|
41
50
|
|
|
42
51
|
|
|
43
52
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -70,7 +79,7 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.toObject = function(opt_inc
|
|
|
70
79
|
proto.kaikosdk.StreamIndexServiceRequestV1.toObject = function(includeInstance, msg) {
|
|
71
80
|
var f, obj = {
|
|
72
81
|
indexCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
73
|
-
|
|
82
|
+
commoditiesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
74
83
|
};
|
|
75
84
|
|
|
76
85
|
if (includeInstance) {
|
|
@@ -112,8 +121,10 @@ proto.kaikosdk.StreamIndexServiceRequestV1.deserializeBinaryFromReader = functio
|
|
|
112
121
|
msg.setIndexCode(value);
|
|
113
122
|
break;
|
|
114
123
|
case 2:
|
|
115
|
-
var
|
|
116
|
-
|
|
124
|
+
var values = /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
125
|
+
for (var i = 0; i < values.length; i++) {
|
|
126
|
+
msg.addCommodities(values[i]);
|
|
127
|
+
}
|
|
117
128
|
break;
|
|
118
129
|
default:
|
|
119
130
|
reader.skipField();
|
|
@@ -151,9 +162,9 @@ proto.kaikosdk.StreamIndexServiceRequestV1.serializeBinaryToWriter = function(me
|
|
|
151
162
|
f
|
|
152
163
|
);
|
|
153
164
|
}
|
|
154
|
-
f = message.
|
|
165
|
+
f = message.getCommoditiesList();
|
|
155
166
|
if (f.length > 0) {
|
|
156
|
-
writer.
|
|
167
|
+
writer.writePackedEnum(
|
|
157
168
|
2,
|
|
158
169
|
f
|
|
159
170
|
);
|
|
@@ -180,20 +191,39 @@ proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setIndexCode = function(val
|
|
|
180
191
|
|
|
181
192
|
|
|
182
193
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @return {
|
|
194
|
+
* repeated StreamIndexCommodity commodities = 2;
|
|
195
|
+
* @return {!Array<!proto.kaikosdk.StreamIndexCommodity>}
|
|
185
196
|
*/
|
|
186
|
-
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.
|
|
187
|
-
return /** @type {
|
|
197
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.getCommoditiesList = function() {
|
|
198
|
+
return /** @type {!Array<!proto.kaikosdk.StreamIndexCommodity>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
188
199
|
};
|
|
189
200
|
|
|
190
201
|
|
|
191
202
|
/**
|
|
192
|
-
* @param {
|
|
203
|
+
* @param {!Array<!proto.kaikosdk.StreamIndexCommodity>} value
|
|
204
|
+
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
205
|
+
*/
|
|
206
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.setCommoditiesList = function(value) {
|
|
207
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {!proto.kaikosdk.StreamIndexCommodity} value
|
|
213
|
+
* @param {number=} opt_index
|
|
214
|
+
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
215
|
+
*/
|
|
216
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.addCommodities = function(value, opt_index) {
|
|
217
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Clears the list making it empty but non-null.
|
|
193
223
|
* @return {!proto.kaikosdk.StreamIndexServiceRequestV1} returns this
|
|
194
224
|
*/
|
|
195
|
-
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.
|
|
196
|
-
return
|
|
225
|
+
proto.kaikosdk.StreamIndexServiceRequestV1.prototype.clearCommoditiesList = function() {
|
|
226
|
+
return this.setCommoditiesList([]);
|
|
197
227
|
};
|
|
198
228
|
|
|
199
229
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
6
|
import * as sdk_core_data_interval_pb from "../../../sdk/core/data_interval_pb";
|
|
7
|
+
import * as sdk_stream_index_v1_commodity_pb from "../../../sdk/stream/index_v1/commodity_pb";
|
|
7
8
|
|
|
8
9
|
export class StreamIndexServiceResponsePercentage extends jspb.Message {
|
|
9
10
|
getPercentage(): number;
|
|
@@ -121,8 +122,8 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
|
|
|
121
122
|
getIndexCode(): string;
|
|
122
123
|
setIndexCode(value: string): void;
|
|
123
124
|
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
getCommodity(): sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap];
|
|
126
|
+
setCommodity(value: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap]): void;
|
|
126
127
|
|
|
127
128
|
hasInterval(): boolean;
|
|
128
129
|
clearInterval(): void;
|
|
@@ -165,7 +166,7 @@ export class StreamIndexServiceResponseV1 extends jspb.Message {
|
|
|
165
166
|
export namespace StreamIndexServiceResponseV1 {
|
|
166
167
|
export type AsObject = {
|
|
167
168
|
indexCode: string,
|
|
168
|
-
|
|
169
|
+
commodity: sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap[keyof sdk_stream_index_v1_commodity_pb.StreamIndexCommodityMap],
|
|
169
170
|
interval?: sdk_core_data_interval_pb.DataInterval.AsObject,
|
|
170
171
|
quote: string,
|
|
171
172
|
basesList: Array<StreamIndexServiceResponseBaseAsset.AsObject>,
|
|
@@ -19,6 +19,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
19
19
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
20
|
var sdk_core_data_interval_pb = require('../../../sdk/core/data_interval_pb.js');
|
|
21
21
|
goog.object.extend(proto, sdk_core_data_interval_pb);
|
|
22
|
+
var sdk_stream_index_v1_commodity_pb = require('../../../sdk/stream/index_v1/commodity_pb.js');
|
|
23
|
+
goog.object.extend(proto, sdk_stream_index_v1_commodity_pb);
|
|
22
24
|
goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponseBaseAsset', null, global);
|
|
23
25
|
goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponseInstruments', null, global);
|
|
24
26
|
goog.exportSymbol('proto.kaikosdk.StreamIndexServiceResponsePairs', null, global);
|
|
@@ -959,7 +961,7 @@ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.toObject = function(opt_in
|
|
|
959
961
|
proto.kaikosdk.StreamIndexServiceResponseV1.toObject = function(includeInstance, msg) {
|
|
960
962
|
var f, obj = {
|
|
961
963
|
indexCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
962
|
-
|
|
964
|
+
commodity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
963
965
|
interval: (f = msg.getInterval()) && sdk_core_data_interval_pb.DataInterval.toObject(includeInstance, f),
|
|
964
966
|
quote: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
965
967
|
basesList: jspb.Message.toObjectList(msg.getBasesList(),
|
|
@@ -1009,8 +1011,8 @@ proto.kaikosdk.StreamIndexServiceResponseV1.deserializeBinaryFromReader = functi
|
|
|
1009
1011
|
msg.setIndexCode(value);
|
|
1010
1012
|
break;
|
|
1011
1013
|
case 2:
|
|
1012
|
-
var value = /** @type {
|
|
1013
|
-
msg.
|
|
1014
|
+
var value = /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (reader.readEnum());
|
|
1015
|
+
msg.setCommodity(value);
|
|
1014
1016
|
break;
|
|
1015
1017
|
case 3:
|
|
1016
1018
|
var value = new sdk_core_data_interval_pb.DataInterval;
|
|
@@ -1076,9 +1078,9 @@ proto.kaikosdk.StreamIndexServiceResponseV1.serializeBinaryToWriter = function(m
|
|
|
1076
1078
|
f
|
|
1077
1079
|
);
|
|
1078
1080
|
}
|
|
1079
|
-
f = message.
|
|
1080
|
-
if (f
|
|
1081
|
-
writer.
|
|
1081
|
+
f = message.getCommodity();
|
|
1082
|
+
if (f !== 0.0) {
|
|
1083
|
+
writer.writeEnum(
|
|
1082
1084
|
2,
|
|
1083
1085
|
f
|
|
1084
1086
|
);
|
|
@@ -1151,20 +1153,20 @@ proto.kaikosdk.StreamIndexServiceResponseV1.prototype.setIndexCode = function(va
|
|
|
1151
1153
|
|
|
1152
1154
|
|
|
1153
1155
|
/**
|
|
1154
|
-
* optional
|
|
1155
|
-
* @return {
|
|
1156
|
+
* optional StreamIndexCommodity commodity = 2;
|
|
1157
|
+
* @return {!proto.kaikosdk.StreamIndexCommodity}
|
|
1156
1158
|
*/
|
|
1157
|
-
proto.kaikosdk.StreamIndexServiceResponseV1.prototype.
|
|
1158
|
-
return /** @type {
|
|
1159
|
+
proto.kaikosdk.StreamIndexServiceResponseV1.prototype.getCommodity = function() {
|
|
1160
|
+
return /** @type {!proto.kaikosdk.StreamIndexCommodity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1159
1161
|
};
|
|
1160
1162
|
|
|
1161
1163
|
|
|
1162
1164
|
/**
|
|
1163
|
-
* @param {
|
|
1165
|
+
* @param {!proto.kaikosdk.StreamIndexCommodity} value
|
|
1164
1166
|
* @return {!proto.kaikosdk.StreamIndexServiceResponseV1} returns this
|
|
1165
1167
|
*/
|
|
1166
|
-
proto.kaikosdk.StreamIndexServiceResponseV1.prototype.
|
|
1167
|
-
return jspb.Message.
|
|
1168
|
+
proto.kaikosdk.StreamIndexServiceResponseV1.prototype.setCommodity = function(value) {
|
|
1169
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1168
1170
|
};
|
|
1169
1171
|
|
|
1170
1172
|
|