@kaiko-data/sdk-node 1.14.1 → 1.16.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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/sdk/core/assets_grpc_pb.d.ts +1 -0
  3. package/sdk/core/assets_grpc_pb.js +1 -0
  4. package/sdk/core/assets_pb.d.ts +29 -0
  5. package/sdk/core/assets_pb.js +206 -0
  6. package/sdk/core/window_grpc_pb.d.ts +1 -0
  7. package/sdk/core/window_grpc_pb.js +1 -0
  8. package/sdk/core/window_pb.d.ts +41 -0
  9. package/sdk/core/window_pb.js +303 -0
  10. package/sdk/sdk_grpc_pb.d.ts +36 -0
  11. package/sdk/sdk_grpc_pb.js +82 -0
  12. package/sdk/sdk_pb.d.ts +4 -0
  13. package/sdk/sdk_pb.js +8 -0
  14. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_grpc_pb.d.ts +1 -0
  15. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_grpc_pb.js +1 -0
  16. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.d.ts +47 -0
  17. package/sdk/stream/aggregates_direct_exchange_rate_v1/request_pb.js +357 -0
  18. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_grpc_pb.d.ts +1 -0
  19. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_grpc_pb.js +1 -0
  20. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.d.ts +50 -0
  21. package/sdk/stream/aggregates_direct_exchange_rate_v1/response_pb.js +365 -0
  22. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_grpc_pb.d.ts +1 -0
  23. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_grpc_pb.js +1 -0
  24. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.d.ts +47 -0
  25. package/sdk/stream/aggregates_spot_exchange_rate_v1/request_pb.js +357 -0
  26. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_grpc_pb.d.ts +1 -0
  27. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_grpc_pb.js +1 -0
  28. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.d.ts +50 -0
  29. package/sdk/stream/aggregates_spot_exchange_rate_v1/response_pb.js +365 -0
  30. package/sdk/stream/index_v1/response_pb.d.ts +4 -0
  31. package/sdk/stream/index_v1/response_pb.js +31 -1
@@ -0,0 +1,365 @@
1
+ // source: sdk/stream/aggregates_direct_exchange_rate_v1/response.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var sdk_core_assets_pb = require('../../../sdk/core/assets_pb.js');
27
+ goog.object.extend(proto, sdk_core_assets_pb);
28
+ var sdk_core_window_pb = require('../../../sdk/core/window_pb.js');
29
+ goog.object.extend(proto, sdk_core_window_pb);
30
+ goog.exportSymbol('proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2 = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.displayName = 'proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2';
51
+ }
52
+
53
+
54
+
55
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56
+ /**
57
+ * Creates an object representation of this proto.
58
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59
+ * Optional fields that are not set will be set to undefined.
60
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61
+ * For the list of reserved names please see:
62
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64
+ * JSPB instance for transitional soy proto support:
65
+ * http://goto/soy-param-migration
66
+ * @return {!Object}
67
+ */
68
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.toObject = function(opt_includeInstance) {
69
+ return proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.toObject(opt_includeInstance, this);
70
+ };
71
+
72
+
73
+ /**
74
+ * Static version of the {@see toObject} method.
75
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76
+ * the JSPB instance for transitional soy proto support:
77
+ * http://goto/soy-param-migration
78
+ * @param {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} msg The msg instance to transform.
79
+ * @return {!Object}
80
+ * @suppress {unusedLocalVariables} f is only used for nested messages
81
+ */
82
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.toObject = function(includeInstance, msg) {
83
+ var f, obj = {
84
+ assets: (f = msg.getAssets()) && sdk_core_assets_pb.Assets.toObject(includeInstance, f),
85
+ price: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
86
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
87
+ window: (f = msg.getWindow()) && sdk_core_window_pb.Window.toObject(includeInstance, f),
88
+ noTrade: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
89
+ };
90
+
91
+ if (includeInstance) {
92
+ obj.$jspbMessageInstance = msg;
93
+ }
94
+ return obj;
95
+ };
96
+ }
97
+
98
+
99
+ /**
100
+ * Deserializes binary data (in protobuf wire format).
101
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
102
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2}
103
+ */
104
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.deserializeBinary = function(bytes) {
105
+ var reader = new jspb.BinaryReader(bytes);
106
+ var msg = new proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2;
107
+ return proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.deserializeBinaryFromReader(msg, reader);
108
+ };
109
+
110
+
111
+ /**
112
+ * Deserializes binary data (in protobuf wire format) from the
113
+ * given reader into the given message object.
114
+ * @param {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} msg The message object to deserialize into.
115
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
116
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2}
117
+ */
118
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.deserializeBinaryFromReader = function(msg, reader) {
119
+ while (reader.nextField()) {
120
+ if (reader.isEndGroup()) {
121
+ break;
122
+ }
123
+ var field = reader.getFieldNumber();
124
+ switch (field) {
125
+ case 1:
126
+ var value = new sdk_core_assets_pb.Assets;
127
+ reader.readMessage(value,sdk_core_assets_pb.Assets.deserializeBinaryFromReader);
128
+ msg.setAssets(value);
129
+ break;
130
+ case 2:
131
+ var value = /** @type {number} */ (reader.readDouble());
132
+ msg.setPrice(value);
133
+ break;
134
+ case 3:
135
+ var value = new google_protobuf_timestamp_pb.Timestamp;
136
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
137
+ msg.setTimestamp(value);
138
+ break;
139
+ case 4:
140
+ var value = new sdk_core_window_pb.Window;
141
+ reader.readMessage(value,sdk_core_window_pb.Window.deserializeBinaryFromReader);
142
+ msg.setWindow(value);
143
+ break;
144
+ case 5:
145
+ var value = /** @type {boolean} */ (reader.readBool());
146
+ msg.setNoTrade(value);
147
+ break;
148
+ default:
149
+ reader.skipField();
150
+ break;
151
+ }
152
+ }
153
+ return msg;
154
+ };
155
+
156
+
157
+ /**
158
+ * Serializes the message to binary data (in protobuf wire format).
159
+ * @return {!Uint8Array}
160
+ */
161
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.serializeBinary = function() {
162
+ var writer = new jspb.BinaryWriter();
163
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.serializeBinaryToWriter(this, writer);
164
+ return writer.getResultBuffer();
165
+ };
166
+
167
+
168
+ /**
169
+ * Serializes the given message to binary data (in protobuf wire
170
+ * format), writing to the given BinaryWriter.
171
+ * @param {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} message
172
+ * @param {!jspb.BinaryWriter} writer
173
+ * @suppress {unusedLocalVariables} f is only used for nested messages
174
+ */
175
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.serializeBinaryToWriter = function(message, writer) {
176
+ var f = undefined;
177
+ f = message.getAssets();
178
+ if (f != null) {
179
+ writer.writeMessage(
180
+ 1,
181
+ f,
182
+ sdk_core_assets_pb.Assets.serializeBinaryToWriter
183
+ );
184
+ }
185
+ f = message.getPrice();
186
+ if (f !== 0.0) {
187
+ writer.writeDouble(
188
+ 2,
189
+ f
190
+ );
191
+ }
192
+ f = message.getTimestamp();
193
+ if (f != null) {
194
+ writer.writeMessage(
195
+ 3,
196
+ f,
197
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
198
+ );
199
+ }
200
+ f = message.getWindow();
201
+ if (f != null) {
202
+ writer.writeMessage(
203
+ 4,
204
+ f,
205
+ sdk_core_window_pb.Window.serializeBinaryToWriter
206
+ );
207
+ }
208
+ f = message.getNoTrade();
209
+ if (f) {
210
+ writer.writeBool(
211
+ 5,
212
+ f
213
+ );
214
+ }
215
+ };
216
+
217
+
218
+ /**
219
+ * optional Assets assets = 1;
220
+ * @return {?proto.kaikosdk.Assets}
221
+ */
222
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.getAssets = function() {
223
+ return /** @type{?proto.kaikosdk.Assets} */ (
224
+ jspb.Message.getWrapperField(this, sdk_core_assets_pb.Assets, 1));
225
+ };
226
+
227
+
228
+ /**
229
+ * @param {?proto.kaikosdk.Assets|undefined} value
230
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
231
+ */
232
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.setAssets = function(value) {
233
+ return jspb.Message.setWrapperField(this, 1, value);
234
+ };
235
+
236
+
237
+ /**
238
+ * Clears the message field making it undefined.
239
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
240
+ */
241
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.clearAssets = function() {
242
+ return this.setAssets(undefined);
243
+ };
244
+
245
+
246
+ /**
247
+ * Returns whether this field is set.
248
+ * @return {boolean}
249
+ */
250
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.hasAssets = function() {
251
+ return jspb.Message.getField(this, 1) != null;
252
+ };
253
+
254
+
255
+ /**
256
+ * optional double price = 2;
257
+ * @return {number}
258
+ */
259
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.getPrice = function() {
260
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
261
+ };
262
+
263
+
264
+ /**
265
+ * @param {number} value
266
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
267
+ */
268
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.setPrice = function(value) {
269
+ return jspb.Message.setProto3FloatField(this, 2, value);
270
+ };
271
+
272
+
273
+ /**
274
+ * optional google.protobuf.Timestamp timestamp = 3;
275
+ * @return {?proto.google.protobuf.Timestamp}
276
+ */
277
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.getTimestamp = function() {
278
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
279
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
285
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
286
+ */
287
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.setTimestamp = function(value) {
288
+ return jspb.Message.setWrapperField(this, 3, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * Clears the message field making it undefined.
294
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
295
+ */
296
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.clearTimestamp = function() {
297
+ return this.setTimestamp(undefined);
298
+ };
299
+
300
+
301
+ /**
302
+ * Returns whether this field is set.
303
+ * @return {boolean}
304
+ */
305
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.hasTimestamp = function() {
306
+ return jspb.Message.getField(this, 3) != null;
307
+ };
308
+
309
+
310
+ /**
311
+ * optional Window window = 4;
312
+ * @return {?proto.kaikosdk.Window}
313
+ */
314
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.getWindow = function() {
315
+ return /** @type{?proto.kaikosdk.Window} */ (
316
+ jspb.Message.getWrapperField(this, sdk_core_window_pb.Window, 4));
317
+ };
318
+
319
+
320
+ /**
321
+ * @param {?proto.kaikosdk.Window|undefined} value
322
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
323
+ */
324
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.setWindow = function(value) {
325
+ return jspb.Message.setWrapperField(this, 4, value);
326
+ };
327
+
328
+
329
+ /**
330
+ * Clears the message field making it undefined.
331
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
332
+ */
333
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.clearWindow = function() {
334
+ return this.setWindow(undefined);
335
+ };
336
+
337
+
338
+ /**
339
+ * Returns whether this field is set.
340
+ * @return {boolean}
341
+ */
342
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.hasWindow = function() {
343
+ return jspb.Message.getField(this, 4) != null;
344
+ };
345
+
346
+
347
+ /**
348
+ * optional bool no_trade = 5;
349
+ * @return {boolean}
350
+ */
351
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.getNoTrade = function() {
352
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
353
+ };
354
+
355
+
356
+ /**
357
+ * @param {boolean} value
358
+ * @return {!proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2} returns this
359
+ */
360
+ proto.kaikosdk.StreamAggregatesDirectExchangeRateV1ResponseV2.prototype.setNoTrade = function(value) {
361
+ return jspb.Message.setProto3BooleanField(this, 5, value);
362
+ };
363
+
364
+
365
+ goog.object.extend(exports, proto.kaikosdk);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,47 @@
1
+ // package: kaikosdk
2
+ // file: sdk/stream/aggregates_spot_exchange_rate_v1/request.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
6
+ import * as sdk_core_assets_pb from "../../../sdk/core/assets_pb";
7
+
8
+ export class StreamAggregatesSpotExchangeRateV1RequestV2 extends jspb.Message {
9
+ hasAssets(): boolean;
10
+ clearAssets(): void;
11
+ getAssets(): sdk_core_assets_pb.Assets | undefined;
12
+ setAssets(value?: sdk_core_assets_pb.Assets): void;
13
+
14
+ hasWindow(): boolean;
15
+ clearWindow(): void;
16
+ getWindow(): google_protobuf_duration_pb.Duration | undefined;
17
+ setWindow(value?: google_protobuf_duration_pb.Duration): void;
18
+
19
+ clearIncludeExchangesList(): void;
20
+ getIncludeExchangesList(): Array<string>;
21
+ setIncludeExchangesList(value: Array<string>): void;
22
+ addIncludeExchanges(value: string, index?: number): string;
23
+
24
+ clearExcludeExchangesList(): void;
25
+ getExcludeExchangesList(): Array<string>;
26
+ setExcludeExchangesList(value: Array<string>): void;
27
+ addExcludeExchanges(value: string, index?: number): string;
28
+
29
+ serializeBinary(): Uint8Array;
30
+ toObject(includeInstance?: boolean): StreamAggregatesSpotExchangeRateV1RequestV2.AsObject;
31
+ static toObject(includeInstance: boolean, msg: StreamAggregatesSpotExchangeRateV1RequestV2): StreamAggregatesSpotExchangeRateV1RequestV2.AsObject;
32
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
33
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
34
+ static serializeBinaryToWriter(message: StreamAggregatesSpotExchangeRateV1RequestV2, writer: jspb.BinaryWriter): void;
35
+ static deserializeBinary(bytes: Uint8Array): StreamAggregatesSpotExchangeRateV1RequestV2;
36
+ static deserializeBinaryFromReader(message: StreamAggregatesSpotExchangeRateV1RequestV2, reader: jspb.BinaryReader): StreamAggregatesSpotExchangeRateV1RequestV2;
37
+ }
38
+
39
+ export namespace StreamAggregatesSpotExchangeRateV1RequestV2 {
40
+ export type AsObject = {
41
+ assets?: sdk_core_assets_pb.Assets.AsObject,
42
+ window?: google_protobuf_duration_pb.Duration.AsObject,
43
+ includeExchangesList: Array<string>,
44
+ excludeExchangesList: Array<string>,
45
+ }
46
+ }
47
+