protobuf-platform 1.2.696 → 1.2.698
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/bonus/bonus.proto +2 -0
- package/bonus/bonus_pb.js +49 -1
- package/cms/cms.proto +21 -0
- package/cms/cms_grpc_pb.js +55 -0
- package/cms/cms_pb.js +787 -1
- package/package.json +1 -1
- package/promocode/promocode.proto +51 -0
- package/promocode/promocode_grpc_pb.js +110 -0
- package/promocode/promocode_pb.js +2154 -0
package/bonus/bonus.proto
CHANGED
|
@@ -512,6 +512,8 @@ message ApplyUserBonusPromocodeRequest {
|
|
|
512
512
|
optional string currency = 4;
|
|
513
513
|
optional string country = 5;
|
|
514
514
|
optional string locale = 6;
|
|
515
|
+
// Set when a deposit has already been created. Binds a deposit-area code to that deposit.
|
|
516
|
+
optional int32 deposit_id = 7;
|
|
515
517
|
}
|
|
516
518
|
message GrantSystemUserBonusRequest {
|
|
517
519
|
int32 user_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -21266,7 +21266,8 @@ proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance,
|
|
|
21266
21266
|
userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
21267
21267
|
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
21268
21268
|
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
21269
|
-
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
21269
|
+
locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
21270
|
+
depositId: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
21270
21271
|
};
|
|
21271
21272
|
|
|
21272
21273
|
if (includeInstance) {
|
|
@@ -21327,6 +21328,10 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
|
|
|
21327
21328
|
var value = /** @type {string} */ (reader.readString());
|
|
21328
21329
|
msg.setLocale(value);
|
|
21329
21330
|
break;
|
|
21331
|
+
case 7:
|
|
21332
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
21333
|
+
msg.setDepositId(value);
|
|
21334
|
+
break;
|
|
21330
21335
|
default:
|
|
21331
21336
|
reader.skipField();
|
|
21332
21337
|
break;
|
|
@@ -21398,6 +21403,13 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
|
|
|
21398
21403
|
f
|
|
21399
21404
|
);
|
|
21400
21405
|
}
|
|
21406
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
21407
|
+
if (f != null) {
|
|
21408
|
+
writer.writeInt32(
|
|
21409
|
+
7,
|
|
21410
|
+
f
|
|
21411
|
+
);
|
|
21412
|
+
}
|
|
21401
21413
|
};
|
|
21402
21414
|
|
|
21403
21415
|
|
|
@@ -21581,6 +21593,42 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
|
|
|
21581
21593
|
};
|
|
21582
21594
|
|
|
21583
21595
|
|
|
21596
|
+
/**
|
|
21597
|
+
* optional int32 deposit_id = 7;
|
|
21598
|
+
* @return {number}
|
|
21599
|
+
*/
|
|
21600
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getDepositId = function() {
|
|
21601
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
21602
|
+
};
|
|
21603
|
+
|
|
21604
|
+
|
|
21605
|
+
/**
|
|
21606
|
+
* @param {number} value
|
|
21607
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
21608
|
+
*/
|
|
21609
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setDepositId = function(value) {
|
|
21610
|
+
return jspb.Message.setField(this, 7, value);
|
|
21611
|
+
};
|
|
21612
|
+
|
|
21613
|
+
|
|
21614
|
+
/**
|
|
21615
|
+
* Clears the field making it undefined.
|
|
21616
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
21617
|
+
*/
|
|
21618
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearDepositId = function() {
|
|
21619
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
21620
|
+
};
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
/**
|
|
21624
|
+
* Returns whether this field is set.
|
|
21625
|
+
* @return {boolean}
|
|
21626
|
+
*/
|
|
21627
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasDepositId = function() {
|
|
21628
|
+
return jspb.Message.getField(this, 7) != null;
|
|
21629
|
+
};
|
|
21630
|
+
|
|
21631
|
+
|
|
21584
21632
|
|
|
21585
21633
|
|
|
21586
21634
|
|
package/cms/cms.proto
CHANGED
|
@@ -144,6 +144,8 @@ service CMS {
|
|
|
144
144
|
rpc updateCustomWidgetsInBunch(ItemsBunchRequest) returns (CustomWidgetStatusResponse);
|
|
145
145
|
rpc readCustomWidgetForUser(GetCustomWidgetForUserRequest) returns (CustomWidgetResponse);
|
|
146
146
|
rpc updateCustomWidgetItemConfig(UpdateCustomWidgetItemConfigRequest) returns (CustomWidgetResponse);
|
|
147
|
+
rpc setCustomWidgetTranslation(CustomWidgetTranslationRequest) returns (CustomWidgetStatusResponse);
|
|
148
|
+
rpc getCustomWidgetTranslation(GetCustomWidgetTranslationRequest) returns (CustomWidgetTranslationResponse);
|
|
147
149
|
//Sport Widgets
|
|
148
150
|
rpc createSingleSportWidget(SportWidgetItemRequest) returns (SportWidgetResponse);
|
|
149
151
|
rpc readSingleSportWidget(GetSportWidgetRequest) returns (SportWidgetResponse);
|
|
@@ -799,6 +801,7 @@ message GetCustomWidgetForUserRequest {
|
|
|
799
801
|
optional bool admin_side = 5;
|
|
800
802
|
optional string country = 6; // Payment reward context, separate from widget visibility geo.
|
|
801
803
|
optional string currency = 7;
|
|
804
|
+
optional string domain = 8; // Request hostname for the same title fallback chain as Pages.
|
|
802
805
|
}
|
|
803
806
|
message CustomWidgetsItemsResponse {
|
|
804
807
|
repeated CustomWidgetItem items = 1;
|
|
@@ -813,6 +816,24 @@ message UpdateCustomWidgetItemConfigRequest {
|
|
|
813
816
|
string item_key = 2;
|
|
814
817
|
string config = 3;
|
|
815
818
|
}
|
|
819
|
+
// Customized title localization. Identity and fallback match Page translations.
|
|
820
|
+
// Only title is localized; slug, active, items, and identifiers stay on the base widget.
|
|
821
|
+
message CustomWidgetTranslationRequest {
|
|
822
|
+
int32 custom_widget_id = 1;
|
|
823
|
+
string geo = 2;
|
|
824
|
+
string locale = 3;
|
|
825
|
+
optional string title = 4;
|
|
826
|
+
optional string domain = 5;
|
|
827
|
+
}
|
|
828
|
+
message GetCustomWidgetTranslationRequest {
|
|
829
|
+
int32 custom_widget_id = 1;
|
|
830
|
+
string geo = 2;
|
|
831
|
+
string locale = 3;
|
|
832
|
+
optional string domain = 4;
|
|
833
|
+
}
|
|
834
|
+
message CustomWidgetTranslationResponse {
|
|
835
|
+
optional string title = 1;
|
|
836
|
+
}
|
|
816
837
|
//Sport Widget CRUD
|
|
817
838
|
message SportWidgetItemRequest {
|
|
818
839
|
optional int32 id = 1;
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -158,6 +158,28 @@ function deserialize_cms_CustomWidgetStatusResponse(buffer_arg) {
|
|
|
158
158
|
return cms_pb.CustomWidgetStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
function serialize_cms_CustomWidgetTranslationRequest(arg) {
|
|
162
|
+
if (!(arg instanceof cms_pb.CustomWidgetTranslationRequest)) {
|
|
163
|
+
throw new Error('Expected argument of type cms.CustomWidgetTranslationRequest');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_cms_CustomWidgetTranslationRequest(buffer_arg) {
|
|
169
|
+
return cms_pb.CustomWidgetTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_cms_CustomWidgetTranslationResponse(arg) {
|
|
173
|
+
if (!(arg instanceof cms_pb.CustomWidgetTranslationResponse)) {
|
|
174
|
+
throw new Error('Expected argument of type cms.CustomWidgetTranslationResponse');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_cms_CustomWidgetTranslationResponse(buffer_arg) {
|
|
180
|
+
return cms_pb.CustomWidgetTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
161
183
|
function serialize_cms_CustomWidgetsItemsResponse(arg) {
|
|
162
184
|
if (!(arg instanceof cms_pb.CustomWidgetsItemsResponse)) {
|
|
163
185
|
throw new Error('Expected argument of type cms.CustomWidgetsItemsResponse');
|
|
@@ -631,6 +653,17 @@ function deserialize_cms_GetCustomWidgetRequest(buffer_arg) {
|
|
|
631
653
|
return cms_pb.GetCustomWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
632
654
|
}
|
|
633
655
|
|
|
656
|
+
function serialize_cms_GetCustomWidgetTranslationRequest(arg) {
|
|
657
|
+
if (!(arg instanceof cms_pb.GetCustomWidgetTranslationRequest)) {
|
|
658
|
+
throw new Error('Expected argument of type cms.GetCustomWidgetTranslationRequest');
|
|
659
|
+
}
|
|
660
|
+
return Buffer.from(arg.serializeBinary());
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function deserialize_cms_GetCustomWidgetTranslationRequest(buffer_arg) {
|
|
664
|
+
return cms_pb.GetCustomWidgetTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
665
|
+
}
|
|
666
|
+
|
|
634
667
|
function serialize_cms_GetFileRequest(arg) {
|
|
635
668
|
if (!(arg instanceof cms_pb.GetFileRequest)) {
|
|
636
669
|
throw new Error('Expected argument of type cms.GetFileRequest');
|
|
@@ -2958,6 +2991,28 @@ createSingleCustomWidget: {
|
|
|
2958
2991
|
responseSerialize: serialize_cms_CustomWidgetResponse,
|
|
2959
2992
|
responseDeserialize: deserialize_cms_CustomWidgetResponse,
|
|
2960
2993
|
},
|
|
2994
|
+
setCustomWidgetTranslation: {
|
|
2995
|
+
path: '/cms.CMS/setCustomWidgetTranslation',
|
|
2996
|
+
requestStream: false,
|
|
2997
|
+
responseStream: false,
|
|
2998
|
+
requestType: cms_pb.CustomWidgetTranslationRequest,
|
|
2999
|
+
responseType: cms_pb.CustomWidgetStatusResponse,
|
|
3000
|
+
requestSerialize: serialize_cms_CustomWidgetTranslationRequest,
|
|
3001
|
+
requestDeserialize: deserialize_cms_CustomWidgetTranslationRequest,
|
|
3002
|
+
responseSerialize: serialize_cms_CustomWidgetStatusResponse,
|
|
3003
|
+
responseDeserialize: deserialize_cms_CustomWidgetStatusResponse,
|
|
3004
|
+
},
|
|
3005
|
+
getCustomWidgetTranslation: {
|
|
3006
|
+
path: '/cms.CMS/getCustomWidgetTranslation',
|
|
3007
|
+
requestStream: false,
|
|
3008
|
+
responseStream: false,
|
|
3009
|
+
requestType: cms_pb.GetCustomWidgetTranslationRequest,
|
|
3010
|
+
responseType: cms_pb.CustomWidgetTranslationResponse,
|
|
3011
|
+
requestSerialize: serialize_cms_GetCustomWidgetTranslationRequest,
|
|
3012
|
+
requestDeserialize: deserialize_cms_GetCustomWidgetTranslationRequest,
|
|
3013
|
+
responseSerialize: serialize_cms_CustomWidgetTranslationResponse,
|
|
3014
|
+
responseDeserialize: deserialize_cms_CustomWidgetTranslationResponse,
|
|
3015
|
+
},
|
|
2961
3016
|
// Sport Widgets
|
|
2962
3017
|
createSingleSportWidget: {
|
|
2963
3018
|
path: '/cms.CMS/createSingleSportWidget',
|