protobuf-platform 1.2.55 → 1.2.56
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/cashback/cashback.proto +5 -0
- package/cashback/cashback_grpc_pb.js +22 -0
- package/cashback/cashback_pb.js +228 -0
- package/game/game.proto +2 -0
- package/game/game_grpc_pb.js +22 -0
- package/loyalty/loyalty.proto +5 -0
- package/loyalty/loyalty_grpc_pb.js +22 -0
- package/loyalty/loyalty_pb.js +228 -0
- package/notification/notification.proto +5 -0
- package/notification/notification_grpc_pb.js +22 -0
- package/notification/notification_pb.js +228 -0
- package/package.json +1 -1
- package/payment/payment.proto +6 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +228 -0
- package/promocode/promocode.proto +5 -0
- package/promocode/promocode_grpc_pb.js +22 -0
- package/promocode/promocode_pb.js +228 -0
- package/tournament/tournament.proto +5 -0
- package/tournament/tournament_grpc_pb.js +22 -0
- package/tournament/tournament_pb.js +228 -0
package/cashback/cashback.proto
CHANGED
|
@@ -12,6 +12,7 @@ service Cashback {
|
|
|
12
12
|
rpc deleteSingleCashback(GetCashbackRequest) returns (CashbackStatusResponse);
|
|
13
13
|
rpc readListCashbacks(PaginationRequest) returns (CashbackItemsResponse);
|
|
14
14
|
rpc setCashbackConfig(CashbackConfigRequest) returns (CashbackConfigItem);
|
|
15
|
+
rpc updateCashbacksInBunch(ItemsBunchRequest) returns (CashbackStatusResponse);
|
|
15
16
|
//User
|
|
16
17
|
rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
|
|
17
18
|
rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
|
|
@@ -41,6 +42,10 @@ message SearchRequest {
|
|
|
41
42
|
repeated string type = 3;
|
|
42
43
|
optional int32 is_active = 4;
|
|
43
44
|
}
|
|
45
|
+
message ItemsBunchRequest {
|
|
46
|
+
repeated int32 ids = 1;
|
|
47
|
+
optional int32 is_active = 2;
|
|
48
|
+
}
|
|
44
49
|
//Cashback CRUD | Requests
|
|
45
50
|
message CashbackItem {
|
|
46
51
|
optional int32 id = 1;
|
|
@@ -114,6 +114,17 @@ function deserialize_cashback_GetFileRequest(buffer_arg) {
|
|
|
114
114
|
return cashback_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
function serialize_cashback_ItemsBunchRequest(arg) {
|
|
118
|
+
if (!(arg instanceof cashback_pb.ItemsBunchRequest)) {
|
|
119
|
+
throw new Error('Expected argument of type cashback.ItemsBunchRequest');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_cashback_ItemsBunchRequest(buffer_arg) {
|
|
125
|
+
return cashback_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
127
|
+
|
|
117
128
|
function serialize_cashback_PaginationRequest(arg) {
|
|
118
129
|
if (!(arg instanceof cashback_pb.PaginationRequest)) {
|
|
119
130
|
throw new Error('Expected argument of type cashback.PaginationRequest');
|
|
@@ -249,6 +260,17 @@ createSingleCashback: {
|
|
|
249
260
|
responseSerialize: serialize_cashback_CashbackConfigItem,
|
|
250
261
|
responseDeserialize: deserialize_cashback_CashbackConfigItem,
|
|
251
262
|
},
|
|
263
|
+
updateCashbacksInBunch: {
|
|
264
|
+
path: '/cashback.Cashback/updateCashbacksInBunch',
|
|
265
|
+
requestStream: false,
|
|
266
|
+
responseStream: false,
|
|
267
|
+
requestType: cashback_pb.ItemsBunchRequest,
|
|
268
|
+
responseType: cashback_pb.CashbackStatusResponse,
|
|
269
|
+
requestSerialize: serialize_cashback_ItemsBunchRequest,
|
|
270
|
+
requestDeserialize: deserialize_cashback_ItemsBunchRequest,
|
|
271
|
+
responseSerialize: serialize_cashback_CashbackStatusResponse,
|
|
272
|
+
responseDeserialize: deserialize_cashback_CashbackStatusResponse,
|
|
273
|
+
},
|
|
252
274
|
// User
|
|
253
275
|
getCashbackForUserByType: {
|
|
254
276
|
path: '/cashback.Cashback/getCashbackForUserByType',
|
package/cashback/cashback_pb.js
CHANGED
|
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.cashback.CashbackUserRequest', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.cashback.File', null, global);
|
|
35
35
|
goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.cashback.ItemsBunchRequest', null, global);
|
|
37
38
|
goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
|
|
38
39
|
goog.exportSymbol('proto.cashback.PingRequest', null, global);
|
|
39
40
|
goog.exportSymbol('proto.cashback.PongResponse', null, global);
|
|
@@ -188,6 +189,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
188
189
|
*/
|
|
189
190
|
proto.cashback.SearchRequest.displayName = 'proto.cashback.SearchRequest';
|
|
190
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Generated by JsPbCodeGenerator.
|
|
194
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
195
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
196
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
197
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
198
|
+
* valid.
|
|
199
|
+
* @extends {jspb.Message}
|
|
200
|
+
* @constructor
|
|
201
|
+
*/
|
|
202
|
+
proto.cashback.ItemsBunchRequest = function(opt_data) {
|
|
203
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.ItemsBunchRequest.repeatedFields_, null);
|
|
204
|
+
};
|
|
205
|
+
goog.inherits(proto.cashback.ItemsBunchRequest, jspb.Message);
|
|
206
|
+
if (goog.DEBUG && !COMPILED) {
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
* @override
|
|
210
|
+
*/
|
|
211
|
+
proto.cashback.ItemsBunchRequest.displayName = 'proto.cashback.ItemsBunchRequest';
|
|
212
|
+
}
|
|
191
213
|
/**
|
|
192
214
|
* Generated by JsPbCodeGenerator.
|
|
193
215
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1965,6 +1987,212 @@ proto.cashback.SearchRequest.prototype.hasIsActive = function() {
|
|
|
1965
1987
|
|
|
1966
1988
|
|
|
1967
1989
|
|
|
1990
|
+
/**
|
|
1991
|
+
* List of repeated fields within this message type.
|
|
1992
|
+
* @private {!Array<number>}
|
|
1993
|
+
* @const
|
|
1994
|
+
*/
|
|
1995
|
+
proto.cashback.ItemsBunchRequest.repeatedFields_ = [1];
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2000
|
+
/**
|
|
2001
|
+
* Creates an object representation of this proto.
|
|
2002
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2003
|
+
* Optional fields that are not set will be set to undefined.
|
|
2004
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2005
|
+
* For the list of reserved names please see:
|
|
2006
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2007
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2008
|
+
* JSPB instance for transitional soy proto support:
|
|
2009
|
+
* http://goto/soy-param-migration
|
|
2010
|
+
* @return {!Object}
|
|
2011
|
+
*/
|
|
2012
|
+
proto.cashback.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2013
|
+
return proto.cashback.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* Static version of the {@see toObject} method.
|
|
2019
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2020
|
+
* the JSPB instance for transitional soy proto support:
|
|
2021
|
+
* http://goto/soy-param-migration
|
|
2022
|
+
* @param {!proto.cashback.ItemsBunchRequest} msg The msg instance to transform.
|
|
2023
|
+
* @return {!Object}
|
|
2024
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2025
|
+
*/
|
|
2026
|
+
proto.cashback.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
2027
|
+
var f, obj = {
|
|
2028
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2029
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2030
|
+
};
|
|
2031
|
+
|
|
2032
|
+
if (includeInstance) {
|
|
2033
|
+
obj.$jspbMessageInstance = msg;
|
|
2034
|
+
}
|
|
2035
|
+
return obj;
|
|
2036
|
+
};
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2042
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2043
|
+
* @return {!proto.cashback.ItemsBunchRequest}
|
|
2044
|
+
*/
|
|
2045
|
+
proto.cashback.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
2046
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2047
|
+
var msg = new proto.cashback.ItemsBunchRequest;
|
|
2048
|
+
return proto.cashback.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2054
|
+
* given reader into the given message object.
|
|
2055
|
+
* @param {!proto.cashback.ItemsBunchRequest} msg The message object to deserialize into.
|
|
2056
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2057
|
+
* @return {!proto.cashback.ItemsBunchRequest}
|
|
2058
|
+
*/
|
|
2059
|
+
proto.cashback.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2060
|
+
while (reader.nextField()) {
|
|
2061
|
+
if (reader.isEndGroup()) {
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
var field = reader.getFieldNumber();
|
|
2065
|
+
switch (field) {
|
|
2066
|
+
case 1:
|
|
2067
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
2068
|
+
for (var i = 0; i < values.length; i++) {
|
|
2069
|
+
msg.addIds(values[i]);
|
|
2070
|
+
}
|
|
2071
|
+
break;
|
|
2072
|
+
case 2:
|
|
2073
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2074
|
+
msg.setIsActive(value);
|
|
2075
|
+
break;
|
|
2076
|
+
default:
|
|
2077
|
+
reader.skipField();
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
return msg;
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2087
|
+
* @return {!Uint8Array}
|
|
2088
|
+
*/
|
|
2089
|
+
proto.cashback.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
2090
|
+
var writer = new jspb.BinaryWriter();
|
|
2091
|
+
proto.cashback.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
2092
|
+
return writer.getResultBuffer();
|
|
2093
|
+
};
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2098
|
+
* format), writing to the given BinaryWriter.
|
|
2099
|
+
* @param {!proto.cashback.ItemsBunchRequest} message
|
|
2100
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2101
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2102
|
+
*/
|
|
2103
|
+
proto.cashback.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2104
|
+
var f = undefined;
|
|
2105
|
+
f = message.getIdsList();
|
|
2106
|
+
if (f.length > 0) {
|
|
2107
|
+
writer.writePackedInt32(
|
|
2108
|
+
1,
|
|
2109
|
+
f
|
|
2110
|
+
);
|
|
2111
|
+
}
|
|
2112
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
2113
|
+
if (f != null) {
|
|
2114
|
+
writer.writeInt32(
|
|
2115
|
+
2,
|
|
2116
|
+
f
|
|
2117
|
+
);
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* repeated int32 ids = 1;
|
|
2124
|
+
* @return {!Array<number>}
|
|
2125
|
+
*/
|
|
2126
|
+
proto.cashback.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
2127
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2128
|
+
};
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* @param {!Array<number>} value
|
|
2133
|
+
* @return {!proto.cashback.ItemsBunchRequest} returns this
|
|
2134
|
+
*/
|
|
2135
|
+
proto.cashback.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
2136
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* @param {number} value
|
|
2142
|
+
* @param {number=} opt_index
|
|
2143
|
+
* @return {!proto.cashback.ItemsBunchRequest} returns this
|
|
2144
|
+
*/
|
|
2145
|
+
proto.cashback.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
2146
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* Clears the list making it empty but non-null.
|
|
2152
|
+
* @return {!proto.cashback.ItemsBunchRequest} returns this
|
|
2153
|
+
*/
|
|
2154
|
+
proto.cashback.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
2155
|
+
return this.setIdsList([]);
|
|
2156
|
+
};
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* optional int32 is_active = 2;
|
|
2161
|
+
* @return {number}
|
|
2162
|
+
*/
|
|
2163
|
+
proto.cashback.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
2164
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* @param {number} value
|
|
2170
|
+
* @return {!proto.cashback.ItemsBunchRequest} returns this
|
|
2171
|
+
*/
|
|
2172
|
+
proto.cashback.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
2173
|
+
return jspb.Message.setField(this, 2, value);
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* Clears the field making it undefined.
|
|
2179
|
+
* @return {!proto.cashback.ItemsBunchRequest} returns this
|
|
2180
|
+
*/
|
|
2181
|
+
proto.cashback.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
2182
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Returns whether this field is set.
|
|
2188
|
+
* @return {boolean}
|
|
2189
|
+
*/
|
|
2190
|
+
proto.cashback.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
2191
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
1968
2196
|
/**
|
|
1969
2197
|
* List of repeated fields within this message type.
|
|
1970
2198
|
* @private {!Array<number>}
|
package/game/game.proto
CHANGED
|
@@ -88,6 +88,7 @@ service Game {
|
|
|
88
88
|
rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
|
|
89
89
|
rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
|
|
90
90
|
rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
|
|
91
|
+
rpc updateWagerListsInBunch(ItemsBunchRequest) returns (GameStatusResponse);
|
|
91
92
|
//CashBack lists
|
|
92
93
|
rpc readSingleCashBackList(GetCashBackListRequest) returns (CashBackListResponse);
|
|
93
94
|
rpc createSingleCashBackList(CashBackListRequest) returns (CashBackListResponse);
|
|
@@ -97,6 +98,7 @@ service Game {
|
|
|
97
98
|
rpc addGamesIntoCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
|
|
98
99
|
rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
|
|
99
100
|
rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
|
|
101
|
+
rpc updateCashBackListInBunch(ItemsBunchRequest) returns (GameStatusResponse);
|
|
100
102
|
//Dashboard
|
|
101
103
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
|
102
104
|
//SEO
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -1777,6 +1777,17 @@ readSingleWagerList: {
|
|
|
1777
1777
|
responseSerialize: serialize_game_WagerListItemsResponse,
|
|
1778
1778
|
responseDeserialize: deserialize_game_WagerListItemsResponse,
|
|
1779
1779
|
},
|
|
1780
|
+
updateWagerListsInBunch: {
|
|
1781
|
+
path: '/game.Game/updateWagerListsInBunch',
|
|
1782
|
+
requestStream: false,
|
|
1783
|
+
responseStream: false,
|
|
1784
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1785
|
+
responseType: game_pb.GameStatusResponse,
|
|
1786
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1787
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1788
|
+
responseSerialize: serialize_game_GameStatusResponse,
|
|
1789
|
+
responseDeserialize: deserialize_game_GameStatusResponse,
|
|
1790
|
+
},
|
|
1780
1791
|
// CashBack lists
|
|
1781
1792
|
readSingleCashBackList: {
|
|
1782
1793
|
path: '/game.Game/readSingleCashBackList',
|
|
@@ -1866,6 +1877,17 @@ readSingleCashBackList: {
|
|
|
1866
1877
|
responseSerialize: serialize_game_GameItemsResponse,
|
|
1867
1878
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
|
1868
1879
|
},
|
|
1880
|
+
updateCashBackListInBunch: {
|
|
1881
|
+
path: '/game.Game/updateCashBackListInBunch',
|
|
1882
|
+
requestStream: false,
|
|
1883
|
+
responseStream: false,
|
|
1884
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1885
|
+
responseType: game_pb.GameStatusResponse,
|
|
1886
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1887
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1888
|
+
responseSerialize: serialize_game_GameStatusResponse,
|
|
1889
|
+
responseDeserialize: deserialize_game_GameStatusResponse,
|
|
1890
|
+
},
|
|
1869
1891
|
// Dashboard
|
|
1870
1892
|
getDashboardInfo: {
|
|
1871
1893
|
path: '/game.Game/getDashboardInfo',
|
package/loyalty/loyalty.proto
CHANGED
|
@@ -13,6 +13,7 @@ service Loyalty {
|
|
|
13
13
|
rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
|
|
14
14
|
rpc setLoyaltyLevelTranslation(LevelTranslationRequest) returns (LevelStatusResponse);
|
|
15
15
|
rpc getLoyaltyLevelTranslation(GetLevelTranslationRequest) returns (LevelTranslationResponse);
|
|
16
|
+
rpc updateLevelsInBunch(ItemsBunchRequest) returns (LevelStatusResponse);
|
|
16
17
|
//Loyalty Points
|
|
17
18
|
rpc createSinglePoint(PointRequest) returns (PointResponse);
|
|
18
19
|
rpc readSinglePoint(GetPointRequest) returns (PointResponse);
|
|
@@ -44,6 +45,10 @@ message LoyaltySearchRequest {
|
|
|
44
45
|
optional int32 number_of_deposit = 8;
|
|
45
46
|
optional int32 number_of_step = 9;
|
|
46
47
|
}
|
|
48
|
+
message ItemsBunchRequest {
|
|
49
|
+
repeated int32 ids = 1;
|
|
50
|
+
optional int32 is_active = 2;
|
|
51
|
+
}
|
|
47
52
|
//Media
|
|
48
53
|
message File { bytes media = 1; }
|
|
49
54
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
@@ -70,6 +70,17 @@ function deserialize_loyalty_GetUserLoyaltyRequest(buffer_arg) {
|
|
|
70
70
|
return loyalty_pb.GetUserLoyaltyRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_loyalty_ItemsBunchRequest(arg) {
|
|
74
|
+
if (!(arg instanceof loyalty_pb.ItemsBunchRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type loyalty.ItemsBunchRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_loyalty_ItemsBunchRequest(buffer_arg) {
|
|
81
|
+
return loyalty_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
73
84
|
function serialize_loyalty_LevelItemsResponse(arg) {
|
|
74
85
|
if (!(arg instanceof loyalty_pb.LevelItemsResponse)) {
|
|
75
86
|
throw new Error('Expected argument of type loyalty.LevelItemsResponse');
|
|
@@ -337,6 +348,17 @@ createSingleLevel: {
|
|
|
337
348
|
responseSerialize: serialize_loyalty_LevelTranslationResponse,
|
|
338
349
|
responseDeserialize: deserialize_loyalty_LevelTranslationResponse,
|
|
339
350
|
},
|
|
351
|
+
updateLevelsInBunch: {
|
|
352
|
+
path: '/loyalty.Loyalty/updateLevelsInBunch',
|
|
353
|
+
requestStream: false,
|
|
354
|
+
responseStream: false,
|
|
355
|
+
requestType: loyalty_pb.ItemsBunchRequest,
|
|
356
|
+
responseType: loyalty_pb.LevelStatusResponse,
|
|
357
|
+
requestSerialize: serialize_loyalty_ItemsBunchRequest,
|
|
358
|
+
requestDeserialize: deserialize_loyalty_ItemsBunchRequest,
|
|
359
|
+
responseSerialize: serialize_loyalty_LevelStatusResponse,
|
|
360
|
+
responseDeserialize: deserialize_loyalty_LevelStatusResponse,
|
|
361
|
+
},
|
|
340
362
|
// Loyalty Points
|
|
341
363
|
createSinglePoint: {
|
|
342
364
|
path: '/loyalty.Loyalty/createSinglePoint',
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -29,6 +29,7 @@ goog.exportSymbol('proto.loyalty.GetLevelRequest', null, global);
|
|
|
29
29
|
goog.exportSymbol('proto.loyalty.GetLevelTranslationRequest', null, global);
|
|
30
30
|
goog.exportSymbol('proto.loyalty.GetPointRequest', null, global);
|
|
31
31
|
goog.exportSymbol('proto.loyalty.GetUserLoyaltyRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.loyalty.ItemsBunchRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.loyalty.LevelItem', null, global);
|
|
33
34
|
goog.exportSymbol('proto.loyalty.LevelItemRequest', null, global);
|
|
34
35
|
goog.exportSymbol('proto.loyalty.LevelItemsResponse', null, global);
|
|
@@ -136,6 +137,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
136
137
|
*/
|
|
137
138
|
proto.loyalty.LoyaltySearchRequest.displayName = 'proto.loyalty.LoyaltySearchRequest';
|
|
138
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Generated by JsPbCodeGenerator.
|
|
142
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
143
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
144
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
145
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
146
|
+
* valid.
|
|
147
|
+
* @extends {jspb.Message}
|
|
148
|
+
* @constructor
|
|
149
|
+
*/
|
|
150
|
+
proto.loyalty.ItemsBunchRequest = function(opt_data) {
|
|
151
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.ItemsBunchRequest.repeatedFields_, null);
|
|
152
|
+
};
|
|
153
|
+
goog.inherits(proto.loyalty.ItemsBunchRequest, jspb.Message);
|
|
154
|
+
if (goog.DEBUG && !COMPILED) {
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
* @override
|
|
158
|
+
*/
|
|
159
|
+
proto.loyalty.ItemsBunchRequest.displayName = 'proto.loyalty.ItemsBunchRequest';
|
|
160
|
+
}
|
|
139
161
|
/**
|
|
140
162
|
* Generated by JsPbCodeGenerator.
|
|
141
163
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1791,6 +1813,212 @@ proto.loyalty.LoyaltySearchRequest.prototype.hasNumberOfStep = function() {
|
|
|
1791
1813
|
|
|
1792
1814
|
|
|
1793
1815
|
|
|
1816
|
+
/**
|
|
1817
|
+
* List of repeated fields within this message type.
|
|
1818
|
+
* @private {!Array<number>}
|
|
1819
|
+
* @const
|
|
1820
|
+
*/
|
|
1821
|
+
proto.loyalty.ItemsBunchRequest.repeatedFields_ = [1];
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1826
|
+
/**
|
|
1827
|
+
* Creates an object representation of this proto.
|
|
1828
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1829
|
+
* Optional fields that are not set will be set to undefined.
|
|
1830
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1831
|
+
* For the list of reserved names please see:
|
|
1832
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1833
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1834
|
+
* JSPB instance for transitional soy proto support:
|
|
1835
|
+
* http://goto/soy-param-migration
|
|
1836
|
+
* @return {!Object}
|
|
1837
|
+
*/
|
|
1838
|
+
proto.loyalty.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1839
|
+
return proto.loyalty.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Static version of the {@see toObject} method.
|
|
1845
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1846
|
+
* the JSPB instance for transitional soy proto support:
|
|
1847
|
+
* http://goto/soy-param-migration
|
|
1848
|
+
* @param {!proto.loyalty.ItemsBunchRequest} msg The msg instance to transform.
|
|
1849
|
+
* @return {!Object}
|
|
1850
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1851
|
+
*/
|
|
1852
|
+
proto.loyalty.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
1853
|
+
var f, obj = {
|
|
1854
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1855
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
if (includeInstance) {
|
|
1859
|
+
obj.$jspbMessageInstance = msg;
|
|
1860
|
+
}
|
|
1861
|
+
return obj;
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1868
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1869
|
+
* @return {!proto.loyalty.ItemsBunchRequest}
|
|
1870
|
+
*/
|
|
1871
|
+
proto.loyalty.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
1872
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1873
|
+
var msg = new proto.loyalty.ItemsBunchRequest;
|
|
1874
|
+
return proto.loyalty.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1880
|
+
* given reader into the given message object.
|
|
1881
|
+
* @param {!proto.loyalty.ItemsBunchRequest} msg The message object to deserialize into.
|
|
1882
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1883
|
+
* @return {!proto.loyalty.ItemsBunchRequest}
|
|
1884
|
+
*/
|
|
1885
|
+
proto.loyalty.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1886
|
+
while (reader.nextField()) {
|
|
1887
|
+
if (reader.isEndGroup()) {
|
|
1888
|
+
break;
|
|
1889
|
+
}
|
|
1890
|
+
var field = reader.getFieldNumber();
|
|
1891
|
+
switch (field) {
|
|
1892
|
+
case 1:
|
|
1893
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
1894
|
+
for (var i = 0; i < values.length; i++) {
|
|
1895
|
+
msg.addIds(values[i]);
|
|
1896
|
+
}
|
|
1897
|
+
break;
|
|
1898
|
+
case 2:
|
|
1899
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1900
|
+
msg.setIsActive(value);
|
|
1901
|
+
break;
|
|
1902
|
+
default:
|
|
1903
|
+
reader.skipField();
|
|
1904
|
+
break;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
return msg;
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1913
|
+
* @return {!Uint8Array}
|
|
1914
|
+
*/
|
|
1915
|
+
proto.loyalty.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
1916
|
+
var writer = new jspb.BinaryWriter();
|
|
1917
|
+
proto.loyalty.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
1918
|
+
return writer.getResultBuffer();
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1924
|
+
* format), writing to the given BinaryWriter.
|
|
1925
|
+
* @param {!proto.loyalty.ItemsBunchRequest} message
|
|
1926
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1927
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1928
|
+
*/
|
|
1929
|
+
proto.loyalty.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1930
|
+
var f = undefined;
|
|
1931
|
+
f = message.getIdsList();
|
|
1932
|
+
if (f.length > 0) {
|
|
1933
|
+
writer.writePackedInt32(
|
|
1934
|
+
1,
|
|
1935
|
+
f
|
|
1936
|
+
);
|
|
1937
|
+
}
|
|
1938
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1939
|
+
if (f != null) {
|
|
1940
|
+
writer.writeInt32(
|
|
1941
|
+
2,
|
|
1942
|
+
f
|
|
1943
|
+
);
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* repeated int32 ids = 1;
|
|
1950
|
+
* @return {!Array<number>}
|
|
1951
|
+
*/
|
|
1952
|
+
proto.loyalty.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
1953
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1954
|
+
};
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* @param {!Array<number>} value
|
|
1959
|
+
* @return {!proto.loyalty.ItemsBunchRequest} returns this
|
|
1960
|
+
*/
|
|
1961
|
+
proto.loyalty.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
1962
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* @param {number} value
|
|
1968
|
+
* @param {number=} opt_index
|
|
1969
|
+
* @return {!proto.loyalty.ItemsBunchRequest} returns this
|
|
1970
|
+
*/
|
|
1971
|
+
proto.loyalty.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
1972
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* Clears the list making it empty but non-null.
|
|
1978
|
+
* @return {!proto.loyalty.ItemsBunchRequest} returns this
|
|
1979
|
+
*/
|
|
1980
|
+
proto.loyalty.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
1981
|
+
return this.setIdsList([]);
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* optional int32 is_active = 2;
|
|
1987
|
+
* @return {number}
|
|
1988
|
+
*/
|
|
1989
|
+
proto.loyalty.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
1990
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* @param {number} value
|
|
1996
|
+
* @return {!proto.loyalty.ItemsBunchRequest} returns this
|
|
1997
|
+
*/
|
|
1998
|
+
proto.loyalty.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
1999
|
+
return jspb.Message.setField(this, 2, value);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Clears the field making it undefined.
|
|
2005
|
+
* @return {!proto.loyalty.ItemsBunchRequest} returns this
|
|
2006
|
+
*/
|
|
2007
|
+
proto.loyalty.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
2008
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Returns whether this field is set.
|
|
2014
|
+
* @return {boolean}
|
|
2015
|
+
*/
|
|
2016
|
+
proto.loyalty.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
2017
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
1794
2022
|
|
|
1795
2023
|
|
|
1796
2024
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -11,6 +11,7 @@ service Notification {
|
|
|
11
11
|
rpc updateSingleNotification(NotificationRequest) returns (NotificationResponse);
|
|
12
12
|
rpc deleteSingleNotification(GetNotificationRequest) returns (NotificationStatusResponse);
|
|
13
13
|
rpc readListNotifications(PaginationRequest) returns (NotificationItemsResponse);
|
|
14
|
+
rpc updateNotificationsInBunch(ItemsBunchRequest) returns (NotificationStatusResponse);
|
|
14
15
|
//Users
|
|
15
16
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
|
16
17
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
@@ -41,6 +42,10 @@ message UserSearchRequest {
|
|
|
41
42
|
optional int32 limit = 3;
|
|
42
43
|
optional int32 offset = 4;
|
|
43
44
|
}
|
|
45
|
+
message ItemsBunchRequest {
|
|
46
|
+
repeated int32 ids = 1;
|
|
47
|
+
optional int32 is_active = 2;
|
|
48
|
+
}
|
|
44
49
|
//Media
|
|
45
50
|
message File { bytes media = 1; }
|
|
46
51
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|