protobuf-platform 1.2.52 → 1.2.54
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/cms/cms.proto +7 -0
- package/cms/cms_grpc_pb.js +44 -0
- package/cms/cms_pb.js +228 -0
- package/game/game.proto +8 -0
- package/game/game_grpc_pb.js +55 -0
- package/game/game_pb.js +228 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -26,6 +26,7 @@ service CMS {
|
|
|
26
26
|
rpc deleteBannerGroup(GetBannerGroupRequest) returns (BannerStatusResponse);
|
|
27
27
|
rpc readListBannersGroup(PaginationRequest) returns (BannerGroupItemsResponse);
|
|
28
28
|
rpc fetchBannerGroupForUser(GetBannerGroupRequest) returns (UserBannerGroupResponse);
|
|
29
|
+
rpc updateBannersGroupInBunch(ItemsBunchRequest) returns (BannerStatusResponse);
|
|
29
30
|
//Pages
|
|
30
31
|
rpc createSinglePage(PageRequest) returns (PageResponse);
|
|
31
32
|
rpc readSinglePage(GetPageRequest) returns (PageResponse);
|
|
@@ -34,6 +35,7 @@ service CMS {
|
|
|
34
35
|
rpc readListPages(PaginationRequest) returns (PagesItemsResponse);
|
|
35
36
|
rpc setPageTranslation(PageTranslationRequest) returns (PageStatusResponse);
|
|
36
37
|
rpc getPageTranslation(GetPageTranslationRequest) returns (PageTranslationResponse);
|
|
38
|
+
rpc updatePagesInBunch(ItemsBunchRequest) returns (PageStatusResponse);
|
|
37
39
|
//Promo
|
|
38
40
|
rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
|
|
39
41
|
rpc readSinglePromo(GetPromoRequest) returns (PromoResponse);
|
|
@@ -43,6 +45,7 @@ service CMS {
|
|
|
43
45
|
rpc listPromosForUser(PaginationRequest) returns (PromosItemsResponse);
|
|
44
46
|
rpc setPromoTranslation(PromoTranslationRequest) returns (PromoStatusResponse);
|
|
45
47
|
rpc getPromoTranslation(GetPromoTranslationRequest) returns (PromoTranslationResponse);
|
|
48
|
+
rpc updatePromosInBunch(ItemsBunchRequest) returns (PromoStatusResponse);
|
|
46
49
|
//Game Widgets
|
|
47
50
|
rpc createSingleGameWidget(stream GameWidgetRequest) returns (GameWidgetResponse);
|
|
48
51
|
rpc readSingleGameWidget(GetGameWidgetRequest) returns (GameWidgetResponse);
|
|
@@ -64,6 +67,10 @@ message PaginationRequest {
|
|
|
64
67
|
optional string title = 8;
|
|
65
68
|
repeated string countries = 9;
|
|
66
69
|
}
|
|
70
|
+
message ItemsBunchRequest {
|
|
71
|
+
repeated int32 ids = 1;
|
|
72
|
+
optional int32 is_active = 2;
|
|
73
|
+
}
|
|
67
74
|
//Media
|
|
68
75
|
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
|
69
76
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -279,6 +279,17 @@ function deserialize_cms_GetSignUpFormWidgetRequest(buffer_arg) {
|
|
|
279
279
|
return cms_pb.GetSignUpFormWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
+
function serialize_cms_ItemsBunchRequest(arg) {
|
|
283
|
+
if (!(arg instanceof cms_pb.ItemsBunchRequest)) {
|
|
284
|
+
throw new Error('Expected argument of type cms.ItemsBunchRequest');
|
|
285
|
+
}
|
|
286
|
+
return Buffer.from(arg.serializeBinary());
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function deserialize_cms_ItemsBunchRequest(buffer_arg) {
|
|
290
|
+
return cms_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
291
|
+
}
|
|
292
|
+
|
|
282
293
|
function serialize_cms_MainPageWidgetItem(arg) {
|
|
283
294
|
if (!(arg instanceof cms_pb.MainPageWidgetItem)) {
|
|
284
295
|
throw new Error('Expected argument of type cms.MainPageWidgetItem');
|
|
@@ -713,6 +724,17 @@ createBannerGroup: {
|
|
|
713
724
|
responseSerialize: serialize_cms_UserBannerGroupResponse,
|
|
714
725
|
responseDeserialize: deserialize_cms_UserBannerGroupResponse,
|
|
715
726
|
},
|
|
727
|
+
updateBannersGroupInBunch: {
|
|
728
|
+
path: '/cms.CMS/updateBannersGroupInBunch',
|
|
729
|
+
requestStream: false,
|
|
730
|
+
responseStream: false,
|
|
731
|
+
requestType: cms_pb.ItemsBunchRequest,
|
|
732
|
+
responseType: cms_pb.BannerStatusResponse,
|
|
733
|
+
requestSerialize: serialize_cms_ItemsBunchRequest,
|
|
734
|
+
requestDeserialize: deserialize_cms_ItemsBunchRequest,
|
|
735
|
+
responseSerialize: serialize_cms_BannerStatusResponse,
|
|
736
|
+
responseDeserialize: deserialize_cms_BannerStatusResponse,
|
|
737
|
+
},
|
|
716
738
|
// Pages
|
|
717
739
|
createSinglePage: {
|
|
718
740
|
path: '/cms.CMS/createSinglePage',
|
|
@@ -791,6 +813,17 @@ createSinglePage: {
|
|
|
791
813
|
responseSerialize: serialize_cms_PageTranslationResponse,
|
|
792
814
|
responseDeserialize: deserialize_cms_PageTranslationResponse,
|
|
793
815
|
},
|
|
816
|
+
updatePagesInBunch: {
|
|
817
|
+
path: '/cms.CMS/updatePagesInBunch',
|
|
818
|
+
requestStream: false,
|
|
819
|
+
responseStream: false,
|
|
820
|
+
requestType: cms_pb.ItemsBunchRequest,
|
|
821
|
+
responseType: cms_pb.PageStatusResponse,
|
|
822
|
+
requestSerialize: serialize_cms_ItemsBunchRequest,
|
|
823
|
+
requestDeserialize: deserialize_cms_ItemsBunchRequest,
|
|
824
|
+
responseSerialize: serialize_cms_PageStatusResponse,
|
|
825
|
+
responseDeserialize: deserialize_cms_PageStatusResponse,
|
|
826
|
+
},
|
|
794
827
|
// Promo
|
|
795
828
|
createSinglePromo: {
|
|
796
829
|
path: '/cms.CMS/createSinglePromo',
|
|
@@ -880,6 +913,17 @@ createSinglePromo: {
|
|
|
880
913
|
responseSerialize: serialize_cms_PromoTranslationResponse,
|
|
881
914
|
responseDeserialize: deserialize_cms_PromoTranslationResponse,
|
|
882
915
|
},
|
|
916
|
+
updatePromosInBunch: {
|
|
917
|
+
path: '/cms.CMS/updatePromosInBunch',
|
|
918
|
+
requestStream: false,
|
|
919
|
+
responseStream: false,
|
|
920
|
+
requestType: cms_pb.ItemsBunchRequest,
|
|
921
|
+
responseType: cms_pb.PromoStatusResponse,
|
|
922
|
+
requestSerialize: serialize_cms_ItemsBunchRequest,
|
|
923
|
+
requestDeserialize: deserialize_cms_ItemsBunchRequest,
|
|
924
|
+
responseSerialize: serialize_cms_PromoStatusResponse,
|
|
925
|
+
responseDeserialize: deserialize_cms_PromoStatusResponse,
|
|
926
|
+
},
|
|
883
927
|
// Game Widgets
|
|
884
928
|
createSingleGameWidget: {
|
|
885
929
|
path: '/cms.CMS/createSingleGameWidget',
|
package/cms/cms_pb.js
CHANGED
|
@@ -54,6 +54,7 @@ goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
|
|
|
54
54
|
goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
|
|
55
55
|
goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
|
|
56
56
|
goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
|
|
57
|
+
goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
|
|
57
58
|
goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
|
|
58
59
|
goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
|
|
59
60
|
goog.exportSymbol('proto.cms.PageItem', null, global);
|
|
@@ -142,6 +143,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
142
143
|
*/
|
|
143
144
|
proto.cms.PaginationRequest.displayName = 'proto.cms.PaginationRequest';
|
|
144
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Generated by JsPbCodeGenerator.
|
|
148
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
149
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
150
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
151
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
152
|
+
* valid.
|
|
153
|
+
* @extends {jspb.Message}
|
|
154
|
+
* @constructor
|
|
155
|
+
*/
|
|
156
|
+
proto.cms.ItemsBunchRequest = function(opt_data) {
|
|
157
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.ItemsBunchRequest.repeatedFields_, null);
|
|
158
|
+
};
|
|
159
|
+
goog.inherits(proto.cms.ItemsBunchRequest, jspb.Message);
|
|
160
|
+
if (goog.DEBUG && !COMPILED) {
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
* @override
|
|
164
|
+
*/
|
|
165
|
+
proto.cms.ItemsBunchRequest.displayName = 'proto.cms.ItemsBunchRequest';
|
|
166
|
+
}
|
|
145
167
|
/**
|
|
146
168
|
* Generated by JsPbCodeGenerator.
|
|
147
169
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1999,6 +2021,212 @@ proto.cms.PaginationRequest.prototype.clearCountriesList = function() {
|
|
|
1999
2021
|
|
|
2000
2022
|
|
|
2001
2023
|
|
|
2024
|
+
/**
|
|
2025
|
+
* List of repeated fields within this message type.
|
|
2026
|
+
* @private {!Array<number>}
|
|
2027
|
+
* @const
|
|
2028
|
+
*/
|
|
2029
|
+
proto.cms.ItemsBunchRequest.repeatedFields_ = [1];
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2034
|
+
/**
|
|
2035
|
+
* Creates an object representation of this proto.
|
|
2036
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2037
|
+
* Optional fields that are not set will be set to undefined.
|
|
2038
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2039
|
+
* For the list of reserved names please see:
|
|
2040
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2041
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2042
|
+
* JSPB instance for transitional soy proto support:
|
|
2043
|
+
* http://goto/soy-param-migration
|
|
2044
|
+
* @return {!Object}
|
|
2045
|
+
*/
|
|
2046
|
+
proto.cms.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2047
|
+
return proto.cms.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
2048
|
+
};
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* Static version of the {@see toObject} method.
|
|
2053
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2054
|
+
* the JSPB instance for transitional soy proto support:
|
|
2055
|
+
* http://goto/soy-param-migration
|
|
2056
|
+
* @param {!proto.cms.ItemsBunchRequest} msg The msg instance to transform.
|
|
2057
|
+
* @return {!Object}
|
|
2058
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2059
|
+
*/
|
|
2060
|
+
proto.cms.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
2061
|
+
var f, obj = {
|
|
2062
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2063
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
if (includeInstance) {
|
|
2067
|
+
obj.$jspbMessageInstance = msg;
|
|
2068
|
+
}
|
|
2069
|
+
return obj;
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2076
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2077
|
+
* @return {!proto.cms.ItemsBunchRequest}
|
|
2078
|
+
*/
|
|
2079
|
+
proto.cms.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
2080
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2081
|
+
var msg = new proto.cms.ItemsBunchRequest;
|
|
2082
|
+
return proto.cms.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
2083
|
+
};
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2088
|
+
* given reader into the given message object.
|
|
2089
|
+
* @param {!proto.cms.ItemsBunchRequest} msg The message object to deserialize into.
|
|
2090
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2091
|
+
* @return {!proto.cms.ItemsBunchRequest}
|
|
2092
|
+
*/
|
|
2093
|
+
proto.cms.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2094
|
+
while (reader.nextField()) {
|
|
2095
|
+
if (reader.isEndGroup()) {
|
|
2096
|
+
break;
|
|
2097
|
+
}
|
|
2098
|
+
var field = reader.getFieldNumber();
|
|
2099
|
+
switch (field) {
|
|
2100
|
+
case 1:
|
|
2101
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
2102
|
+
for (var i = 0; i < values.length; i++) {
|
|
2103
|
+
msg.addIds(values[i]);
|
|
2104
|
+
}
|
|
2105
|
+
break;
|
|
2106
|
+
case 2:
|
|
2107
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2108
|
+
msg.setIsActive(value);
|
|
2109
|
+
break;
|
|
2110
|
+
default:
|
|
2111
|
+
reader.skipField();
|
|
2112
|
+
break;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
return msg;
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2121
|
+
* @return {!Uint8Array}
|
|
2122
|
+
*/
|
|
2123
|
+
proto.cms.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
2124
|
+
var writer = new jspb.BinaryWriter();
|
|
2125
|
+
proto.cms.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
2126
|
+
return writer.getResultBuffer();
|
|
2127
|
+
};
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2132
|
+
* format), writing to the given BinaryWriter.
|
|
2133
|
+
* @param {!proto.cms.ItemsBunchRequest} message
|
|
2134
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2135
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2136
|
+
*/
|
|
2137
|
+
proto.cms.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2138
|
+
var f = undefined;
|
|
2139
|
+
f = message.getIdsList();
|
|
2140
|
+
if (f.length > 0) {
|
|
2141
|
+
writer.writePackedInt32(
|
|
2142
|
+
1,
|
|
2143
|
+
f
|
|
2144
|
+
);
|
|
2145
|
+
}
|
|
2146
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
2147
|
+
if (f != null) {
|
|
2148
|
+
writer.writeInt32(
|
|
2149
|
+
2,
|
|
2150
|
+
f
|
|
2151
|
+
);
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* repeated int32 ids = 1;
|
|
2158
|
+
* @return {!Array<number>}
|
|
2159
|
+
*/
|
|
2160
|
+
proto.cms.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
2161
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2162
|
+
};
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* @param {!Array<number>} value
|
|
2167
|
+
* @return {!proto.cms.ItemsBunchRequest} returns this
|
|
2168
|
+
*/
|
|
2169
|
+
proto.cms.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
2170
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* @param {number} value
|
|
2176
|
+
* @param {number=} opt_index
|
|
2177
|
+
* @return {!proto.cms.ItemsBunchRequest} returns this
|
|
2178
|
+
*/
|
|
2179
|
+
proto.cms.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
2180
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* Clears the list making it empty but non-null.
|
|
2186
|
+
* @return {!proto.cms.ItemsBunchRequest} returns this
|
|
2187
|
+
*/
|
|
2188
|
+
proto.cms.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
2189
|
+
return this.setIdsList([]);
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* optional int32 is_active = 2;
|
|
2195
|
+
* @return {number}
|
|
2196
|
+
*/
|
|
2197
|
+
proto.cms.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
2198
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2199
|
+
};
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* @param {number} value
|
|
2204
|
+
* @return {!proto.cms.ItemsBunchRequest} returns this
|
|
2205
|
+
*/
|
|
2206
|
+
proto.cms.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
2207
|
+
return jspb.Message.setField(this, 2, value);
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* Clears the field making it undefined.
|
|
2213
|
+
* @return {!proto.cms.ItemsBunchRequest} returns this
|
|
2214
|
+
*/
|
|
2215
|
+
proto.cms.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
2216
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* Returns whether this field is set.
|
|
2222
|
+
* @return {boolean}
|
|
2223
|
+
*/
|
|
2224
|
+
proto.cms.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
2225
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2002
2230
|
|
|
2003
2231
|
|
|
2004
2232
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
package/game/game.proto
CHANGED
|
@@ -15,6 +15,7 @@ service Game {
|
|
|
15
15
|
rpc updateSingleCategory(stream CategoryRequest) returns (CategoryResponse);
|
|
16
16
|
rpc deleteSingleCategory(GetCategoryRequest) returns (CategoryStatusResponse);
|
|
17
17
|
rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
|
|
18
|
+
rpc updateCategoriesInBunch(ItemsBunchRequest) returns (CategoryStatusResponse);
|
|
18
19
|
//Collections
|
|
19
20
|
rpc createSingleCollection(stream CollectionRequest) returns (CollectionResponse);
|
|
20
21
|
rpc readSingleCollection(GetCollectionRequest) returns (CollectionResponse);
|
|
@@ -24,6 +25,7 @@ service Game {
|
|
|
24
25
|
rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
|
25
26
|
rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
|
26
27
|
rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
|
|
28
|
+
rpc updateCollectionsInBunch(ItemsBunchRequest) returns (CollectionStatusResponse);
|
|
27
29
|
//Tags
|
|
28
30
|
rpc createSingleTag(stream TagRequest) returns (TagResponse);
|
|
29
31
|
rpc readSingleTag(GetTagRequest) returns (TagResponse);
|
|
@@ -33,12 +35,14 @@ service Game {
|
|
|
33
35
|
rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
|
|
34
36
|
rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
|
|
35
37
|
rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
|
|
38
|
+
rpc updateTagsInBunch(ItemsBunchRequest) returns (TagStatusResponse);
|
|
36
39
|
//Providers
|
|
37
40
|
rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
|
38
41
|
rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
|
|
39
42
|
rpc updateSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
|
40
43
|
rpc deleteSingleProvider(GetProviderRequest) returns (ProviderStatusResponse);
|
|
41
44
|
rpc readListProviders(PaginationRequest) returns (ProviderItemsResponse);
|
|
45
|
+
rpc updateProvidersInBunch(ItemsBunchRequest) returns (ProviderStatusResponse);
|
|
42
46
|
//Games
|
|
43
47
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
44
48
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -169,6 +173,10 @@ message TagSearchRequest {
|
|
|
169
173
|
optional string tag_title = 1;
|
|
170
174
|
optional int32 is_active = 2;
|
|
171
175
|
}
|
|
176
|
+
message ItemsBunchRequest {
|
|
177
|
+
repeated int32 ids = 1;
|
|
178
|
+
optional int32 is_active = 2;
|
|
179
|
+
}
|
|
172
180
|
//Media
|
|
173
181
|
message File { bytes media = 1; }
|
|
174
182
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -565,6 +565,17 @@ function deserialize_game_IntegratorSettingsResponse(buffer_arg) {
|
|
|
565
565
|
return game_pb.IntegratorSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
+
function serialize_game_ItemsBunchRequest(arg) {
|
|
569
|
+
if (!(arg instanceof game_pb.ItemsBunchRequest)) {
|
|
570
|
+
throw new Error('Expected argument of type game.ItemsBunchRequest');
|
|
571
|
+
}
|
|
572
|
+
return Buffer.from(arg.serializeBinary());
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
function deserialize_game_ItemsBunchRequest(buffer_arg) {
|
|
576
|
+
return game_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
577
|
+
}
|
|
578
|
+
|
|
568
579
|
function serialize_game_PaginationRequest(arg) {
|
|
569
580
|
if (!(arg instanceof game_pb.PaginationRequest)) {
|
|
570
581
|
throw new Error('Expected argument of type game.PaginationRequest');
|
|
@@ -1043,6 +1054,17 @@ createSingleCategory: {
|
|
|
1043
1054
|
responseSerialize: serialize_game_CategoryItemsResponse,
|
|
1044
1055
|
responseDeserialize: deserialize_game_CategoryItemsResponse,
|
|
1045
1056
|
},
|
|
1057
|
+
updateCategoriesInBunch: {
|
|
1058
|
+
path: '/game.Game/updateCategoriesInBunch',
|
|
1059
|
+
requestStream: false,
|
|
1060
|
+
responseStream: false,
|
|
1061
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1062
|
+
responseType: game_pb.CategoryStatusResponse,
|
|
1063
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1064
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1065
|
+
responseSerialize: serialize_game_CategoryStatusResponse,
|
|
1066
|
+
responseDeserialize: deserialize_game_CategoryStatusResponse,
|
|
1067
|
+
},
|
|
1046
1068
|
// Collections
|
|
1047
1069
|
createSingleCollection: {
|
|
1048
1070
|
path: '/game.Game/createSingleCollection',
|
|
@@ -1132,6 +1154,17 @@ createSingleCollection: {
|
|
|
1132
1154
|
responseSerialize: serialize_game_CollectionStatusResponse,
|
|
1133
1155
|
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
|
1134
1156
|
},
|
|
1157
|
+
updateCollectionsInBunch: {
|
|
1158
|
+
path: '/game.Game/updateCollectionsInBunch',
|
|
1159
|
+
requestStream: false,
|
|
1160
|
+
responseStream: false,
|
|
1161
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1162
|
+
responseType: game_pb.CollectionStatusResponse,
|
|
1163
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1164
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1165
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
|
1166
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
|
1167
|
+
},
|
|
1135
1168
|
// Tags
|
|
1136
1169
|
createSingleTag: {
|
|
1137
1170
|
path: '/game.Game/createSingleTag',
|
|
@@ -1221,6 +1254,17 @@ createSingleTag: {
|
|
|
1221
1254
|
responseSerialize: serialize_game_TagStatusResponse,
|
|
1222
1255
|
responseDeserialize: deserialize_game_TagStatusResponse,
|
|
1223
1256
|
},
|
|
1257
|
+
updateTagsInBunch: {
|
|
1258
|
+
path: '/game.Game/updateTagsInBunch',
|
|
1259
|
+
requestStream: false,
|
|
1260
|
+
responseStream: false,
|
|
1261
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1262
|
+
responseType: game_pb.TagStatusResponse,
|
|
1263
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1264
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1265
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
|
1266
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
|
1267
|
+
},
|
|
1224
1268
|
// Providers
|
|
1225
1269
|
createSingleProvider: {
|
|
1226
1270
|
path: '/game.Game/createSingleProvider',
|
|
@@ -1277,6 +1321,17 @@ createSingleProvider: {
|
|
|
1277
1321
|
responseSerialize: serialize_game_ProviderItemsResponse,
|
|
1278
1322
|
responseDeserialize: deserialize_game_ProviderItemsResponse,
|
|
1279
1323
|
},
|
|
1324
|
+
updateProvidersInBunch: {
|
|
1325
|
+
path: '/game.Game/updateProvidersInBunch',
|
|
1326
|
+
requestStream: false,
|
|
1327
|
+
responseStream: false,
|
|
1328
|
+
requestType: game_pb.ItemsBunchRequest,
|
|
1329
|
+
responseType: game_pb.ProviderStatusResponse,
|
|
1330
|
+
requestSerialize: serialize_game_ItemsBunchRequest,
|
|
1331
|
+
requestDeserialize: deserialize_game_ItemsBunchRequest,
|
|
1332
|
+
responseSerialize: serialize_game_ProviderStatusResponse,
|
|
1333
|
+
responseDeserialize: deserialize_game_ProviderStatusResponse,
|
|
1334
|
+
},
|
|
1280
1335
|
// Games
|
|
1281
1336
|
parseGames: {
|
|
1282
1337
|
path: '/game.Game/parseGames',
|
package/game/game_pb.js
CHANGED
|
@@ -88,6 +88,7 @@ goog.exportSymbol('proto.game.IntegratorSelfValidationRequest', null, global);
|
|
|
88
88
|
goog.exportSymbol('proto.game.IntegratorSelfValidationResponse', null, global);
|
|
89
89
|
goog.exportSymbol('proto.game.IntegratorSettingsRequest', null, global);
|
|
90
90
|
goog.exportSymbol('proto.game.IntegratorSettingsResponse', null, global);
|
|
91
|
+
goog.exportSymbol('proto.game.ItemsBunchRequest', null, global);
|
|
91
92
|
goog.exportSymbol('proto.game.PaginationRequest', null, global);
|
|
92
93
|
goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
|
|
93
94
|
goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
|
|
@@ -365,6 +366,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
365
366
|
*/
|
|
366
367
|
proto.game.TagSearchRequest.displayName = 'proto.game.TagSearchRequest';
|
|
367
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* Generated by JsPbCodeGenerator.
|
|
371
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
372
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
373
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
374
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
375
|
+
* valid.
|
|
376
|
+
* @extends {jspb.Message}
|
|
377
|
+
* @constructor
|
|
378
|
+
*/
|
|
379
|
+
proto.game.ItemsBunchRequest = function(opt_data) {
|
|
380
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.ItemsBunchRequest.repeatedFields_, null);
|
|
381
|
+
};
|
|
382
|
+
goog.inherits(proto.game.ItemsBunchRequest, jspb.Message);
|
|
383
|
+
if (goog.DEBUG && !COMPILED) {
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
* @override
|
|
387
|
+
*/
|
|
388
|
+
proto.game.ItemsBunchRequest.displayName = 'proto.game.ItemsBunchRequest';
|
|
389
|
+
}
|
|
368
390
|
/**
|
|
369
391
|
* Generated by JsPbCodeGenerator.
|
|
370
392
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5857,6 +5879,212 @@ proto.game.TagSearchRequest.prototype.hasIsActive = function() {
|
|
|
5857
5879
|
|
|
5858
5880
|
|
|
5859
5881
|
|
|
5882
|
+
/**
|
|
5883
|
+
* List of repeated fields within this message type.
|
|
5884
|
+
* @private {!Array<number>}
|
|
5885
|
+
* @const
|
|
5886
|
+
*/
|
|
5887
|
+
proto.game.ItemsBunchRequest.repeatedFields_ = [1];
|
|
5888
|
+
|
|
5889
|
+
|
|
5890
|
+
|
|
5891
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5892
|
+
/**
|
|
5893
|
+
* Creates an object representation of this proto.
|
|
5894
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5895
|
+
* Optional fields that are not set will be set to undefined.
|
|
5896
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5897
|
+
* For the list of reserved names please see:
|
|
5898
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5899
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5900
|
+
* JSPB instance for transitional soy proto support:
|
|
5901
|
+
* http://goto/soy-param-migration
|
|
5902
|
+
* @return {!Object}
|
|
5903
|
+
*/
|
|
5904
|
+
proto.game.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5905
|
+
return proto.game.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
5906
|
+
};
|
|
5907
|
+
|
|
5908
|
+
|
|
5909
|
+
/**
|
|
5910
|
+
* Static version of the {@see toObject} method.
|
|
5911
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5912
|
+
* the JSPB instance for transitional soy proto support:
|
|
5913
|
+
* http://goto/soy-param-migration
|
|
5914
|
+
* @param {!proto.game.ItemsBunchRequest} msg The msg instance to transform.
|
|
5915
|
+
* @return {!Object}
|
|
5916
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5917
|
+
*/
|
|
5918
|
+
proto.game.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
5919
|
+
var f, obj = {
|
|
5920
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
5921
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
5922
|
+
};
|
|
5923
|
+
|
|
5924
|
+
if (includeInstance) {
|
|
5925
|
+
obj.$jspbMessageInstance = msg;
|
|
5926
|
+
}
|
|
5927
|
+
return obj;
|
|
5928
|
+
};
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5931
|
+
|
|
5932
|
+
/**
|
|
5933
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5934
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5935
|
+
* @return {!proto.game.ItemsBunchRequest}
|
|
5936
|
+
*/
|
|
5937
|
+
proto.game.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
5938
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5939
|
+
var msg = new proto.game.ItemsBunchRequest;
|
|
5940
|
+
return proto.game.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
5941
|
+
};
|
|
5942
|
+
|
|
5943
|
+
|
|
5944
|
+
/**
|
|
5945
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5946
|
+
* given reader into the given message object.
|
|
5947
|
+
* @param {!proto.game.ItemsBunchRequest} msg The message object to deserialize into.
|
|
5948
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5949
|
+
* @return {!proto.game.ItemsBunchRequest}
|
|
5950
|
+
*/
|
|
5951
|
+
proto.game.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5952
|
+
while (reader.nextField()) {
|
|
5953
|
+
if (reader.isEndGroup()) {
|
|
5954
|
+
break;
|
|
5955
|
+
}
|
|
5956
|
+
var field = reader.getFieldNumber();
|
|
5957
|
+
switch (field) {
|
|
5958
|
+
case 1:
|
|
5959
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
5960
|
+
for (var i = 0; i < values.length; i++) {
|
|
5961
|
+
msg.addIds(values[i]);
|
|
5962
|
+
}
|
|
5963
|
+
break;
|
|
5964
|
+
case 2:
|
|
5965
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5966
|
+
msg.setIsActive(value);
|
|
5967
|
+
break;
|
|
5968
|
+
default:
|
|
5969
|
+
reader.skipField();
|
|
5970
|
+
break;
|
|
5971
|
+
}
|
|
5972
|
+
}
|
|
5973
|
+
return msg;
|
|
5974
|
+
};
|
|
5975
|
+
|
|
5976
|
+
|
|
5977
|
+
/**
|
|
5978
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5979
|
+
* @return {!Uint8Array}
|
|
5980
|
+
*/
|
|
5981
|
+
proto.game.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
5982
|
+
var writer = new jspb.BinaryWriter();
|
|
5983
|
+
proto.game.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
5984
|
+
return writer.getResultBuffer();
|
|
5985
|
+
};
|
|
5986
|
+
|
|
5987
|
+
|
|
5988
|
+
/**
|
|
5989
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5990
|
+
* format), writing to the given BinaryWriter.
|
|
5991
|
+
* @param {!proto.game.ItemsBunchRequest} message
|
|
5992
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5993
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5994
|
+
*/
|
|
5995
|
+
proto.game.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5996
|
+
var f = undefined;
|
|
5997
|
+
f = message.getIdsList();
|
|
5998
|
+
if (f.length > 0) {
|
|
5999
|
+
writer.writePackedInt32(
|
|
6000
|
+
1,
|
|
6001
|
+
f
|
|
6002
|
+
);
|
|
6003
|
+
}
|
|
6004
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
6005
|
+
if (f != null) {
|
|
6006
|
+
writer.writeInt32(
|
|
6007
|
+
2,
|
|
6008
|
+
f
|
|
6009
|
+
);
|
|
6010
|
+
}
|
|
6011
|
+
};
|
|
6012
|
+
|
|
6013
|
+
|
|
6014
|
+
/**
|
|
6015
|
+
* repeated int32 ids = 1;
|
|
6016
|
+
* @return {!Array<number>}
|
|
6017
|
+
*/
|
|
6018
|
+
proto.game.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
6019
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
6020
|
+
};
|
|
6021
|
+
|
|
6022
|
+
|
|
6023
|
+
/**
|
|
6024
|
+
* @param {!Array<number>} value
|
|
6025
|
+
* @return {!proto.game.ItemsBunchRequest} returns this
|
|
6026
|
+
*/
|
|
6027
|
+
proto.game.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
6028
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
6029
|
+
};
|
|
6030
|
+
|
|
6031
|
+
|
|
6032
|
+
/**
|
|
6033
|
+
* @param {number} value
|
|
6034
|
+
* @param {number=} opt_index
|
|
6035
|
+
* @return {!proto.game.ItemsBunchRequest} returns this
|
|
6036
|
+
*/
|
|
6037
|
+
proto.game.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
6038
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
6039
|
+
};
|
|
6040
|
+
|
|
6041
|
+
|
|
6042
|
+
/**
|
|
6043
|
+
* Clears the list making it empty but non-null.
|
|
6044
|
+
* @return {!proto.game.ItemsBunchRequest} returns this
|
|
6045
|
+
*/
|
|
6046
|
+
proto.game.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
6047
|
+
return this.setIdsList([]);
|
|
6048
|
+
};
|
|
6049
|
+
|
|
6050
|
+
|
|
6051
|
+
/**
|
|
6052
|
+
* optional int32 is_active = 2;
|
|
6053
|
+
* @return {number}
|
|
6054
|
+
*/
|
|
6055
|
+
proto.game.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
6056
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6057
|
+
};
|
|
6058
|
+
|
|
6059
|
+
|
|
6060
|
+
/**
|
|
6061
|
+
* @param {number} value
|
|
6062
|
+
* @return {!proto.game.ItemsBunchRequest} returns this
|
|
6063
|
+
*/
|
|
6064
|
+
proto.game.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
6065
|
+
return jspb.Message.setField(this, 2, value);
|
|
6066
|
+
};
|
|
6067
|
+
|
|
6068
|
+
|
|
6069
|
+
/**
|
|
6070
|
+
* Clears the field making it undefined.
|
|
6071
|
+
* @return {!proto.game.ItemsBunchRequest} returns this
|
|
6072
|
+
*/
|
|
6073
|
+
proto.game.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
6074
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6075
|
+
};
|
|
6076
|
+
|
|
6077
|
+
|
|
6078
|
+
/**
|
|
6079
|
+
* Returns whether this field is set.
|
|
6080
|
+
* @return {boolean}
|
|
6081
|
+
*/
|
|
6082
|
+
proto.game.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
6083
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6084
|
+
};
|
|
6085
|
+
|
|
6086
|
+
|
|
6087
|
+
|
|
5860
6088
|
|
|
5861
6089
|
|
|
5862
6090
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|