protobuf-platform 1.2.310 → 1.2.312

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
@@ -226,6 +226,7 @@ message TagSearchRequest {
226
226
  message ItemsBunchRequest {
227
227
  repeated int32 ids = 1;
228
228
  optional int32 is_active = 2;
229
+ optional int32 is_popular = 3;
229
230
  }
230
231
  message SyncImagesRequest {
231
232
  string type = 1;
@@ -384,6 +385,7 @@ message ProviderItem {
384
385
  optional string image = 6;
385
386
  optional string image_cdn = 7;
386
387
  optional int32 count_of_games = 8;
388
+ optional int32 is_popular = 9;
387
389
  }
388
390
  //Provider CRUD | Requests
389
391
  message ProviderRequest {
@@ -400,6 +402,7 @@ message ProviderItemRequest {
400
402
  optional int32 is_active = 5;
401
403
  optional string file_name = 6;
402
404
  optional string file_type = 7;
405
+ optional int32 is_popular = 8;
403
406
  }
404
407
  message GetProviderRequest {
405
408
  int32 id = 1;
package/game/game_pb.js CHANGED
@@ -8148,7 +8148,8 @@ proto.game.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance)
8148
8148
  proto.game.ItemsBunchRequest.toObject = function(includeInstance, msg) {
8149
8149
  var f, obj = {
8150
8150
  idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
8151
- isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
8151
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
8152
+ isPopular: jspb.Message.getFieldWithDefault(msg, 3, 0)
8152
8153
  };
8153
8154
 
8154
8155
  if (includeInstance) {
@@ -8195,6 +8196,10 @@ proto.game.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader)
8195
8196
  var value = /** @type {number} */ (reader.readInt32());
8196
8197
  msg.setIsActive(value);
8197
8198
  break;
8199
+ case 3:
8200
+ var value = /** @type {number} */ (reader.readInt32());
8201
+ msg.setIsPopular(value);
8202
+ break;
8198
8203
  default:
8199
8204
  reader.skipField();
8200
8205
  break;
@@ -8238,6 +8243,13 @@ proto.game.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer)
8238
8243
  f
8239
8244
  );
8240
8245
  }
8246
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
8247
+ if (f != null) {
8248
+ writer.writeInt32(
8249
+ 3,
8250
+ f
8251
+ );
8252
+ }
8241
8253
  };
8242
8254
 
8243
8255
 
@@ -8314,6 +8326,42 @@ proto.game.ItemsBunchRequest.prototype.hasIsActive = function() {
8314
8326
  };
8315
8327
 
8316
8328
 
8329
+ /**
8330
+ * optional int32 is_popular = 3;
8331
+ * @return {number}
8332
+ */
8333
+ proto.game.ItemsBunchRequest.prototype.getIsPopular = function() {
8334
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8335
+ };
8336
+
8337
+
8338
+ /**
8339
+ * @param {number} value
8340
+ * @return {!proto.game.ItemsBunchRequest} returns this
8341
+ */
8342
+ proto.game.ItemsBunchRequest.prototype.setIsPopular = function(value) {
8343
+ return jspb.Message.setField(this, 3, value);
8344
+ };
8345
+
8346
+
8347
+ /**
8348
+ * Clears the field making it undefined.
8349
+ * @return {!proto.game.ItemsBunchRequest} returns this
8350
+ */
8351
+ proto.game.ItemsBunchRequest.prototype.clearIsPopular = function() {
8352
+ return jspb.Message.setField(this, 3, undefined);
8353
+ };
8354
+
8355
+
8356
+ /**
8357
+ * Returns whether this field is set.
8358
+ * @return {boolean}
8359
+ */
8360
+ proto.game.ItemsBunchRequest.prototype.hasIsPopular = function() {
8361
+ return jspb.Message.getField(this, 3) != null;
8362
+ };
8363
+
8364
+
8317
8365
 
8318
8366
 
8319
8367
 
@@ -14757,7 +14805,8 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
14757
14805
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
14758
14806
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
14759
14807
  imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
14760
- countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0)
14808
+ countOfGames: jspb.Message.getFieldWithDefault(msg, 8, 0),
14809
+ isPopular: jspb.Message.getFieldWithDefault(msg, 9, 0)
14761
14810
  };
14762
14811
 
14763
14812
  if (includeInstance) {
@@ -14826,6 +14875,10 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
14826
14875
  var value = /** @type {number} */ (reader.readInt32());
14827
14876
  msg.setCountOfGames(value);
14828
14877
  break;
14878
+ case 9:
14879
+ var value = /** @type {number} */ (reader.readInt32());
14880
+ msg.setIsPopular(value);
14881
+ break;
14829
14882
  default:
14830
14883
  reader.skipField();
14831
14884
  break;
@@ -14911,6 +14964,13 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
14911
14964
  f
14912
14965
  );
14913
14966
  }
14967
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
14968
+ if (f != null) {
14969
+ writer.writeInt32(
14970
+ 9,
14971
+ f
14972
+ );
14973
+ }
14914
14974
  };
14915
14975
 
14916
14976
 
@@ -15202,6 +15262,42 @@ proto.game.ProviderItem.prototype.hasCountOfGames = function() {
15202
15262
  };
15203
15263
 
15204
15264
 
15265
+ /**
15266
+ * optional int32 is_popular = 9;
15267
+ * @return {number}
15268
+ */
15269
+ proto.game.ProviderItem.prototype.getIsPopular = function() {
15270
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
15271
+ };
15272
+
15273
+
15274
+ /**
15275
+ * @param {number} value
15276
+ * @return {!proto.game.ProviderItem} returns this
15277
+ */
15278
+ proto.game.ProviderItem.prototype.setIsPopular = function(value) {
15279
+ return jspb.Message.setField(this, 9, value);
15280
+ };
15281
+
15282
+
15283
+ /**
15284
+ * Clears the field making it undefined.
15285
+ * @return {!proto.game.ProviderItem} returns this
15286
+ */
15287
+ proto.game.ProviderItem.prototype.clearIsPopular = function() {
15288
+ return jspb.Message.setField(this, 9, undefined);
15289
+ };
15290
+
15291
+
15292
+ /**
15293
+ * Returns whether this field is set.
15294
+ * @return {boolean}
15295
+ */
15296
+ proto.game.ProviderItem.prototype.hasIsPopular = function() {
15297
+ return jspb.Message.getField(this, 9) != null;
15298
+ };
15299
+
15300
+
15205
15301
 
15206
15302
  /**
15207
15303
  * Oneof group definitions for this message. Each group defines the field
@@ -15468,7 +15564,8 @@ proto.game.ProviderItemRequest.toObject = function(includeInstance, msg) {
15468
15564
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
15469
15565
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
15470
15566
  fileName: jspb.Message.getFieldWithDefault(msg, 6, ""),
15471
- fileType: jspb.Message.getFieldWithDefault(msg, 7, "")
15567
+ fileType: jspb.Message.getFieldWithDefault(msg, 7, ""),
15568
+ isPopular: jspb.Message.getFieldWithDefault(msg, 8, 0)
15472
15569
  };
15473
15570
 
15474
15571
  if (includeInstance) {
@@ -15533,6 +15630,10 @@ proto.game.ProviderItemRequest.deserializeBinaryFromReader = function(msg, reade
15533
15630
  var value = /** @type {string} */ (reader.readString());
15534
15631
  msg.setFileType(value);
15535
15632
  break;
15633
+ case 8:
15634
+ var value = /** @type {number} */ (reader.readInt32());
15635
+ msg.setIsPopular(value);
15636
+ break;
15536
15637
  default:
15537
15638
  reader.skipField();
15538
15639
  break;
@@ -15611,6 +15712,13 @@ proto.game.ProviderItemRequest.serializeBinaryToWriter = function(message, write
15611
15712
  f
15612
15713
  );
15613
15714
  }
15715
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
15716
+ if (f != null) {
15717
+ writer.writeInt32(
15718
+ 8,
15719
+ f
15720
+ );
15721
+ }
15614
15722
  };
15615
15723
 
15616
15724
 
@@ -15866,6 +15974,42 @@ proto.game.ProviderItemRequest.prototype.hasFileType = function() {
15866
15974
  };
15867
15975
 
15868
15976
 
15977
+ /**
15978
+ * optional int32 is_popular = 8;
15979
+ * @return {number}
15980
+ */
15981
+ proto.game.ProviderItemRequest.prototype.getIsPopular = function() {
15982
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
15983
+ };
15984
+
15985
+
15986
+ /**
15987
+ * @param {number} value
15988
+ * @return {!proto.game.ProviderItemRequest} returns this
15989
+ */
15990
+ proto.game.ProviderItemRequest.prototype.setIsPopular = function(value) {
15991
+ return jspb.Message.setField(this, 8, value);
15992
+ };
15993
+
15994
+
15995
+ /**
15996
+ * Clears the field making it undefined.
15997
+ * @return {!proto.game.ProviderItemRequest} returns this
15998
+ */
15999
+ proto.game.ProviderItemRequest.prototype.clearIsPopular = function() {
16000
+ return jspb.Message.setField(this, 8, undefined);
16001
+ };
16002
+
16003
+
16004
+ /**
16005
+ * Returns whether this field is set.
16006
+ * @return {boolean}
16007
+ */
16008
+ proto.game.ProviderItemRequest.prototype.hasIsPopular = function() {
16009
+ return jspb.Message.getField(this, 8) != null;
16010
+ };
16011
+
16012
+
15869
16013
 
15870
16014
 
15871
16015
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.310",
3
+ "version": "1.2.312",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -47,10 +47,31 @@ service User {
47
47
  rpc getUserSegmentIds(GetUserSegmentIdsRequest) returns (UserSegmentIdsResponse);
48
48
  //Risk Statuses
49
49
  rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
50
+ //Manual user risk profile
51
+ rpc readUserRiskProfile(ReadUserRiskProfileRequest) returns (UserRiskProfileResponse);
52
+ rpc updateUserRiskProfile(UpdateUserRiskProfileRequest) returns (UserRiskProfileResponse);
53
+ //Manual user restrictions
54
+ rpc readUserManualRestrictions(ReadUserManualRestrictionsRequest) returns (UserManualRestrictionsResponse);
55
+ rpc updateUserManualRestriction(UpdateUserManualRestrictionRequest) returns (UserManualRestrictionItem);
56
+ //Calculated user restrictions
57
+ rpc readUserCalculatedRestrictions(ReadUserCalculatedRestrictionsRequest) returns (UserCalculatedRestrictionsResponse);
58
+ //Risk permission matrix
59
+ rpc readListRiskPermissionMatrices(PaginationRequest) returns (RiskPermissionMatricesResponse);
60
+ rpc readRiskPermissionMatrix(ReadRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
61
+ rpc updateRiskPermissionMatrix(UpdateRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
62
+ rpc readRiskPermissionMatrixLimits(ReadRiskPermissionMatrixLimitsRequest) returns (RiskPermissionMatrixLimitsResponse);
63
+ rpc updateRiskPermissionMatrixLimit(UpdateRiskPermissionMatrixLimitRequest) returns (RiskPermissionMatrixLimitItem);
50
64
  //Categories
51
65
  rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
52
66
  //Verification Statuses
53
67
  rpc readListVerificationStatuses(PaginationRequest) returns (VerificationStatusItemsResponse);
68
+ //User KYC profile
69
+ rpc readUserKycProfile(ReadUserKycProfileRequest) returns (UserKycProfileResponse);
70
+ rpc updateUserKycProfile(UpdateUserKycProfileRequest) returns (UserKycProfileResponse);
71
+ //User KYC documents
72
+ rpc readUserKycDocuments(ReadUserKycDocumentsRequest) returns (UserKycDocumentsResponse);
73
+ rpc createUserKycDocumentMetadata(CreateUserKycDocumentMetadataRequest) returns (UserKycDocumentItem);
74
+ rpc updateUserKycDocumentReview(UpdateUserKycDocumentReviewRequest) returns (UserKycDocumentItem);
54
75
  //Dashboard
55
76
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
56
77
  //Notes
@@ -617,6 +638,142 @@ message RiskStatusItemsResponse {
617
638
  optional int32 total_pages = 2;
618
639
  optional int32 total_items = 3;
619
640
  }
641
+ message ReadUserRiskProfileRequest {
642
+ int32 user_id = 1;
643
+ }
644
+ message UpdateUserRiskProfileRequest {
645
+ int32 user_id = 1;
646
+ string risk_level = 2;
647
+ string reason = 3;
648
+ }
649
+ message UserRiskProfileResponse {
650
+ int32 user_id = 1;
651
+ optional string risk_level = 2;
652
+ optional string reason = 3;
653
+ optional string source = 4;
654
+ optional int32 assigned_by = 5;
655
+ optional string created_at = 6;
656
+ optional string updated_at = 7;
657
+ }
658
+ message ReadUserManualRestrictionsRequest {
659
+ int32 user_id = 1;
660
+ }
661
+ message UserManualRestrictionsResponse {
662
+ int32 user_id = 1;
663
+ repeated UserManualRestrictionItem restrictions = 2;
664
+ }
665
+ message UserManualRestrictionItem {
666
+ int32 user_id = 1;
667
+ string restriction_type = 2;
668
+ bool is_blocked = 3;
669
+ optional string reason = 4;
670
+ optional string source = 5;
671
+ optional int32 created_by = 6;
672
+ optional int32 updated_by = 7;
673
+ optional string created_at = 8;
674
+ optional string updated_at = 9;
675
+ }
676
+ message UpdateUserManualRestrictionRequest {
677
+ int32 user_id = 1;
678
+ string restriction_type = 2;
679
+ bool is_blocked = 3;
680
+ optional string reason = 4;
681
+ }
682
+ message ReadUserCalculatedRestrictionsRequest {
683
+ int32 user_id = 1;
684
+ optional string restriction_type = 2;
685
+ optional string operation_type = 3;
686
+ optional string currency = 4;
687
+ optional int64 amount_minor = 5;
688
+ optional int32 currency_scale = 6;
689
+ }
690
+ message UserCalculatedRestrictionsResponse {
691
+ int32 user_id = 1;
692
+ optional string risk_level = 2;
693
+ repeated UserCalculatedRestrictionItem restrictions = 3;
694
+ }
695
+ message UserCalculatedRestrictionItem {
696
+ string restriction_type = 1;
697
+ bool allowed = 2;
698
+ optional string source = 3;
699
+ optional string reason = 4;
700
+ optional CalculatedRestrictionLimit limit = 5;
701
+ }
702
+ message CalculatedRestrictionLimit {
703
+ int64 amount_minor = 1;
704
+ string currency = 2;
705
+ int32 currency_scale = 3;
706
+ }
707
+ message ReadRiskPermissionMatrixRequest {
708
+ string risk_level = 1;
709
+ }
710
+ message UpdateRiskPermissionMatrixRequest {
711
+ string risk_level = 1;
712
+ bool can_deposit = 2;
713
+ bool can_withdraw = 3;
714
+ bool can_play_casino = 4;
715
+ bool can_play_sport = 5;
716
+ bool can_play_poker = 6;
717
+ bool can_use_bonus = 7;
718
+ bool can_use_cashback = 8;
719
+ bool can_use_promo_code = 9;
720
+ bool can_join_tournament = 10;
721
+ bool can_transfer = 11;
722
+ bool can_crypto_convert = 12;
723
+ bool can_use_affiliate_features = 13;
724
+ bool is_user_blocked = 14;
725
+ bool is_active = 15;
726
+ }
727
+ message RiskPermissionMatrixItem {
728
+ string risk_level = 1;
729
+ bool can_deposit = 2;
730
+ bool can_withdraw = 3;
731
+ bool can_play_casino = 4;
732
+ bool can_play_sport = 5;
733
+ bool can_play_poker = 6;
734
+ bool can_use_bonus = 7;
735
+ bool can_use_cashback = 8;
736
+ bool can_use_promo_code = 9;
737
+ bool can_join_tournament = 10;
738
+ bool can_transfer = 11;
739
+ bool can_crypto_convert = 12;
740
+ bool can_use_affiliate_features = 13;
741
+ bool is_user_blocked = 14;
742
+ bool is_active = 15;
743
+ optional string created_at = 16;
744
+ optional string updated_at = 17;
745
+ }
746
+ message RiskPermissionMatricesResponse {
747
+ repeated RiskPermissionMatrixItem items = 1;
748
+ optional int32 total_pages = 2;
749
+ optional int32 total_items = 3;
750
+ }
751
+ message ReadRiskPermissionMatrixLimitsRequest {
752
+ string risk_level = 1;
753
+ optional string operation_type = 2;
754
+ optional string currency = 3;
755
+ }
756
+ message RiskPermissionMatrixLimitsResponse {
757
+ repeated RiskPermissionMatrixLimitItem items = 1;
758
+ }
759
+ message RiskPermissionMatrixLimitItem {
760
+ string risk_level = 1;
761
+ string operation_type = 2;
762
+ int64 amount_minor = 3;
763
+ string currency = 4;
764
+ int32 currency_scale = 5;
765
+ bool is_active = 6;
766
+ optional string created_at = 7;
767
+ optional string updated_at = 8;
768
+ }
769
+ message UpdateRiskPermissionMatrixLimitRequest {
770
+ string risk_level = 1;
771
+ string operation_type = 2;
772
+ int64 amount_minor = 3;
773
+ string currency = 4;
774
+ int32 currency_scale = 5;
775
+ bool is_active = 6;
776
+ }
620
777
  message CategoryItem {
621
778
  int32 id = 1;
622
779
  string title = 2;
@@ -637,6 +794,71 @@ message VerificationStatusItemsResponse {
637
794
  optional int32 total_pages = 2;
638
795
  optional int32 total_items = 3;
639
796
  }
797
+ message ReadUserKycProfileRequest {
798
+ int32 user_id = 1;
799
+ }
800
+ message UpdateUserKycProfileRequest {
801
+ int32 user_id = 1;
802
+ string kyc_status = 2;
803
+ optional string reason = 3;
804
+ }
805
+ message UserKycProfileResponse {
806
+ int32 user_id = 1;
807
+ optional string kyc_status = 2;
808
+ optional string reason = 3;
809
+ optional string source = 4;
810
+ optional int32 updated_by = 5;
811
+ optional string created_at = 6;
812
+ optional string updated_at = 7;
813
+ }
814
+ message ReadUserKycDocumentsRequest {
815
+ int32 user_id = 1;
816
+ optional string document_type = 2;
817
+ optional string document_side = 3;
818
+ optional string status = 4;
819
+ }
820
+ message CreateUserKycDocumentMetadataRequest {
821
+ int32 user_id = 1;
822
+ string document_type = 2;
823
+ string document_side = 3;
824
+ optional string status = 4;
825
+ optional string reason = 5;
826
+ optional string source = 6;
827
+ optional int32 uploaded_by = 7;
828
+ optional string storage_provider = 8;
829
+ optional string storage_ref = 9;
830
+ optional string file_name = 10;
831
+ optional string mime_type = 11;
832
+ optional int64 file_size = 12;
833
+ }
834
+ message UpdateUserKycDocumentReviewRequest {
835
+ int32 id = 1;
836
+ string status = 2;
837
+ optional string reason = 3;
838
+ optional int32 reviewer_id = 4;
839
+ }
840
+ message UserKycDocumentItem {
841
+ int32 id = 1;
842
+ int32 user_id = 2;
843
+ string document_type = 3;
844
+ string document_side = 4;
845
+ string status = 5;
846
+ optional string reason = 6;
847
+ optional string source = 7;
848
+ optional int32 reviewer_id = 8;
849
+ optional int32 uploaded_by = 9;
850
+ optional string storage_provider = 10;
851
+ optional string storage_ref = 11;
852
+ optional string file_name = 12;
853
+ optional string mime_type = 13;
854
+ optional int64 file_size = 14;
855
+ optional string created_at = 15;
856
+ optional string updated_at = 16;
857
+ }
858
+ message UserKycDocumentsResponse {
859
+ int32 user_id = 1;
860
+ repeated UserKycDocumentItem documents = 2;
861
+ }
640
862
  //Dashboard
641
863
  message DashboardRequest {
642
864
  string start_date = 1;