protobuf-platform 1.2.54 → 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/bonus/bonus.proto +5 -0
- package/bonus/bonus_grpc_pb.js +22 -0
- package/bonus/bonus_pb.js +228 -0
- 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
|
@@ -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; }
|
|
@@ -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',
|