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
|
@@ -37,6 +37,17 @@ function deserialize_notification_GetNotificationRequest(buffer_arg) {
|
|
|
37
37
|
return notification_pb.GetNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function serialize_notification_ItemsBunchRequest(arg) {
|
|
41
|
+
if (!(arg instanceof notification_pb.ItemsBunchRequest)) {
|
|
42
|
+
throw new Error('Expected argument of type notification.ItemsBunchRequest');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_notification_ItemsBunchRequest(buffer_arg) {
|
|
48
|
+
return notification_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
function serialize_notification_NotificationItemsResponse(arg) {
|
|
41
52
|
if (!(arg instanceof notification_pb.NotificationItemsResponse)) {
|
|
42
53
|
throw new Error('Expected argument of type notification.NotificationItemsResponse');
|
|
@@ -238,6 +249,17 @@ createSingleNotification: {
|
|
|
238
249
|
responseSerialize: serialize_notification_NotificationItemsResponse,
|
|
239
250
|
responseDeserialize: deserialize_notification_NotificationItemsResponse,
|
|
240
251
|
},
|
|
252
|
+
updateNotificationsInBunch: {
|
|
253
|
+
path: '/notification.Notification/updateNotificationsInBunch',
|
|
254
|
+
requestStream: false,
|
|
255
|
+
responseStream: false,
|
|
256
|
+
requestType: notification_pb.ItemsBunchRequest,
|
|
257
|
+
responseType: notification_pb.NotificationStatusResponse,
|
|
258
|
+
requestSerialize: serialize_notification_ItemsBunchRequest,
|
|
259
|
+
requestDeserialize: deserialize_notification_ItemsBunchRequest,
|
|
260
|
+
responseSerialize: serialize_notification_NotificationStatusResponse,
|
|
261
|
+
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
|
262
|
+
},
|
|
241
263
|
// Users
|
|
242
264
|
sendNotificationToUsers: {
|
|
243
265
|
path: '/notification.Notification/sendNotificationToUsers',
|
|
@@ -24,6 +24,7 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.notification.File', null, global);
|
|
25
25
|
goog.exportSymbol('proto.notification.GetFileRequest', null, global);
|
|
26
26
|
goog.exportSymbol('proto.notification.GetNotificationRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.notification.ItemsBunchRequest', null, global);
|
|
27
28
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
28
29
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
29
30
|
goog.exportSymbol('proto.notification.NotificationRequest', null, global);
|
|
@@ -143,6 +144,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
143
144
|
*/
|
|
144
145
|
proto.notification.UserSearchRequest.displayName = 'proto.notification.UserSearchRequest';
|
|
145
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Generated by JsPbCodeGenerator.
|
|
149
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
150
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
151
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
152
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
153
|
+
* valid.
|
|
154
|
+
* @extends {jspb.Message}
|
|
155
|
+
* @constructor
|
|
156
|
+
*/
|
|
157
|
+
proto.notification.ItemsBunchRequest = function(opt_data) {
|
|
158
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.ItemsBunchRequest.repeatedFields_, null);
|
|
159
|
+
};
|
|
160
|
+
goog.inherits(proto.notification.ItemsBunchRequest, jspb.Message);
|
|
161
|
+
if (goog.DEBUG && !COMPILED) {
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
* @override
|
|
165
|
+
*/
|
|
166
|
+
proto.notification.ItemsBunchRequest.displayName = 'proto.notification.ItemsBunchRequest';
|
|
167
|
+
}
|
|
146
168
|
/**
|
|
147
169
|
* Generated by JsPbCodeGenerator.
|
|
148
170
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1638,6 +1660,212 @@ proto.notification.UserSearchRequest.prototype.hasOffset = function() {
|
|
|
1638
1660
|
|
|
1639
1661
|
|
|
1640
1662
|
|
|
1663
|
+
/**
|
|
1664
|
+
* List of repeated fields within this message type.
|
|
1665
|
+
* @private {!Array<number>}
|
|
1666
|
+
* @const
|
|
1667
|
+
*/
|
|
1668
|
+
proto.notification.ItemsBunchRequest.repeatedFields_ = [1];
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1673
|
+
/**
|
|
1674
|
+
* Creates an object representation of this proto.
|
|
1675
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1676
|
+
* Optional fields that are not set will be set to undefined.
|
|
1677
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1678
|
+
* For the list of reserved names please see:
|
|
1679
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1680
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1681
|
+
* JSPB instance for transitional soy proto support:
|
|
1682
|
+
* http://goto/soy-param-migration
|
|
1683
|
+
* @return {!Object}
|
|
1684
|
+
*/
|
|
1685
|
+
proto.notification.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1686
|
+
return proto.notification.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* Static version of the {@see toObject} method.
|
|
1692
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1693
|
+
* the JSPB instance for transitional soy proto support:
|
|
1694
|
+
* http://goto/soy-param-migration
|
|
1695
|
+
* @param {!proto.notification.ItemsBunchRequest} msg The msg instance to transform.
|
|
1696
|
+
* @return {!Object}
|
|
1697
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1698
|
+
*/
|
|
1699
|
+
proto.notification.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
1700
|
+
var f, obj = {
|
|
1701
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1702
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
if (includeInstance) {
|
|
1706
|
+
obj.$jspbMessageInstance = msg;
|
|
1707
|
+
}
|
|
1708
|
+
return obj;
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1715
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1716
|
+
* @return {!proto.notification.ItemsBunchRequest}
|
|
1717
|
+
*/
|
|
1718
|
+
proto.notification.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
1719
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1720
|
+
var msg = new proto.notification.ItemsBunchRequest;
|
|
1721
|
+
return proto.notification.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1727
|
+
* given reader into the given message object.
|
|
1728
|
+
* @param {!proto.notification.ItemsBunchRequest} msg The message object to deserialize into.
|
|
1729
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1730
|
+
* @return {!proto.notification.ItemsBunchRequest}
|
|
1731
|
+
*/
|
|
1732
|
+
proto.notification.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1733
|
+
while (reader.nextField()) {
|
|
1734
|
+
if (reader.isEndGroup()) {
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
var field = reader.getFieldNumber();
|
|
1738
|
+
switch (field) {
|
|
1739
|
+
case 1:
|
|
1740
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
1741
|
+
for (var i = 0; i < values.length; i++) {
|
|
1742
|
+
msg.addIds(values[i]);
|
|
1743
|
+
}
|
|
1744
|
+
break;
|
|
1745
|
+
case 2:
|
|
1746
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1747
|
+
msg.setIsActive(value);
|
|
1748
|
+
break;
|
|
1749
|
+
default:
|
|
1750
|
+
reader.skipField();
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
return msg;
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1760
|
+
* @return {!Uint8Array}
|
|
1761
|
+
*/
|
|
1762
|
+
proto.notification.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
1763
|
+
var writer = new jspb.BinaryWriter();
|
|
1764
|
+
proto.notification.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
1765
|
+
return writer.getResultBuffer();
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1771
|
+
* format), writing to the given BinaryWriter.
|
|
1772
|
+
* @param {!proto.notification.ItemsBunchRequest} message
|
|
1773
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1774
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1775
|
+
*/
|
|
1776
|
+
proto.notification.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1777
|
+
var f = undefined;
|
|
1778
|
+
f = message.getIdsList();
|
|
1779
|
+
if (f.length > 0) {
|
|
1780
|
+
writer.writePackedInt32(
|
|
1781
|
+
1,
|
|
1782
|
+
f
|
|
1783
|
+
);
|
|
1784
|
+
}
|
|
1785
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1786
|
+
if (f != null) {
|
|
1787
|
+
writer.writeInt32(
|
|
1788
|
+
2,
|
|
1789
|
+
f
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* repeated int32 ids = 1;
|
|
1797
|
+
* @return {!Array<number>}
|
|
1798
|
+
*/
|
|
1799
|
+
proto.notification.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
1800
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* @param {!Array<number>} value
|
|
1806
|
+
* @return {!proto.notification.ItemsBunchRequest} returns this
|
|
1807
|
+
*/
|
|
1808
|
+
proto.notification.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
1809
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* @param {number} value
|
|
1815
|
+
* @param {number=} opt_index
|
|
1816
|
+
* @return {!proto.notification.ItemsBunchRequest} returns this
|
|
1817
|
+
*/
|
|
1818
|
+
proto.notification.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
1819
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* Clears the list making it empty but non-null.
|
|
1825
|
+
* @return {!proto.notification.ItemsBunchRequest} returns this
|
|
1826
|
+
*/
|
|
1827
|
+
proto.notification.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
1828
|
+
return this.setIdsList([]);
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* optional int32 is_active = 2;
|
|
1834
|
+
* @return {number}
|
|
1835
|
+
*/
|
|
1836
|
+
proto.notification.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
1837
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @param {number} value
|
|
1843
|
+
* @return {!proto.notification.ItemsBunchRequest} returns this
|
|
1844
|
+
*/
|
|
1845
|
+
proto.notification.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
1846
|
+
return jspb.Message.setField(this, 2, value);
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Clears the field making it undefined.
|
|
1852
|
+
* @return {!proto.notification.ItemsBunchRequest} returns this
|
|
1853
|
+
*/
|
|
1854
|
+
proto.notification.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
1855
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Returns whether this field is set.
|
|
1861
|
+
* @return {boolean}
|
|
1862
|
+
*/
|
|
1863
|
+
proto.notification.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
1864
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1641
1869
|
|
|
1642
1870
|
|
|
1643
1871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -11,6 +11,7 @@ service Payment {
|
|
|
11
11
|
rpc updateSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
|
12
12
|
rpc deleteSingleProvider(GetProviderRequest) returns (PaymentStatusResponse);
|
|
13
13
|
rpc readListProviders(PaginationRequest) returns (ProviderItemsResponse);
|
|
14
|
+
rpc updateProvidersInBunch(ItemsBunchRequest) returns (PaymentStatusResponse);
|
|
14
15
|
//Payment Method
|
|
15
16
|
rpc createSingleMethod(stream MethodRequest) returns (MethodResponse);
|
|
16
17
|
rpc readSingleMethod(GetMethodRequest) returns (MethodResponse);
|
|
@@ -20,6 +21,7 @@ service Payment {
|
|
|
20
21
|
rpc readListPoorMethods(PoorMethodsRequest) returns (MethodItemsResponse);
|
|
21
22
|
rpc setPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentStatusResponse);
|
|
22
23
|
rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
|
|
24
|
+
rpc updatePaymentMethodsInBunch(ItemsBunchRequest) returns (PaymentStatusResponse);
|
|
23
25
|
//Deposit
|
|
24
26
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
|
25
27
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
|
@@ -62,6 +64,10 @@ message PaymentSearchRequest {
|
|
|
62
64
|
optional string method_title = 12;
|
|
63
65
|
optional int32 is_active = 13;
|
|
64
66
|
}
|
|
67
|
+
message ItemsBunchRequest {
|
|
68
|
+
repeated int32 ids = 1;
|
|
69
|
+
optional int32 is_active = 2;
|
|
70
|
+
}
|
|
65
71
|
//Provider CRUD | Requests
|
|
66
72
|
message ProviderItem {
|
|
67
73
|
optional int32 id = 1;
|
|
@@ -125,6 +125,17 @@ function deserialize_payment_GetUserPaymentsInfoRequest(buffer_arg) {
|
|
|
125
125
|
return payment_pb.GetUserPaymentsInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
function serialize_payment_ItemsBunchRequest(arg) {
|
|
129
|
+
if (!(arg instanceof payment_pb.ItemsBunchRequest)) {
|
|
130
|
+
throw new Error('Expected argument of type payment.ItemsBunchRequest');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_payment_ItemsBunchRequest(buffer_arg) {
|
|
136
|
+
return payment_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
128
139
|
function serialize_payment_MethodItemsResponse(arg) {
|
|
129
140
|
if (!(arg instanceof payment_pb.MethodItemsResponse)) {
|
|
130
141
|
throw new Error('Expected argument of type payment.MethodItemsResponse');
|
|
@@ -414,6 +425,17 @@ createSingleProvider: {
|
|
|
414
425
|
responseSerialize: serialize_payment_ProviderItemsResponse,
|
|
415
426
|
responseDeserialize: deserialize_payment_ProviderItemsResponse,
|
|
416
427
|
},
|
|
428
|
+
updateProvidersInBunch: {
|
|
429
|
+
path: '/payment.Payment/updateProvidersInBunch',
|
|
430
|
+
requestStream: false,
|
|
431
|
+
responseStream: false,
|
|
432
|
+
requestType: payment_pb.ItemsBunchRequest,
|
|
433
|
+
responseType: payment_pb.PaymentStatusResponse,
|
|
434
|
+
requestSerialize: serialize_payment_ItemsBunchRequest,
|
|
435
|
+
requestDeserialize: deserialize_payment_ItemsBunchRequest,
|
|
436
|
+
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
437
|
+
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
438
|
+
},
|
|
417
439
|
// Payment Method
|
|
418
440
|
createSingleMethod: {
|
|
419
441
|
path: '/payment.Payment/createSingleMethod',
|
|
@@ -503,6 +525,17 @@ createSingleMethod: {
|
|
|
503
525
|
responseSerialize: serialize_payment_PaymentMethodConfigResponse,
|
|
504
526
|
responseDeserialize: deserialize_payment_PaymentMethodConfigResponse,
|
|
505
527
|
},
|
|
528
|
+
updatePaymentMethodsInBunch: {
|
|
529
|
+
path: '/payment.Payment/updatePaymentMethodsInBunch',
|
|
530
|
+
requestStream: false,
|
|
531
|
+
responseStream: false,
|
|
532
|
+
requestType: payment_pb.ItemsBunchRequest,
|
|
533
|
+
responseType: payment_pb.PaymentStatusResponse,
|
|
534
|
+
requestSerialize: serialize_payment_ItemsBunchRequest,
|
|
535
|
+
requestDeserialize: deserialize_payment_ItemsBunchRequest,
|
|
536
|
+
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
537
|
+
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
538
|
+
},
|
|
506
539
|
// Deposit
|
|
507
540
|
attemptDeposit: {
|
|
508
541
|
path: '/payment.Payment/attemptDeposit',
|
package/payment/payment_pb.js
CHANGED
|
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
|
|
35
35
|
goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
|
|
37
38
|
goog.exportSymbol('proto.payment.MethodItem', null, global);
|
|
38
39
|
goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
|
|
39
40
|
goog.exportSymbol('proto.payment.MethodItemsResponse', null, global);
|
|
@@ -188,6 +189,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
188
189
|
*/
|
|
189
190
|
proto.payment.PaymentSearchRequest.displayName = 'proto.payment.PaymentSearchRequest';
|
|
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.payment.ItemsBunchRequest = function(opt_data) {
|
|
203
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.ItemsBunchRequest.repeatedFields_, null);
|
|
204
|
+
};
|
|
205
|
+
goog.inherits(proto.payment.ItemsBunchRequest, jspb.Message);
|
|
206
|
+
if (goog.DEBUG && !COMPILED) {
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
* @override
|
|
210
|
+
*/
|
|
211
|
+
proto.payment.ItemsBunchRequest.displayName = 'proto.payment.ItemsBunchRequest';
|
|
212
|
+
}
|
|
191
213
|
/**
|
|
192
214
|
* Generated by JsPbCodeGenerator.
|
|
193
215
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2556,6 +2578,212 @@ proto.payment.PaymentSearchRequest.prototype.hasIsActive = function() {
|
|
|
2556
2578
|
|
|
2557
2579
|
|
|
2558
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* List of repeated fields within this message type.
|
|
2583
|
+
* @private {!Array<number>}
|
|
2584
|
+
* @const
|
|
2585
|
+
*/
|
|
2586
|
+
proto.payment.ItemsBunchRequest.repeatedFields_ = [1];
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2591
|
+
/**
|
|
2592
|
+
* Creates an object representation of this proto.
|
|
2593
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2594
|
+
* Optional fields that are not set will be set to undefined.
|
|
2595
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2596
|
+
* For the list of reserved names please see:
|
|
2597
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2598
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2599
|
+
* JSPB instance for transitional soy proto support:
|
|
2600
|
+
* http://goto/soy-param-migration
|
|
2601
|
+
* @return {!Object}
|
|
2602
|
+
*/
|
|
2603
|
+
proto.payment.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2604
|
+
return proto.payment.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* Static version of the {@see toObject} method.
|
|
2610
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2611
|
+
* the JSPB instance for transitional soy proto support:
|
|
2612
|
+
* http://goto/soy-param-migration
|
|
2613
|
+
* @param {!proto.payment.ItemsBunchRequest} msg The msg instance to transform.
|
|
2614
|
+
* @return {!Object}
|
|
2615
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2616
|
+
*/
|
|
2617
|
+
proto.payment.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
2618
|
+
var f, obj = {
|
|
2619
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2620
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
if (includeInstance) {
|
|
2624
|
+
obj.$jspbMessageInstance = msg;
|
|
2625
|
+
}
|
|
2626
|
+
return obj;
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2633
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2634
|
+
* @return {!proto.payment.ItemsBunchRequest}
|
|
2635
|
+
*/
|
|
2636
|
+
proto.payment.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
2637
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2638
|
+
var msg = new proto.payment.ItemsBunchRequest;
|
|
2639
|
+
return proto.payment.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2645
|
+
* given reader into the given message object.
|
|
2646
|
+
* @param {!proto.payment.ItemsBunchRequest} msg The message object to deserialize into.
|
|
2647
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2648
|
+
* @return {!proto.payment.ItemsBunchRequest}
|
|
2649
|
+
*/
|
|
2650
|
+
proto.payment.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2651
|
+
while (reader.nextField()) {
|
|
2652
|
+
if (reader.isEndGroup()) {
|
|
2653
|
+
break;
|
|
2654
|
+
}
|
|
2655
|
+
var field = reader.getFieldNumber();
|
|
2656
|
+
switch (field) {
|
|
2657
|
+
case 1:
|
|
2658
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
2659
|
+
for (var i = 0; i < values.length; i++) {
|
|
2660
|
+
msg.addIds(values[i]);
|
|
2661
|
+
}
|
|
2662
|
+
break;
|
|
2663
|
+
case 2:
|
|
2664
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2665
|
+
msg.setIsActive(value);
|
|
2666
|
+
break;
|
|
2667
|
+
default:
|
|
2668
|
+
reader.skipField();
|
|
2669
|
+
break;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
return msg;
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2678
|
+
* @return {!Uint8Array}
|
|
2679
|
+
*/
|
|
2680
|
+
proto.payment.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
2681
|
+
var writer = new jspb.BinaryWriter();
|
|
2682
|
+
proto.payment.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
2683
|
+
return writer.getResultBuffer();
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2689
|
+
* format), writing to the given BinaryWriter.
|
|
2690
|
+
* @param {!proto.payment.ItemsBunchRequest} message
|
|
2691
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2692
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2693
|
+
*/
|
|
2694
|
+
proto.payment.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2695
|
+
var f = undefined;
|
|
2696
|
+
f = message.getIdsList();
|
|
2697
|
+
if (f.length > 0) {
|
|
2698
|
+
writer.writePackedInt32(
|
|
2699
|
+
1,
|
|
2700
|
+
f
|
|
2701
|
+
);
|
|
2702
|
+
}
|
|
2703
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
2704
|
+
if (f != null) {
|
|
2705
|
+
writer.writeInt32(
|
|
2706
|
+
2,
|
|
2707
|
+
f
|
|
2708
|
+
);
|
|
2709
|
+
}
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* repeated int32 ids = 1;
|
|
2715
|
+
* @return {!Array<number>}
|
|
2716
|
+
*/
|
|
2717
|
+
proto.payment.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
2718
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2719
|
+
};
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
/**
|
|
2723
|
+
* @param {!Array<number>} value
|
|
2724
|
+
* @return {!proto.payment.ItemsBunchRequest} returns this
|
|
2725
|
+
*/
|
|
2726
|
+
proto.payment.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
2727
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* @param {number} value
|
|
2733
|
+
* @param {number=} opt_index
|
|
2734
|
+
* @return {!proto.payment.ItemsBunchRequest} returns this
|
|
2735
|
+
*/
|
|
2736
|
+
proto.payment.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
2737
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Clears the list making it empty but non-null.
|
|
2743
|
+
* @return {!proto.payment.ItemsBunchRequest} returns this
|
|
2744
|
+
*/
|
|
2745
|
+
proto.payment.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
2746
|
+
return this.setIdsList([]);
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
/**
|
|
2751
|
+
* optional int32 is_active = 2;
|
|
2752
|
+
* @return {number}
|
|
2753
|
+
*/
|
|
2754
|
+
proto.payment.ItemsBunchRequest.prototype.getIsActive = function() {
|
|
2755
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2756
|
+
};
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* @param {number} value
|
|
2761
|
+
* @return {!proto.payment.ItemsBunchRequest} returns this
|
|
2762
|
+
*/
|
|
2763
|
+
proto.payment.ItemsBunchRequest.prototype.setIsActive = function(value) {
|
|
2764
|
+
return jspb.Message.setField(this, 2, value);
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
/**
|
|
2769
|
+
* Clears the field making it undefined.
|
|
2770
|
+
* @return {!proto.payment.ItemsBunchRequest} returns this
|
|
2771
|
+
*/
|
|
2772
|
+
proto.payment.ItemsBunchRequest.prototype.clearIsActive = function() {
|
|
2773
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
2774
|
+
};
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
* Returns whether this field is set.
|
|
2779
|
+
* @return {boolean}
|
|
2780
|
+
*/
|
|
2781
|
+
proto.payment.ItemsBunchRequest.prototype.hasIsActive = function() {
|
|
2782
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
|
|
2559
2787
|
/**
|
|
2560
2788
|
* List of repeated fields within this message type.
|
|
2561
2789
|
* @private {!Array<number>}
|
|
@@ -10,6 +10,7 @@ service Promocode {
|
|
|
10
10
|
rpc updateSingleCode(CodeRequest) returns (CodeResponse);
|
|
11
11
|
rpc deleteSingleCode(GetCodeRequest) returns (CodeStatusResponse);
|
|
12
12
|
rpc readListCodes(PaginationRequest) returns (CodeItemsResponse);
|
|
13
|
+
rpc updateCodesInBunch(ItemsBunchRequest) returns (CodeStatusResponse);
|
|
13
14
|
}
|
|
14
15
|
message PingRequest { string ping = 1; }
|
|
15
16
|
message PongResponse { string pong = 1; }
|
|
@@ -30,6 +31,10 @@ message SearchRequest {
|
|
|
30
31
|
optional string code = 2;
|
|
31
32
|
optional int32 is_active = 3;
|
|
32
33
|
}
|
|
34
|
+
message ItemsBunchRequest {
|
|
35
|
+
repeated int32 ids = 1;
|
|
36
|
+
optional int32 is_active = 2;
|
|
37
|
+
}
|
|
33
38
|
//Main CRUD
|
|
34
39
|
message GetCodeRequest {
|
|
35
40
|
int32 id = 1;
|
|
@@ -59,6 +59,17 @@ function deserialize_promocode_GetCodeRequest(buffer_arg) {
|
|
|
59
59
|
return promocode_pb.GetCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
function serialize_promocode_ItemsBunchRequest(arg) {
|
|
63
|
+
if (!(arg instanceof promocode_pb.ItemsBunchRequest)) {
|
|
64
|
+
throw new Error('Expected argument of type promocode.ItemsBunchRequest');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_promocode_ItemsBunchRequest(buffer_arg) {
|
|
70
|
+
return promocode_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
function serialize_promocode_PaginationRequest(arg) {
|
|
63
74
|
if (!(arg instanceof promocode_pb.PaginationRequest)) {
|
|
64
75
|
throw new Error('Expected argument of type promocode.PaginationRequest');
|
|
@@ -161,6 +172,17 @@ createSingleCode: {
|
|
|
161
172
|
responseSerialize: serialize_promocode_CodeItemsResponse,
|
|
162
173
|
responseDeserialize: deserialize_promocode_CodeItemsResponse,
|
|
163
174
|
},
|
|
175
|
+
updateCodesInBunch: {
|
|
176
|
+
path: '/promocode.Promocode/updateCodesInBunch',
|
|
177
|
+
requestStream: false,
|
|
178
|
+
responseStream: false,
|
|
179
|
+
requestType: promocode_pb.ItemsBunchRequest,
|
|
180
|
+
responseType: promocode_pb.CodeStatusResponse,
|
|
181
|
+
requestSerialize: serialize_promocode_ItemsBunchRequest,
|
|
182
|
+
requestDeserialize: deserialize_promocode_ItemsBunchRequest,
|
|
183
|
+
responseSerialize: serialize_promocode_CodeStatusResponse,
|
|
184
|
+
responseDeserialize: deserialize_promocode_CodeStatusResponse,
|
|
185
|
+
},
|
|
164
186
|
};
|
|
165
187
|
|
|
166
188
|
exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService, 'Promocode');
|