protobuf-platform 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/game.proto +47 -0
- package/game/game_grpc_pb.js +111 -0
- package/game/game_pb.js +1874 -0
- package/package.json +1 -1
- package/user/user.proto +3 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +201 -1
package/game/game.proto
CHANGED
@@ -17,6 +17,12 @@ service Game {
|
|
17
17
|
rpc updateSingleCollection(stream CollectionRequest) returns (CollectionResponse);
|
18
18
|
rpc deleteSingleCollection(GetCollectionRequest) returns (CategoryStatusResponse);
|
19
19
|
rpc readListCollections(PaginationRequest) returns (CollectionItemsResponse);
|
20
|
+
//Tags
|
21
|
+
rpc createSingleTag(stream TagRequest) returns (TagResponse);
|
22
|
+
rpc readSingleTag(GetTagRequest) returns (TagResponse);
|
23
|
+
rpc updateSingleTag(stream TagRequest) returns (TagResponse);
|
24
|
+
rpc deleteSingleTag(GetTagRequest) returns (TagStatusResponse);
|
25
|
+
rpc readListTags(PaginationRequest) returns (TagItemsResponse);
|
20
26
|
}
|
21
27
|
|
22
28
|
message PingRequest { string ping = 1; }
|
@@ -107,4 +113,45 @@ message CollectionItemsResponse {
|
|
107
113
|
}
|
108
114
|
message CollectionStatusResponse {
|
109
115
|
string status = 1;
|
116
|
+
}
|
117
|
+
|
118
|
+
//Tag CRUD
|
119
|
+
message TagItem {
|
120
|
+
optional int32 id = 1;
|
121
|
+
optional string title = 2;
|
122
|
+
optional string slug = 3;
|
123
|
+
optional string description = 4;
|
124
|
+
optional int32 is_active = 5;
|
125
|
+
optional string image = 6;
|
126
|
+
}
|
127
|
+
//Tag CRUD | Requests
|
128
|
+
message TagRequest {
|
129
|
+
oneof request {
|
130
|
+
TagItemRequest tag_data = 1;
|
131
|
+
File file = 2;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
message TagItemRequest {
|
135
|
+
optional int32 id = 1;
|
136
|
+
optional string title = 2;
|
137
|
+
optional string slug = 3;
|
138
|
+
optional string description = 4;
|
139
|
+
optional int32 is_active = 5;
|
140
|
+
optional string file_name = 6;
|
141
|
+
optional string file_type = 7;
|
142
|
+
}
|
143
|
+
message GetTagRequest {
|
144
|
+
int32 id = 1;
|
145
|
+
}
|
146
|
+
//Tag CRUD | Responses
|
147
|
+
message TagResponse {
|
148
|
+
TagItem data = 1;
|
149
|
+
}
|
150
|
+
message TagItemsResponse {
|
151
|
+
repeated TagItem items = 1;
|
152
|
+
optional int32 total_pages = 2;
|
153
|
+
optional int32 total_items = 3;
|
154
|
+
}
|
155
|
+
message TagStatusResponse {
|
156
|
+
string status = 1;
|
110
157
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -125,6 +125,17 @@ function deserialize_game_GetFileRequest(buffer_arg) {
|
|
125
125
|
return game_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
126
126
|
}
|
127
127
|
|
128
|
+
function serialize_game_GetTagRequest(arg) {
|
129
|
+
if (!(arg instanceof game_pb.GetTagRequest)) {
|
130
|
+
throw new Error('Expected argument of type game.GetTagRequest');
|
131
|
+
}
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
133
|
+
}
|
134
|
+
|
135
|
+
function deserialize_game_GetTagRequest(buffer_arg) {
|
136
|
+
return game_pb.GetTagRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
137
|
+
}
|
138
|
+
|
128
139
|
function serialize_game_PaginationRequest(arg) {
|
129
140
|
if (!(arg instanceof game_pb.PaginationRequest)) {
|
130
141
|
throw new Error('Expected argument of type game.PaginationRequest');
|
@@ -158,6 +169,50 @@ function deserialize_game_PongResponse(buffer_arg) {
|
|
158
169
|
return game_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
159
170
|
}
|
160
171
|
|
172
|
+
function serialize_game_TagItemsResponse(arg) {
|
173
|
+
if (!(arg instanceof game_pb.TagItemsResponse)) {
|
174
|
+
throw new Error('Expected argument of type game.TagItemsResponse');
|
175
|
+
}
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
177
|
+
}
|
178
|
+
|
179
|
+
function deserialize_game_TagItemsResponse(buffer_arg) {
|
180
|
+
return game_pb.TagItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
181
|
+
}
|
182
|
+
|
183
|
+
function serialize_game_TagRequest(arg) {
|
184
|
+
if (!(arg instanceof game_pb.TagRequest)) {
|
185
|
+
throw new Error('Expected argument of type game.TagRequest');
|
186
|
+
}
|
187
|
+
return Buffer.from(arg.serializeBinary());
|
188
|
+
}
|
189
|
+
|
190
|
+
function deserialize_game_TagRequest(buffer_arg) {
|
191
|
+
return game_pb.TagRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
192
|
+
}
|
193
|
+
|
194
|
+
function serialize_game_TagResponse(arg) {
|
195
|
+
if (!(arg instanceof game_pb.TagResponse)) {
|
196
|
+
throw new Error('Expected argument of type game.TagResponse');
|
197
|
+
}
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
199
|
+
}
|
200
|
+
|
201
|
+
function deserialize_game_TagResponse(buffer_arg) {
|
202
|
+
return game_pb.TagResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
203
|
+
}
|
204
|
+
|
205
|
+
function serialize_game_TagStatusResponse(arg) {
|
206
|
+
if (!(arg instanceof game_pb.TagStatusResponse)) {
|
207
|
+
throw new Error('Expected argument of type game.TagStatusResponse');
|
208
|
+
}
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
210
|
+
}
|
211
|
+
|
212
|
+
function deserialize_game_TagStatusResponse(buffer_arg) {
|
213
|
+
return game_pb.TagStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
214
|
+
}
|
215
|
+
|
161
216
|
|
162
217
|
var GameService = exports.GameService = {
|
163
218
|
checkConnection: {
|
@@ -294,6 +349,62 @@ createSingleCollection: {
|
|
294
349
|
responseSerialize: serialize_game_CollectionItemsResponse,
|
295
350
|
responseDeserialize: deserialize_game_CollectionItemsResponse,
|
296
351
|
},
|
352
|
+
// Tags
|
353
|
+
createSingleTag: {
|
354
|
+
path: '/game.Game/createSingleTag',
|
355
|
+
requestStream: true,
|
356
|
+
responseStream: false,
|
357
|
+
requestType: game_pb.TagRequest,
|
358
|
+
responseType: game_pb.TagResponse,
|
359
|
+
requestSerialize: serialize_game_TagRequest,
|
360
|
+
requestDeserialize: deserialize_game_TagRequest,
|
361
|
+
responseSerialize: serialize_game_TagResponse,
|
362
|
+
responseDeserialize: deserialize_game_TagResponse,
|
363
|
+
},
|
364
|
+
readSingleTag: {
|
365
|
+
path: '/game.Game/readSingleTag',
|
366
|
+
requestStream: false,
|
367
|
+
responseStream: false,
|
368
|
+
requestType: game_pb.GetTagRequest,
|
369
|
+
responseType: game_pb.TagResponse,
|
370
|
+
requestSerialize: serialize_game_GetTagRequest,
|
371
|
+
requestDeserialize: deserialize_game_GetTagRequest,
|
372
|
+
responseSerialize: serialize_game_TagResponse,
|
373
|
+
responseDeserialize: deserialize_game_TagResponse,
|
374
|
+
},
|
375
|
+
updateSingleTag: {
|
376
|
+
path: '/game.Game/updateSingleTag',
|
377
|
+
requestStream: true,
|
378
|
+
responseStream: false,
|
379
|
+
requestType: game_pb.TagRequest,
|
380
|
+
responseType: game_pb.TagResponse,
|
381
|
+
requestSerialize: serialize_game_TagRequest,
|
382
|
+
requestDeserialize: deserialize_game_TagRequest,
|
383
|
+
responseSerialize: serialize_game_TagResponse,
|
384
|
+
responseDeserialize: deserialize_game_TagResponse,
|
385
|
+
},
|
386
|
+
deleteSingleTag: {
|
387
|
+
path: '/game.Game/deleteSingleTag',
|
388
|
+
requestStream: false,
|
389
|
+
responseStream: false,
|
390
|
+
requestType: game_pb.GetTagRequest,
|
391
|
+
responseType: game_pb.TagStatusResponse,
|
392
|
+
requestSerialize: serialize_game_GetTagRequest,
|
393
|
+
requestDeserialize: deserialize_game_GetTagRequest,
|
394
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
395
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
396
|
+
},
|
397
|
+
readListTags: {
|
398
|
+
path: '/game.Game/readListTags',
|
399
|
+
requestStream: false,
|
400
|
+
responseStream: false,
|
401
|
+
requestType: game_pb.PaginationRequest,
|
402
|
+
responseType: game_pb.TagItemsResponse,
|
403
|
+
requestSerialize: serialize_game_PaginationRequest,
|
404
|
+
requestDeserialize: deserialize_game_PaginationRequest,
|
405
|
+
responseSerialize: serialize_game_TagItemsResponse,
|
406
|
+
responseDeserialize: deserialize_game_TagItemsResponse,
|
407
|
+
},
|
297
408
|
};
|
298
409
|
|
299
410
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|