protobuf-platform 1.2.696 → 1.2.698

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.696",
3
+ "version": "1.2.698",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,6 +22,10 @@ service Promocode {
22
22
  rpc prepareUserPromocodeGrant(PrepareUserPromocodeGrantRequest) returns (PrepareUserPromocodeGrantResponse);
23
23
  rpc batchGetUserPromocodeSnapshots(BatchGetUserPromocodeSnapshotsRequest) returns (BatchGetUserPromocodeSnapshotsResponse);
24
24
  rpc getUserRegistrationPromocode(GetUserRegistrationPromocodeRequest) returns (GetUserRegistrationPromocodeResponse);
25
+ rpc reserveDepositUserPromocode(ReserveDepositUserPromocodeRequest) returns (UserPromocodeUsageItem);
26
+ rpc readDepositUserPromocode(ReadDepositUserPromocodeRequest) returns (UserPromocodeUsageItem);
27
+ rpc rejectDepositUserPromocode(RejectDepositUserPromocodeRequest) returns (UserPromocodeUsageItem);
28
+ rpc readListUserPromocodes(UserPromocodePaginationRequest) returns (UserPromocodeItemsResponse);
25
29
  }
26
30
  message PingRequest { string ping = 1; }
27
31
  message PongResponse { string pong = 1; }
@@ -271,3 +275,50 @@ message GetUserRegistrationPromocodeResponse {
271
275
  bool found = 1;
272
276
  optional string promo_code = 2;
273
277
  }
278
+ message ReserveDepositUserPromocodeRequest {
279
+ int32 user_id = 1;
280
+ int32 deposit_id = 2;
281
+ string code = 3;
282
+ optional string currency = 4;
283
+ int32 user_bonus_id = 5;
284
+ int32 template_bonus_id = 6;
285
+ optional string country = 7;
286
+ optional string locale = 8;
287
+ }
288
+ message ReadDepositUserPromocodeRequest {
289
+ int32 deposit_id = 1;
290
+ int32 user_id = 2;
291
+ }
292
+ message RejectDepositUserPromocodeRequest {
293
+ int32 deposit_id = 1;
294
+ int32 user_id = 2;
295
+ }
296
+ message UserPromocodePaginationRequest {
297
+ int32 limit = 1;
298
+ int32 offset = 2;
299
+ optional string order = 3;
300
+ int32 user_id = 4;
301
+ }
302
+ message UserPromocodeUsageItem {
303
+ int32 id = 1;
304
+ int32 user_id = 2;
305
+ int32 promocode_id = 3;
306
+ optional string promo_code = 4;
307
+ optional string activation_area = 5;
308
+ optional string target_domain = 6;
309
+ optional string target_entity_type = 7;
310
+ optional int32 target_entity_id = 8;
311
+ optional int32 target_bonus_id = 9;
312
+ optional string status = 10;
313
+ optional int32 deposit_id = 11;
314
+ optional string currency = 12;
315
+ optional string created_at = 13;
316
+ optional string applied_at = 14;
317
+ optional string snapshot = 15;
318
+ optional string application_mode = 16;
319
+ }
320
+ message UserPromocodeItemsResponse {
321
+ repeated UserPromocodeUsageItem items = 1;
322
+ optional int32 total_items = 2;
323
+ optional int32 total_pages = 3;
324
+ }
@@ -257,6 +257,72 @@ function deserialize_promocode_PrepareUserPromocodeGrantResponse(buffer_arg) {
257
257
  return promocode_pb.PrepareUserPromocodeGrantResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
258
  }
259
259
 
260
+ function serialize_promocode_ReadDepositUserPromocodeRequest(arg) {
261
+ if (!(arg instanceof promocode_pb.ReadDepositUserPromocodeRequest)) {
262
+ throw new Error('Expected argument of type promocode.ReadDepositUserPromocodeRequest');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_promocode_ReadDepositUserPromocodeRequest(buffer_arg) {
268
+ return promocode_pb.ReadDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
271
+ function serialize_promocode_RejectDepositUserPromocodeRequest(arg) {
272
+ if (!(arg instanceof promocode_pb.RejectDepositUserPromocodeRequest)) {
273
+ throw new Error('Expected argument of type promocode.RejectDepositUserPromocodeRequest');
274
+ }
275
+ return Buffer.from(arg.serializeBinary());
276
+ }
277
+
278
+ function deserialize_promocode_RejectDepositUserPromocodeRequest(buffer_arg) {
279
+ return promocode_pb.RejectDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
+ }
281
+
282
+ function serialize_promocode_ReserveDepositUserPromocodeRequest(arg) {
283
+ if (!(arg instanceof promocode_pb.ReserveDepositUserPromocodeRequest)) {
284
+ throw new Error('Expected argument of type promocode.ReserveDepositUserPromocodeRequest');
285
+ }
286
+ return Buffer.from(arg.serializeBinary());
287
+ }
288
+
289
+ function deserialize_promocode_ReserveDepositUserPromocodeRequest(buffer_arg) {
290
+ return promocode_pb.ReserveDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
291
+ }
292
+
293
+ function serialize_promocode_UserPromocodeItemsResponse(arg) {
294
+ if (!(arg instanceof promocode_pb.UserPromocodeItemsResponse)) {
295
+ throw new Error('Expected argument of type promocode.UserPromocodeItemsResponse');
296
+ }
297
+ return Buffer.from(arg.serializeBinary());
298
+ }
299
+
300
+ function deserialize_promocode_UserPromocodeItemsResponse(buffer_arg) {
301
+ return promocode_pb.UserPromocodeItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
302
+ }
303
+
304
+ function serialize_promocode_UserPromocodePaginationRequest(arg) {
305
+ if (!(arg instanceof promocode_pb.UserPromocodePaginationRequest)) {
306
+ throw new Error('Expected argument of type promocode.UserPromocodePaginationRequest');
307
+ }
308
+ return Buffer.from(arg.serializeBinary());
309
+ }
310
+
311
+ function deserialize_promocode_UserPromocodePaginationRequest(buffer_arg) {
312
+ return promocode_pb.UserPromocodePaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
313
+ }
314
+
315
+ function serialize_promocode_UserPromocodeUsageItem(arg) {
316
+ if (!(arg instanceof promocode_pb.UserPromocodeUsageItem)) {
317
+ throw new Error('Expected argument of type promocode.UserPromocodeUsageItem');
318
+ }
319
+ return Buffer.from(arg.serializeBinary());
320
+ }
321
+
322
+ function deserialize_promocode_UserPromocodeUsageItem(buffer_arg) {
323
+ return promocode_pb.UserPromocodeUsageItem.deserializeBinary(new Uint8Array(buffer_arg));
324
+ }
325
+
260
326
 
261
327
  var PromocodeService = exports.PromocodeService = {
262
328
  checkConnection: {
@@ -438,6 +504,50 @@ applyUserPromocode: {
438
504
  responseSerialize: serialize_promocode_GetUserRegistrationPromocodeResponse,
439
505
  responseDeserialize: deserialize_promocode_GetUserRegistrationPromocodeResponse,
440
506
  },
507
+ reserveDepositUserPromocode: {
508
+ path: '/promocode.Promocode/reserveDepositUserPromocode',
509
+ requestStream: false,
510
+ responseStream: false,
511
+ requestType: promocode_pb.ReserveDepositUserPromocodeRequest,
512
+ responseType: promocode_pb.UserPromocodeUsageItem,
513
+ requestSerialize: serialize_promocode_ReserveDepositUserPromocodeRequest,
514
+ requestDeserialize: deserialize_promocode_ReserveDepositUserPromocodeRequest,
515
+ responseSerialize: serialize_promocode_UserPromocodeUsageItem,
516
+ responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
517
+ },
518
+ readDepositUserPromocode: {
519
+ path: '/promocode.Promocode/readDepositUserPromocode',
520
+ requestStream: false,
521
+ responseStream: false,
522
+ requestType: promocode_pb.ReadDepositUserPromocodeRequest,
523
+ responseType: promocode_pb.UserPromocodeUsageItem,
524
+ requestSerialize: serialize_promocode_ReadDepositUserPromocodeRequest,
525
+ requestDeserialize: deserialize_promocode_ReadDepositUserPromocodeRequest,
526
+ responseSerialize: serialize_promocode_UserPromocodeUsageItem,
527
+ responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
528
+ },
529
+ rejectDepositUserPromocode: {
530
+ path: '/promocode.Promocode/rejectDepositUserPromocode',
531
+ requestStream: false,
532
+ responseStream: false,
533
+ requestType: promocode_pb.RejectDepositUserPromocodeRequest,
534
+ responseType: promocode_pb.UserPromocodeUsageItem,
535
+ requestSerialize: serialize_promocode_RejectDepositUserPromocodeRequest,
536
+ requestDeserialize: deserialize_promocode_RejectDepositUserPromocodeRequest,
537
+ responseSerialize: serialize_promocode_UserPromocodeUsageItem,
538
+ responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
539
+ },
540
+ readListUserPromocodes: {
541
+ path: '/promocode.Promocode/readListUserPromocodes',
542
+ requestStream: false,
543
+ responseStream: false,
544
+ requestType: promocode_pb.UserPromocodePaginationRequest,
545
+ responseType: promocode_pb.UserPromocodeItemsResponse,
546
+ requestSerialize: serialize_promocode_UserPromocodePaginationRequest,
547
+ requestDeserialize: deserialize_promocode_UserPromocodePaginationRequest,
548
+ responseSerialize: serialize_promocode_UserPromocodeItemsResponse,
549
+ responseDeserialize: deserialize_promocode_UserPromocodeItemsResponse,
550
+ },
441
551
  };
442
552
 
443
553
  exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService, 'Promocode');