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