protobuf-platform 1.2.287 → 1.2.289

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/game/game.proto CHANGED
@@ -648,6 +648,7 @@ message InitGameSessionResponse {
648
648
  optional string provider_title = 8;
649
649
  string provider_slug = 9;
650
650
  string user_id = 10;
651
+ optional bool has_demo = 11;
651
652
  }
652
653
  //Vendor
653
654
  message VendorActionRequest {
package/game/game_pb.js CHANGED
@@ -26874,7 +26874,8 @@ proto.game.InitGameSessionResponse.toObject = function(includeInstance, msg) {
26874
26874
  gameId: jspb.Message.getFieldWithDefault(msg, 7, 0),
26875
26875
  providerTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
26876
26876
  providerSlug: jspb.Message.getFieldWithDefault(msg, 9, ""),
26877
- userId: jspb.Message.getFieldWithDefault(msg, 10, "")
26877
+ userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
26878
+ hasDemo: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
26878
26879
  };
26879
26880
 
26880
26881
  if (includeInstance) {
@@ -26951,6 +26952,10 @@ proto.game.InitGameSessionResponse.deserializeBinaryFromReader = function(msg, r
26951
26952
  var value = /** @type {string} */ (reader.readString());
26952
26953
  msg.setUserId(value);
26953
26954
  break;
26955
+ case 11:
26956
+ var value = /** @type {boolean} */ (reader.readBool());
26957
+ msg.setHasDemo(value);
26958
+ break;
26954
26959
  default:
26955
26960
  reader.skipField();
26956
26961
  break;
@@ -27050,6 +27055,13 @@ proto.game.InitGameSessionResponse.serializeBinaryToWriter = function(message, w
27050
27055
  f
27051
27056
  );
27052
27057
  }
27058
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
27059
+ if (f != null) {
27060
+ writer.writeBool(
27061
+ 11,
27062
+ f
27063
+ );
27064
+ }
27053
27065
  };
27054
27066
 
27055
27067
 
@@ -27287,6 +27299,42 @@ proto.game.InitGameSessionResponse.prototype.setUserId = function(value) {
27287
27299
  };
27288
27300
 
27289
27301
 
27302
+ /**
27303
+ * optional bool has_demo = 11;
27304
+ * @return {boolean}
27305
+ */
27306
+ proto.game.InitGameSessionResponse.prototype.getHasDemo = function() {
27307
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
27308
+ };
27309
+
27310
+
27311
+ /**
27312
+ * @param {boolean} value
27313
+ * @return {!proto.game.InitGameSessionResponse} returns this
27314
+ */
27315
+ proto.game.InitGameSessionResponse.prototype.setHasDemo = function(value) {
27316
+ return jspb.Message.setField(this, 11, value);
27317
+ };
27318
+
27319
+
27320
+ /**
27321
+ * Clears the field making it undefined.
27322
+ * @return {!proto.game.InitGameSessionResponse} returns this
27323
+ */
27324
+ proto.game.InitGameSessionResponse.prototype.clearHasDemo = function() {
27325
+ return jspb.Message.setField(this, 11, undefined);
27326
+ };
27327
+
27328
+
27329
+ /**
27330
+ * Returns whether this field is set.
27331
+ * @return {boolean}
27332
+ */
27333
+ proto.game.InitGameSessionResponse.prototype.hasHasDemo = function() {
27334
+ return jspb.Message.getField(this, 11) != null;
27335
+ };
27336
+
27337
+
27290
27338
 
27291
27339
 
27292
27340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.287",
3
+ "version": "1.2.289",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -43,6 +43,10 @@ service Payment {
43
43
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
44
44
  //Currency source-of-truth
45
45
  rpc getCurrencyMetadata(GetCurrencyMetadataRequest) returns (CurrencyMetadataResponse);
46
+ //Currency directory
47
+ rpc readSingleCurrency(GetCurrencyRequest) returns (CurrencyResponse);
48
+ rpc readListCurrencies(PaginationRequest) returns (CurrencyItemsResponse);
49
+ rpc syncCurrencies(SyncCurrenciesRequest) returns (PaymentStatusResponse);
46
50
  }
47
51
  //Technical
48
52
  message PingRequest { string ping = 1; }
@@ -444,4 +448,36 @@ message GetCurrencyMetadataRequest {
444
448
  message CurrencyMetadataResponse {
445
449
  string currency = 1;
446
450
  int32 currency_scale = 2;
451
+ }
452
+ message GetCurrencyRequest {
453
+ int32 id = 1;
454
+ }
455
+ message SyncCurrenciesRequest {
456
+ optional string source = 1;
457
+ }
458
+ message CurrencyItem {
459
+ optional int32 id = 1;
460
+ optional string code = 2;
461
+ optional string type = 3;
462
+ optional string name = 4;
463
+ optional string symbol = 5;
464
+ optional int32 scale = 6;
465
+ optional string external_source = 7;
466
+ optional string external_id = 8;
467
+ optional string source_payload = 9;
468
+ optional string price = 10;
469
+ optional string price_currency_code = 11;
470
+ optional string price_updated_at = 12;
471
+ optional int32 is_active = 13;
472
+ optional int32 is_system = 14;
473
+ optional string created_at = 15;
474
+ optional string updated_at = 16;
475
+ }
476
+ message CurrencyResponse {
477
+ CurrencyItem data = 1;
478
+ }
479
+ message CurrencyItemsResponse {
480
+ repeated CurrencyItem items = 1;
481
+ optional int32 total_pages = 2;
482
+ optional int32 total_items = 3;
447
483
  }
@@ -15,6 +15,17 @@ function deserialize_payment_AttemptDepositRequest(buffer_arg) {
15
15
  return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_payment_CurrencyItemsResponse(arg) {
19
+ if (!(arg instanceof payment_pb.CurrencyItemsResponse)) {
20
+ throw new Error('Expected argument of type payment.CurrencyItemsResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_payment_CurrencyItemsResponse(buffer_arg) {
26
+ return payment_pb.CurrencyItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
18
29
  function serialize_payment_CurrencyMetadataResponse(arg) {
19
30
  if (!(arg instanceof payment_pb.CurrencyMetadataResponse)) {
20
31
  throw new Error('Expected argument of type payment.CurrencyMetadataResponse');
@@ -26,6 +37,17 @@ function deserialize_payment_CurrencyMetadataResponse(buffer_arg) {
26
37
  return payment_pb.CurrencyMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
38
  }
28
39
 
40
+ function serialize_payment_CurrencyResponse(arg) {
41
+ if (!(arg instanceof payment_pb.CurrencyResponse)) {
42
+ throw new Error('Expected argument of type payment.CurrencyResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_payment_CurrencyResponse(buffer_arg) {
48
+ return payment_pb.CurrencyResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
  function serialize_payment_DepositItemsResponse(arg) {
30
52
  if (!(arg instanceof payment_pb.DepositItemsResponse)) {
31
53
  throw new Error('Expected argument of type payment.DepositItemsResponse');
@@ -114,6 +136,17 @@ function deserialize_payment_GetCurrencyMetadataRequest(buffer_arg) {
114
136
  return payment_pb.GetCurrencyMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
137
  }
116
138
 
139
+ function serialize_payment_GetCurrencyRequest(arg) {
140
+ if (!(arg instanceof payment_pb.GetCurrencyRequest)) {
141
+ throw new Error('Expected argument of type payment.GetCurrencyRequest');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_payment_GetCurrencyRequest(buffer_arg) {
147
+ return payment_pb.GetCurrencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
117
150
  function serialize_payment_GetDepositRequest(arg) {
118
151
  if (!(arg instanceof payment_pb.GetDepositRequest)) {
119
152
  throw new Error('Expected argument of type payment.GetDepositRequest');
@@ -422,6 +455,17 @@ function deserialize_payment_SegmentedUserResponse(buffer_arg) {
422
455
  return payment_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
423
456
  }
424
457
 
458
+ function serialize_payment_SyncCurrenciesRequest(arg) {
459
+ if (!(arg instanceof payment_pb.SyncCurrenciesRequest)) {
460
+ throw new Error('Expected argument of type payment.SyncCurrenciesRequest');
461
+ }
462
+ return Buffer.from(arg.serializeBinary());
463
+ }
464
+
465
+ function deserialize_payment_SyncCurrenciesRequest(buffer_arg) {
466
+ return payment_pb.SyncCurrenciesRequest.deserializeBinary(new Uint8Array(buffer_arg));
467
+ }
468
+
425
469
  function serialize_payment_UserDepositItemsResponse(arg) {
426
470
  if (!(arg instanceof payment_pb.UserDepositItemsResponse)) {
427
471
  throw new Error('Expected argument of type payment.UserDepositItemsResponse');
@@ -817,6 +861,40 @@ getCurrencyMetadata: {
817
861
  responseSerialize: serialize_payment_CurrencyMetadataResponse,
818
862
  responseDeserialize: deserialize_payment_CurrencyMetadataResponse,
819
863
  },
864
+ // Currency directory
865
+ readSingleCurrency: {
866
+ path: '/payment.Payment/readSingleCurrency',
867
+ requestStream: false,
868
+ responseStream: false,
869
+ requestType: payment_pb.GetCurrencyRequest,
870
+ responseType: payment_pb.CurrencyResponse,
871
+ requestSerialize: serialize_payment_GetCurrencyRequest,
872
+ requestDeserialize: deserialize_payment_GetCurrencyRequest,
873
+ responseSerialize: serialize_payment_CurrencyResponse,
874
+ responseDeserialize: deserialize_payment_CurrencyResponse,
875
+ },
876
+ readListCurrencies: {
877
+ path: '/payment.Payment/readListCurrencies',
878
+ requestStream: false,
879
+ responseStream: false,
880
+ requestType: payment_pb.PaginationRequest,
881
+ responseType: payment_pb.CurrencyItemsResponse,
882
+ requestSerialize: serialize_payment_PaginationRequest,
883
+ requestDeserialize: deserialize_payment_PaginationRequest,
884
+ responseSerialize: serialize_payment_CurrencyItemsResponse,
885
+ responseDeserialize: deserialize_payment_CurrencyItemsResponse,
886
+ },
887
+ syncCurrencies: {
888
+ path: '/payment.Payment/syncCurrencies',
889
+ requestStream: false,
890
+ responseStream: false,
891
+ requestType: payment_pb.SyncCurrenciesRequest,
892
+ responseType: payment_pb.PaymentStatusResponse,
893
+ requestSerialize: serialize_payment_SyncCurrenciesRequest,
894
+ requestDeserialize: deserialize_payment_SyncCurrenciesRequest,
895
+ responseSerialize: serialize_payment_PaymentStatusResponse,
896
+ responseDeserialize: deserialize_payment_PaymentStatusResponse,
897
+ },
820
898
  };
821
899
 
822
900
  exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');