protobuf-platform 1.2.348 → 1.2.350
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 +6 -0
- package/bonus/bonus_pb.js +292 -2
- package/cms/cms.proto +54 -1
- package/cms/cms_grpc_pb.js +144 -0
- package/cms/cms_pb.js +2307 -0
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -313,6 +313,11 @@ message GetDepositEligibleUserBonusesRequest {
|
|
|
313
313
|
message DepositEligibleUserBonusesResponse {
|
|
314
314
|
repeated DepositEligibleUserBonusItem items = 1;
|
|
315
315
|
}
|
|
316
|
+
message DepositEligibleUserBonusRewardItem {
|
|
317
|
+
string type = 1;
|
|
318
|
+
string currency = 2;
|
|
319
|
+
optional string config = 3;
|
|
320
|
+
}
|
|
316
321
|
message DepositEligibleUserBonusItem {
|
|
317
322
|
int32 user_bonus_id = 1;
|
|
318
323
|
// UI fields
|
|
@@ -327,6 +332,7 @@ message DepositEligibleUserBonusItem {
|
|
|
327
332
|
optional int32 number_of_deposit = 8;
|
|
328
333
|
// Display/validity
|
|
329
334
|
optional string activation_until = 9;
|
|
335
|
+
repeated DepositEligibleUserBonusRewardItem rewards = 10;
|
|
330
336
|
}
|
|
331
337
|
message GetActiveWageringUserBonusesRequest {
|
|
332
338
|
int32 user_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -46,6 +46,7 @@ goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
|
|
|
46
46
|
goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.bonus.DashboardResponse', null, global);
|
|
48
48
|
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusItem', null, global);
|
|
49
|
+
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusRewardItem', null, global);
|
|
49
50
|
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusesResponse', null, global);
|
|
50
51
|
goog.exportSymbol('proto.bonus.File', null, global);
|
|
51
52
|
goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
|
|
@@ -748,9 +749,30 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
748
749
|
* @extends {jspb.Message}
|
|
749
750
|
* @constructor
|
|
750
751
|
*/
|
|
751
|
-
proto.bonus.
|
|
752
|
+
proto.bonus.DepositEligibleUserBonusRewardItem = function(opt_data) {
|
|
752
753
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
753
754
|
};
|
|
755
|
+
goog.inherits(proto.bonus.DepositEligibleUserBonusRewardItem, jspb.Message);
|
|
756
|
+
if (goog.DEBUG && !COMPILED) {
|
|
757
|
+
/**
|
|
758
|
+
* @public
|
|
759
|
+
* @override
|
|
760
|
+
*/
|
|
761
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.displayName = 'proto.bonus.DepositEligibleUserBonusRewardItem';
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Generated by JsPbCodeGenerator.
|
|
765
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
766
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
767
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
768
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
769
|
+
* valid.
|
|
770
|
+
* @extends {jspb.Message}
|
|
771
|
+
* @constructor
|
|
772
|
+
*/
|
|
773
|
+
proto.bonus.DepositEligibleUserBonusItem = function(opt_data) {
|
|
774
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.DepositEligibleUserBonusItem.repeatedFields_, null);
|
|
775
|
+
};
|
|
754
776
|
goog.inherits(proto.bonus.DepositEligibleUserBonusItem, jspb.Message);
|
|
755
777
|
if (goog.DEBUG && !COMPILED) {
|
|
756
778
|
/**
|
|
@@ -13760,6 +13782,221 @@ proto.bonus.DepositEligibleUserBonusesResponse.prototype.clearItemsList = functi
|
|
|
13760
13782
|
|
|
13761
13783
|
|
|
13762
13784
|
|
|
13785
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13786
|
+
/**
|
|
13787
|
+
* Creates an object representation of this proto.
|
|
13788
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13789
|
+
* Optional fields that are not set will be set to undefined.
|
|
13790
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13791
|
+
* For the list of reserved names please see:
|
|
13792
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13793
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13794
|
+
* JSPB instance for transitional soy proto support:
|
|
13795
|
+
* http://goto/soy-param-migration
|
|
13796
|
+
* @return {!Object}
|
|
13797
|
+
*/
|
|
13798
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.toObject = function(opt_includeInstance) {
|
|
13799
|
+
return proto.bonus.DepositEligibleUserBonusRewardItem.toObject(opt_includeInstance, this);
|
|
13800
|
+
};
|
|
13801
|
+
|
|
13802
|
+
|
|
13803
|
+
/**
|
|
13804
|
+
* Static version of the {@see toObject} method.
|
|
13805
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13806
|
+
* the JSPB instance for transitional soy proto support:
|
|
13807
|
+
* http://goto/soy-param-migration
|
|
13808
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} msg The msg instance to transform.
|
|
13809
|
+
* @return {!Object}
|
|
13810
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13811
|
+
*/
|
|
13812
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.toObject = function(includeInstance, msg) {
|
|
13813
|
+
var f, obj = {
|
|
13814
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
13815
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13816
|
+
config: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
13817
|
+
};
|
|
13818
|
+
|
|
13819
|
+
if (includeInstance) {
|
|
13820
|
+
obj.$jspbMessageInstance = msg;
|
|
13821
|
+
}
|
|
13822
|
+
return obj;
|
|
13823
|
+
};
|
|
13824
|
+
}
|
|
13825
|
+
|
|
13826
|
+
|
|
13827
|
+
/**
|
|
13828
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13829
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13830
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
13831
|
+
*/
|
|
13832
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinary = function(bytes) {
|
|
13833
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13834
|
+
var msg = new proto.bonus.DepositEligibleUserBonusRewardItem;
|
|
13835
|
+
return proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader(msg, reader);
|
|
13836
|
+
};
|
|
13837
|
+
|
|
13838
|
+
|
|
13839
|
+
/**
|
|
13840
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13841
|
+
* given reader into the given message object.
|
|
13842
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} msg The message object to deserialize into.
|
|
13843
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13844
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
13845
|
+
*/
|
|
13846
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
13847
|
+
while (reader.nextField()) {
|
|
13848
|
+
if (reader.isEndGroup()) {
|
|
13849
|
+
break;
|
|
13850
|
+
}
|
|
13851
|
+
var field = reader.getFieldNumber();
|
|
13852
|
+
switch (field) {
|
|
13853
|
+
case 1:
|
|
13854
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13855
|
+
msg.setType(value);
|
|
13856
|
+
break;
|
|
13857
|
+
case 2:
|
|
13858
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13859
|
+
msg.setCurrency(value);
|
|
13860
|
+
break;
|
|
13861
|
+
case 3:
|
|
13862
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13863
|
+
msg.setConfig(value);
|
|
13864
|
+
break;
|
|
13865
|
+
default:
|
|
13866
|
+
reader.skipField();
|
|
13867
|
+
break;
|
|
13868
|
+
}
|
|
13869
|
+
}
|
|
13870
|
+
return msg;
|
|
13871
|
+
};
|
|
13872
|
+
|
|
13873
|
+
|
|
13874
|
+
/**
|
|
13875
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13876
|
+
* @return {!Uint8Array}
|
|
13877
|
+
*/
|
|
13878
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.serializeBinary = function() {
|
|
13879
|
+
var writer = new jspb.BinaryWriter();
|
|
13880
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter(this, writer);
|
|
13881
|
+
return writer.getResultBuffer();
|
|
13882
|
+
};
|
|
13883
|
+
|
|
13884
|
+
|
|
13885
|
+
/**
|
|
13886
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13887
|
+
* format), writing to the given BinaryWriter.
|
|
13888
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} message
|
|
13889
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13890
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13891
|
+
*/
|
|
13892
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter = function(message, writer) {
|
|
13893
|
+
var f = undefined;
|
|
13894
|
+
f = message.getType();
|
|
13895
|
+
if (f.length > 0) {
|
|
13896
|
+
writer.writeString(
|
|
13897
|
+
1,
|
|
13898
|
+
f
|
|
13899
|
+
);
|
|
13900
|
+
}
|
|
13901
|
+
f = message.getCurrency();
|
|
13902
|
+
if (f.length > 0) {
|
|
13903
|
+
writer.writeString(
|
|
13904
|
+
2,
|
|
13905
|
+
f
|
|
13906
|
+
);
|
|
13907
|
+
}
|
|
13908
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
13909
|
+
if (f != null) {
|
|
13910
|
+
writer.writeString(
|
|
13911
|
+
3,
|
|
13912
|
+
f
|
|
13913
|
+
);
|
|
13914
|
+
}
|
|
13915
|
+
};
|
|
13916
|
+
|
|
13917
|
+
|
|
13918
|
+
/**
|
|
13919
|
+
* optional string type = 1;
|
|
13920
|
+
* @return {string}
|
|
13921
|
+
*/
|
|
13922
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getType = function() {
|
|
13923
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13924
|
+
};
|
|
13925
|
+
|
|
13926
|
+
|
|
13927
|
+
/**
|
|
13928
|
+
* @param {string} value
|
|
13929
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13930
|
+
*/
|
|
13931
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setType = function(value) {
|
|
13932
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13933
|
+
};
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
/**
|
|
13937
|
+
* optional string currency = 2;
|
|
13938
|
+
* @return {string}
|
|
13939
|
+
*/
|
|
13940
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getCurrency = function() {
|
|
13941
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13942
|
+
};
|
|
13943
|
+
|
|
13944
|
+
|
|
13945
|
+
/**
|
|
13946
|
+
* @param {string} value
|
|
13947
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13948
|
+
*/
|
|
13949
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setCurrency = function(value) {
|
|
13950
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13951
|
+
};
|
|
13952
|
+
|
|
13953
|
+
|
|
13954
|
+
/**
|
|
13955
|
+
* optional string config = 3;
|
|
13956
|
+
* @return {string}
|
|
13957
|
+
*/
|
|
13958
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getConfig = function() {
|
|
13959
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13960
|
+
};
|
|
13961
|
+
|
|
13962
|
+
|
|
13963
|
+
/**
|
|
13964
|
+
* @param {string} value
|
|
13965
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13966
|
+
*/
|
|
13967
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setConfig = function(value) {
|
|
13968
|
+
return jspb.Message.setField(this, 3, value);
|
|
13969
|
+
};
|
|
13970
|
+
|
|
13971
|
+
|
|
13972
|
+
/**
|
|
13973
|
+
* Clears the field making it undefined.
|
|
13974
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13975
|
+
*/
|
|
13976
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.clearConfig = function() {
|
|
13977
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13978
|
+
};
|
|
13979
|
+
|
|
13980
|
+
|
|
13981
|
+
/**
|
|
13982
|
+
* Returns whether this field is set.
|
|
13983
|
+
* @return {boolean}
|
|
13984
|
+
*/
|
|
13985
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.hasConfig = function() {
|
|
13986
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13987
|
+
};
|
|
13988
|
+
|
|
13989
|
+
|
|
13990
|
+
|
|
13991
|
+
/**
|
|
13992
|
+
* List of repeated fields within this message type.
|
|
13993
|
+
* @private {!Array<number>}
|
|
13994
|
+
* @const
|
|
13995
|
+
*/
|
|
13996
|
+
proto.bonus.DepositEligibleUserBonusItem.repeatedFields_ = [10];
|
|
13997
|
+
|
|
13998
|
+
|
|
13999
|
+
|
|
13763
14000
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13764
14001
|
/**
|
|
13765
14002
|
* Creates an object representation of this proto.
|
|
@@ -13797,7 +14034,9 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
|
|
|
13797
14034
|
depositMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
13798
14035
|
depositMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
13799
14036
|
numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
13800
|
-
activationUntil: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
14037
|
+
activationUntil: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
14038
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
14039
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.toObject, includeInstance)
|
|
13801
14040
|
};
|
|
13802
14041
|
|
|
13803
14042
|
if (includeInstance) {
|
|
@@ -13870,6 +14109,11 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
|
|
|
13870
14109
|
var value = /** @type {string} */ (reader.readString());
|
|
13871
14110
|
msg.setActivationUntil(value);
|
|
13872
14111
|
break;
|
|
14112
|
+
case 10:
|
|
14113
|
+
var value = new proto.bonus.DepositEligibleUserBonusRewardItem;
|
|
14114
|
+
reader.readMessage(value,proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader);
|
|
14115
|
+
msg.addRewards(value);
|
|
14116
|
+
break;
|
|
13873
14117
|
default:
|
|
13874
14118
|
reader.skipField();
|
|
13875
14119
|
break;
|
|
@@ -13962,6 +14206,14 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
|
|
|
13962
14206
|
f
|
|
13963
14207
|
);
|
|
13964
14208
|
}
|
|
14209
|
+
f = message.getRewardsList();
|
|
14210
|
+
if (f.length > 0) {
|
|
14211
|
+
writer.writeRepeatedMessage(
|
|
14212
|
+
10,
|
|
14213
|
+
f,
|
|
14214
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter
|
|
14215
|
+
);
|
|
14216
|
+
}
|
|
13965
14217
|
};
|
|
13966
14218
|
|
|
13967
14219
|
|
|
@@ -14271,6 +14523,44 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasActivationUntil = function
|
|
|
14271
14523
|
};
|
|
14272
14524
|
|
|
14273
14525
|
|
|
14526
|
+
/**
|
|
14527
|
+
* repeated DepositEligibleUserBonusRewardItem rewards = 10;
|
|
14528
|
+
* @return {!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>}
|
|
14529
|
+
*/
|
|
14530
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getRewardsList = function() {
|
|
14531
|
+
return /** @type{!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>} */ (
|
|
14532
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.DepositEligibleUserBonusRewardItem, 10));
|
|
14533
|
+
};
|
|
14534
|
+
|
|
14535
|
+
|
|
14536
|
+
/**
|
|
14537
|
+
* @param {!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>} value
|
|
14538
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
14539
|
+
*/
|
|
14540
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setRewardsList = function(value) {
|
|
14541
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
14542
|
+
};
|
|
14543
|
+
|
|
14544
|
+
|
|
14545
|
+
/**
|
|
14546
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem=} opt_value
|
|
14547
|
+
* @param {number=} opt_index
|
|
14548
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
14549
|
+
*/
|
|
14550
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.addRewards = function(opt_value, opt_index) {
|
|
14551
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.bonus.DepositEligibleUserBonusRewardItem, opt_index);
|
|
14552
|
+
};
|
|
14553
|
+
|
|
14554
|
+
|
|
14555
|
+
/**
|
|
14556
|
+
* Clears the list making it empty but non-null.
|
|
14557
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
14558
|
+
*/
|
|
14559
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearRewardsList = function() {
|
|
14560
|
+
return this.setRewardsList([]);
|
|
14561
|
+
};
|
|
14562
|
+
|
|
14563
|
+
|
|
14274
14564
|
|
|
14275
14565
|
|
|
14276
14566
|
|
package/cms/cms.proto
CHANGED
|
@@ -124,6 +124,14 @@ service CMS {
|
|
|
124
124
|
rpc updateSingleTokenWidget(stream TokenWidgetRequest) returns (TokenWidgetResponse);
|
|
125
125
|
rpc deleteSingleTokenWidget(GetTokenWidgetRequest) returns (TokenWidgetStatusResponse);
|
|
126
126
|
rpc readListTokenWidgets(PaginationRequest) returns (TokenWidgetsItemsResponse);
|
|
127
|
+
//Custom Widgets
|
|
128
|
+
rpc createSingleCustomWidget(CustomWidgetRequest) returns (CustomWidgetResponse);
|
|
129
|
+
rpc readSingleCustomWidget(GetCustomWidgetRequest) returns (CustomWidgetResponse);
|
|
130
|
+
rpc updateSingleCustomWidget(CustomWidgetRequest) returns (CustomWidgetResponse);
|
|
131
|
+
rpc deleteSingleCustomWidget(GetCustomWidgetRequest) returns (CustomWidgetStatusResponse);
|
|
132
|
+
rpc readListCustomWidgets(PaginationRequest) returns (CustomWidgetsItemsResponse);
|
|
133
|
+
rpc updateCustomWidgetsInBunch(ItemsBunchRequest) returns (CustomWidgetStatusResponse);
|
|
134
|
+
rpc readCustomWidgetForUser(GetCustomWidgetForUserRequest) returns (CustomWidgetResponse);
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
message PingRequest { string ping = 1; }
|
|
@@ -639,6 +647,51 @@ message TokenWidgetsItemsResponse {
|
|
|
639
647
|
optional int32 total_pages = 2;
|
|
640
648
|
optional int32 total_items = 3;
|
|
641
649
|
}
|
|
650
|
+
//Custom Widget CRUD
|
|
651
|
+
message CustomWidgetRequest {
|
|
652
|
+
optional int32 id = 1;
|
|
653
|
+
optional string title = 2;
|
|
654
|
+
optional string slug = 3;
|
|
655
|
+
optional int32 is_active = 4;
|
|
656
|
+
repeated string geo = 5;
|
|
657
|
+
repeated CustomWidgetRow items = 6;
|
|
658
|
+
}
|
|
659
|
+
message CustomWidgetRow {
|
|
660
|
+
optional string item_type = 1; // validated against runtime customWidgetItems keys
|
|
661
|
+
optional int32 priority_order = 2;
|
|
662
|
+
optional string config = 3; // JSON string; item-type-specific settings
|
|
663
|
+
}
|
|
664
|
+
message CustomWidgetItem {
|
|
665
|
+
optional int32 id = 1;
|
|
666
|
+
optional string title = 2;
|
|
667
|
+
optional string slug = 3;
|
|
668
|
+
optional int32 is_active = 4;
|
|
669
|
+
repeated string geo = 5;
|
|
670
|
+
repeated CustomWidgetRow items = 6;
|
|
671
|
+
optional string created_at = 7;
|
|
672
|
+
optional string updated_at = 8;
|
|
673
|
+
}
|
|
674
|
+
message CustomWidgetResponse {
|
|
675
|
+
CustomWidgetItem data = 1;
|
|
676
|
+
}
|
|
677
|
+
message GetCustomWidgetRequest {
|
|
678
|
+
int32 id = 1;
|
|
679
|
+
optional bool admin_side = 2;
|
|
680
|
+
}
|
|
681
|
+
message GetCustomWidgetForUserRequest {
|
|
682
|
+
int32 id = 1;
|
|
683
|
+
optional string geo = 2;
|
|
684
|
+
optional string locale = 3;
|
|
685
|
+
optional bool is_mobile = 4;
|
|
686
|
+
}
|
|
687
|
+
message CustomWidgetsItemsResponse {
|
|
688
|
+
repeated CustomWidgetItem items = 1;
|
|
689
|
+
optional int32 total_pages = 2;
|
|
690
|
+
optional int32 total_items = 3;
|
|
691
|
+
}
|
|
692
|
+
message CustomWidgetStatusResponse {
|
|
693
|
+
string status = 1;
|
|
694
|
+
}
|
|
642
695
|
//Translations
|
|
643
696
|
message TranslationItem {
|
|
644
697
|
optional string geo = 1;
|
|
@@ -1039,7 +1092,7 @@ message FooterApplicationsStatusResponse {
|
|
|
1039
1092
|
message GetFooterApplicationsRequest {
|
|
1040
1093
|
optional int32 id = 1;
|
|
1041
1094
|
}
|
|
1042
|
-
// Footer: BrandCore
|
|
1095
|
+
// Footer: BrandCore
|
|
1043
1096
|
// =============================
|
|
1044
1097
|
|
|
1045
1098
|
// Single BrandCore item
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -103,6 +103,50 @@ function deserialize_cms_CommonWidgetRequest(buffer_arg) {
|
|
|
103
103
|
return cms_pb.CommonWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
function serialize_cms_CustomWidgetRequest(arg) {
|
|
107
|
+
if (!(arg instanceof cms_pb.CustomWidgetRequest)) {
|
|
108
|
+
throw new Error('Expected argument of type cms.CustomWidgetRequest');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_cms_CustomWidgetRequest(buffer_arg) {
|
|
114
|
+
return cms_pb.CustomWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function serialize_cms_CustomWidgetResponse(arg) {
|
|
118
|
+
if (!(arg instanceof cms_pb.CustomWidgetResponse)) {
|
|
119
|
+
throw new Error('Expected argument of type cms.CustomWidgetResponse');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_cms_CustomWidgetResponse(buffer_arg) {
|
|
125
|
+
return cms_pb.CustomWidgetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function serialize_cms_CustomWidgetStatusResponse(arg) {
|
|
129
|
+
if (!(arg instanceof cms_pb.CustomWidgetStatusResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type cms.CustomWidgetStatusResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_cms_CustomWidgetStatusResponse(buffer_arg) {
|
|
136
|
+
return cms_pb.CustomWidgetStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function serialize_cms_CustomWidgetsItemsResponse(arg) {
|
|
140
|
+
if (!(arg instanceof cms_pb.CustomWidgetsItemsResponse)) {
|
|
141
|
+
throw new Error('Expected argument of type cms.CustomWidgetsItemsResponse');
|
|
142
|
+
}
|
|
143
|
+
return Buffer.from(arg.serializeBinary());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function deserialize_cms_CustomWidgetsItemsResponse(buffer_arg) {
|
|
147
|
+
return cms_pb.CustomWidgetsItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
|
+
}
|
|
149
|
+
|
|
106
150
|
function serialize_cms_DeleteFooterPartnersMediaRequest(arg) {
|
|
107
151
|
if (!(arg instanceof cms_pb.DeleteFooterPartnersMediaRequest)) {
|
|
108
152
|
throw new Error('Expected argument of type cms.DeleteFooterPartnersMediaRequest');
|
|
@@ -532,6 +576,28 @@ function deserialize_cms_GetBurgerMenuWidgetRequest(buffer_arg) {
|
|
|
532
576
|
return cms_pb.GetBurgerMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
533
577
|
}
|
|
534
578
|
|
|
579
|
+
function serialize_cms_GetCustomWidgetForUserRequest(arg) {
|
|
580
|
+
if (!(arg instanceof cms_pb.GetCustomWidgetForUserRequest)) {
|
|
581
|
+
throw new Error('Expected argument of type cms.GetCustomWidgetForUserRequest');
|
|
582
|
+
}
|
|
583
|
+
return Buffer.from(arg.serializeBinary());
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function deserialize_cms_GetCustomWidgetForUserRequest(buffer_arg) {
|
|
587
|
+
return cms_pb.GetCustomWidgetForUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
function serialize_cms_GetCustomWidgetRequest(arg) {
|
|
591
|
+
if (!(arg instanceof cms_pb.GetCustomWidgetRequest)) {
|
|
592
|
+
throw new Error('Expected argument of type cms.GetCustomWidgetRequest');
|
|
593
|
+
}
|
|
594
|
+
return Buffer.from(arg.serializeBinary());
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
function deserialize_cms_GetCustomWidgetRequest(buffer_arg) {
|
|
598
|
+
return cms_pb.GetCustomWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
599
|
+
}
|
|
600
|
+
|
|
535
601
|
function serialize_cms_GetFileRequest(arg) {
|
|
536
602
|
if (!(arg instanceof cms_pb.GetFileRequest)) {
|
|
537
603
|
throw new Error('Expected argument of type cms.GetFileRequest');
|
|
@@ -2373,6 +2439,84 @@ createSingleTokenWidget: {
|
|
|
2373
2439
|
responseSerialize: serialize_cms_TokenWidgetsItemsResponse,
|
|
2374
2440
|
responseDeserialize: deserialize_cms_TokenWidgetsItemsResponse,
|
|
2375
2441
|
},
|
|
2442
|
+
// Custom Widgets
|
|
2443
|
+
createSingleCustomWidget: {
|
|
2444
|
+
path: '/cms.CMS/createSingleCustomWidget',
|
|
2445
|
+
requestStream: false,
|
|
2446
|
+
responseStream: false,
|
|
2447
|
+
requestType: cms_pb.CustomWidgetRequest,
|
|
2448
|
+
responseType: cms_pb.CustomWidgetResponse,
|
|
2449
|
+
requestSerialize: serialize_cms_CustomWidgetRequest,
|
|
2450
|
+
requestDeserialize: deserialize_cms_CustomWidgetRequest,
|
|
2451
|
+
responseSerialize: serialize_cms_CustomWidgetResponse,
|
|
2452
|
+
responseDeserialize: deserialize_cms_CustomWidgetResponse,
|
|
2453
|
+
},
|
|
2454
|
+
readSingleCustomWidget: {
|
|
2455
|
+
path: '/cms.CMS/readSingleCustomWidget',
|
|
2456
|
+
requestStream: false,
|
|
2457
|
+
responseStream: false,
|
|
2458
|
+
requestType: cms_pb.GetCustomWidgetRequest,
|
|
2459
|
+
responseType: cms_pb.CustomWidgetResponse,
|
|
2460
|
+
requestSerialize: serialize_cms_GetCustomWidgetRequest,
|
|
2461
|
+
requestDeserialize: deserialize_cms_GetCustomWidgetRequest,
|
|
2462
|
+
responseSerialize: serialize_cms_CustomWidgetResponse,
|
|
2463
|
+
responseDeserialize: deserialize_cms_CustomWidgetResponse,
|
|
2464
|
+
},
|
|
2465
|
+
updateSingleCustomWidget: {
|
|
2466
|
+
path: '/cms.CMS/updateSingleCustomWidget',
|
|
2467
|
+
requestStream: false,
|
|
2468
|
+
responseStream: false,
|
|
2469
|
+
requestType: cms_pb.CustomWidgetRequest,
|
|
2470
|
+
responseType: cms_pb.CustomWidgetResponse,
|
|
2471
|
+
requestSerialize: serialize_cms_CustomWidgetRequest,
|
|
2472
|
+
requestDeserialize: deserialize_cms_CustomWidgetRequest,
|
|
2473
|
+
responseSerialize: serialize_cms_CustomWidgetResponse,
|
|
2474
|
+
responseDeserialize: deserialize_cms_CustomWidgetResponse,
|
|
2475
|
+
},
|
|
2476
|
+
deleteSingleCustomWidget: {
|
|
2477
|
+
path: '/cms.CMS/deleteSingleCustomWidget',
|
|
2478
|
+
requestStream: false,
|
|
2479
|
+
responseStream: false,
|
|
2480
|
+
requestType: cms_pb.GetCustomWidgetRequest,
|
|
2481
|
+
responseType: cms_pb.CustomWidgetStatusResponse,
|
|
2482
|
+
requestSerialize: serialize_cms_GetCustomWidgetRequest,
|
|
2483
|
+
requestDeserialize: deserialize_cms_GetCustomWidgetRequest,
|
|
2484
|
+
responseSerialize: serialize_cms_CustomWidgetStatusResponse,
|
|
2485
|
+
responseDeserialize: deserialize_cms_CustomWidgetStatusResponse,
|
|
2486
|
+
},
|
|
2487
|
+
readListCustomWidgets: {
|
|
2488
|
+
path: '/cms.CMS/readListCustomWidgets',
|
|
2489
|
+
requestStream: false,
|
|
2490
|
+
responseStream: false,
|
|
2491
|
+
requestType: cms_pb.PaginationRequest,
|
|
2492
|
+
responseType: cms_pb.CustomWidgetsItemsResponse,
|
|
2493
|
+
requestSerialize: serialize_cms_PaginationRequest,
|
|
2494
|
+
requestDeserialize: deserialize_cms_PaginationRequest,
|
|
2495
|
+
responseSerialize: serialize_cms_CustomWidgetsItemsResponse,
|
|
2496
|
+
responseDeserialize: deserialize_cms_CustomWidgetsItemsResponse,
|
|
2497
|
+
},
|
|
2498
|
+
updateCustomWidgetsInBunch: {
|
|
2499
|
+
path: '/cms.CMS/updateCustomWidgetsInBunch',
|
|
2500
|
+
requestStream: false,
|
|
2501
|
+
responseStream: false,
|
|
2502
|
+
requestType: cms_pb.ItemsBunchRequest,
|
|
2503
|
+
responseType: cms_pb.CustomWidgetStatusResponse,
|
|
2504
|
+
requestSerialize: serialize_cms_ItemsBunchRequest,
|
|
2505
|
+
requestDeserialize: deserialize_cms_ItemsBunchRequest,
|
|
2506
|
+
responseSerialize: serialize_cms_CustomWidgetStatusResponse,
|
|
2507
|
+
responseDeserialize: deserialize_cms_CustomWidgetStatusResponse,
|
|
2508
|
+
},
|
|
2509
|
+
readCustomWidgetForUser: {
|
|
2510
|
+
path: '/cms.CMS/readCustomWidgetForUser',
|
|
2511
|
+
requestStream: false,
|
|
2512
|
+
responseStream: false,
|
|
2513
|
+
requestType: cms_pb.GetCustomWidgetForUserRequest,
|
|
2514
|
+
responseType: cms_pb.CustomWidgetResponse,
|
|
2515
|
+
requestSerialize: serialize_cms_GetCustomWidgetForUserRequest,
|
|
2516
|
+
requestDeserialize: deserialize_cms_GetCustomWidgetForUserRequest,
|
|
2517
|
+
responseSerialize: serialize_cms_CustomWidgetResponse,
|
|
2518
|
+
responseDeserialize: deserialize_cms_CustomWidgetResponse,
|
|
2519
|
+
},
|
|
2376
2520
|
};
|
|
2377
2521
|
|
|
2378
2522
|
exports.CMSClient = grpc.makeGenericClientConstructor(CMSService, 'CMS');
|