protobuf-platform 1.2.590 → 1.2.593
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 +1 -1
- package/payment/payment.proto +5 -0
- package/payment/payment_pb.js +241 -1
- package/user/user.proto +47 -0
- package/user/user_grpc_pb.js +44 -0
- package/user/user_pb.js +1990 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -754,6 +754,11 @@ message UserPaymentMethodItem {
|
|
|
754
754
|
string input_currency = 21;
|
|
755
755
|
string preview_currency = 22;
|
|
756
756
|
bool conversion_required = 23;
|
|
757
|
+
optional int32 reward_percent = 24;
|
|
758
|
+
optional int32 is_vip = 25;
|
|
759
|
+
optional int32 is_top = 26;
|
|
760
|
+
optional int32 is_popular = 27;
|
|
761
|
+
optional int32 is_new = 28;
|
|
757
762
|
}
|
|
758
763
|
message UserPaymentMethodsResponse {
|
|
759
764
|
repeated UserPaymentMethodItem items = 1;
|
package/payment/payment_pb.js
CHANGED
|
@@ -32184,7 +32184,12 @@ proto.payment.UserPaymentMethodItem.toObject = function(includeInstance, msg) {
|
|
|
32184
32184
|
providerCurrency: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
32185
32185
|
inputCurrency: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
32186
32186
|
previewCurrency: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
32187
|
-
conversionRequired: jspb.Message.getBooleanFieldWithDefault(msg, 23, false)
|
|
32187
|
+
conversionRequired: jspb.Message.getBooleanFieldWithDefault(msg, 23, false),
|
|
32188
|
+
rewardPercent: jspb.Message.getFieldWithDefault(msg, 24, 0),
|
|
32189
|
+
isVip: jspb.Message.getFieldWithDefault(msg, 25, 0),
|
|
32190
|
+
isTop: jspb.Message.getFieldWithDefault(msg, 26, 0),
|
|
32191
|
+
isPopular: jspb.Message.getFieldWithDefault(msg, 27, 0),
|
|
32192
|
+
isNew: jspb.Message.getFieldWithDefault(msg, 28, 0)
|
|
32188
32193
|
};
|
|
32189
32194
|
|
|
32190
32195
|
if (includeInstance) {
|
|
@@ -32314,6 +32319,26 @@ proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader = function(msg,
|
|
|
32314
32319
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
32315
32320
|
msg.setConversionRequired(value);
|
|
32316
32321
|
break;
|
|
32322
|
+
case 24:
|
|
32323
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
32324
|
+
msg.setRewardPercent(value);
|
|
32325
|
+
break;
|
|
32326
|
+
case 25:
|
|
32327
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
32328
|
+
msg.setIsVip(value);
|
|
32329
|
+
break;
|
|
32330
|
+
case 26:
|
|
32331
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
32332
|
+
msg.setIsTop(value);
|
|
32333
|
+
break;
|
|
32334
|
+
case 27:
|
|
32335
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
32336
|
+
msg.setIsPopular(value);
|
|
32337
|
+
break;
|
|
32338
|
+
case 28:
|
|
32339
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
32340
|
+
msg.setIsNew(value);
|
|
32341
|
+
break;
|
|
32317
32342
|
default:
|
|
32318
32343
|
reader.skipField();
|
|
32319
32344
|
break;
|
|
@@ -32505,6 +32530,41 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
|
|
|
32505
32530
|
f
|
|
32506
32531
|
);
|
|
32507
32532
|
}
|
|
32533
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 24));
|
|
32534
|
+
if (f != null) {
|
|
32535
|
+
writer.writeInt32(
|
|
32536
|
+
24,
|
|
32537
|
+
f
|
|
32538
|
+
);
|
|
32539
|
+
}
|
|
32540
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 25));
|
|
32541
|
+
if (f != null) {
|
|
32542
|
+
writer.writeInt32(
|
|
32543
|
+
25,
|
|
32544
|
+
f
|
|
32545
|
+
);
|
|
32546
|
+
}
|
|
32547
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 26));
|
|
32548
|
+
if (f != null) {
|
|
32549
|
+
writer.writeInt32(
|
|
32550
|
+
26,
|
|
32551
|
+
f
|
|
32552
|
+
);
|
|
32553
|
+
}
|
|
32554
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 27));
|
|
32555
|
+
if (f != null) {
|
|
32556
|
+
writer.writeInt32(
|
|
32557
|
+
27,
|
|
32558
|
+
f
|
|
32559
|
+
);
|
|
32560
|
+
}
|
|
32561
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 28));
|
|
32562
|
+
if (f != null) {
|
|
32563
|
+
writer.writeInt32(
|
|
32564
|
+
28,
|
|
32565
|
+
f
|
|
32566
|
+
);
|
|
32567
|
+
}
|
|
32508
32568
|
};
|
|
32509
32569
|
|
|
32510
32570
|
|
|
@@ -33158,6 +33218,186 @@ proto.payment.UserPaymentMethodItem.prototype.setConversionRequired = function(v
|
|
|
33158
33218
|
};
|
|
33159
33219
|
|
|
33160
33220
|
|
|
33221
|
+
/**
|
|
33222
|
+
* optional int32 reward_percent = 24;
|
|
33223
|
+
* @return {number}
|
|
33224
|
+
*/
|
|
33225
|
+
proto.payment.UserPaymentMethodItem.prototype.getRewardPercent = function() {
|
|
33226
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
|
|
33227
|
+
};
|
|
33228
|
+
|
|
33229
|
+
|
|
33230
|
+
/**
|
|
33231
|
+
* @param {number} value
|
|
33232
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33233
|
+
*/
|
|
33234
|
+
proto.payment.UserPaymentMethodItem.prototype.setRewardPercent = function(value) {
|
|
33235
|
+
return jspb.Message.setField(this, 24, value);
|
|
33236
|
+
};
|
|
33237
|
+
|
|
33238
|
+
|
|
33239
|
+
/**
|
|
33240
|
+
* Clears the field making it undefined.
|
|
33241
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33242
|
+
*/
|
|
33243
|
+
proto.payment.UserPaymentMethodItem.prototype.clearRewardPercent = function() {
|
|
33244
|
+
return jspb.Message.setField(this, 24, undefined);
|
|
33245
|
+
};
|
|
33246
|
+
|
|
33247
|
+
|
|
33248
|
+
/**
|
|
33249
|
+
* Returns whether this field is set.
|
|
33250
|
+
* @return {boolean}
|
|
33251
|
+
*/
|
|
33252
|
+
proto.payment.UserPaymentMethodItem.prototype.hasRewardPercent = function() {
|
|
33253
|
+
return jspb.Message.getField(this, 24) != null;
|
|
33254
|
+
};
|
|
33255
|
+
|
|
33256
|
+
|
|
33257
|
+
/**
|
|
33258
|
+
* optional int32 is_vip = 25;
|
|
33259
|
+
* @return {number}
|
|
33260
|
+
*/
|
|
33261
|
+
proto.payment.UserPaymentMethodItem.prototype.getIsVip = function() {
|
|
33262
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
|
|
33263
|
+
};
|
|
33264
|
+
|
|
33265
|
+
|
|
33266
|
+
/**
|
|
33267
|
+
* @param {number} value
|
|
33268
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33269
|
+
*/
|
|
33270
|
+
proto.payment.UserPaymentMethodItem.prototype.setIsVip = function(value) {
|
|
33271
|
+
return jspb.Message.setField(this, 25, value);
|
|
33272
|
+
};
|
|
33273
|
+
|
|
33274
|
+
|
|
33275
|
+
/**
|
|
33276
|
+
* Clears the field making it undefined.
|
|
33277
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33278
|
+
*/
|
|
33279
|
+
proto.payment.UserPaymentMethodItem.prototype.clearIsVip = function() {
|
|
33280
|
+
return jspb.Message.setField(this, 25, undefined);
|
|
33281
|
+
};
|
|
33282
|
+
|
|
33283
|
+
|
|
33284
|
+
/**
|
|
33285
|
+
* Returns whether this field is set.
|
|
33286
|
+
* @return {boolean}
|
|
33287
|
+
*/
|
|
33288
|
+
proto.payment.UserPaymentMethodItem.prototype.hasIsVip = function() {
|
|
33289
|
+
return jspb.Message.getField(this, 25) != null;
|
|
33290
|
+
};
|
|
33291
|
+
|
|
33292
|
+
|
|
33293
|
+
/**
|
|
33294
|
+
* optional int32 is_top = 26;
|
|
33295
|
+
* @return {number}
|
|
33296
|
+
*/
|
|
33297
|
+
proto.payment.UserPaymentMethodItem.prototype.getIsTop = function() {
|
|
33298
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
|
|
33299
|
+
};
|
|
33300
|
+
|
|
33301
|
+
|
|
33302
|
+
/**
|
|
33303
|
+
* @param {number} value
|
|
33304
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33305
|
+
*/
|
|
33306
|
+
proto.payment.UserPaymentMethodItem.prototype.setIsTop = function(value) {
|
|
33307
|
+
return jspb.Message.setField(this, 26, value);
|
|
33308
|
+
};
|
|
33309
|
+
|
|
33310
|
+
|
|
33311
|
+
/**
|
|
33312
|
+
* Clears the field making it undefined.
|
|
33313
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33314
|
+
*/
|
|
33315
|
+
proto.payment.UserPaymentMethodItem.prototype.clearIsTop = function() {
|
|
33316
|
+
return jspb.Message.setField(this, 26, undefined);
|
|
33317
|
+
};
|
|
33318
|
+
|
|
33319
|
+
|
|
33320
|
+
/**
|
|
33321
|
+
* Returns whether this field is set.
|
|
33322
|
+
* @return {boolean}
|
|
33323
|
+
*/
|
|
33324
|
+
proto.payment.UserPaymentMethodItem.prototype.hasIsTop = function() {
|
|
33325
|
+
return jspb.Message.getField(this, 26) != null;
|
|
33326
|
+
};
|
|
33327
|
+
|
|
33328
|
+
|
|
33329
|
+
/**
|
|
33330
|
+
* optional int32 is_popular = 27;
|
|
33331
|
+
* @return {number}
|
|
33332
|
+
*/
|
|
33333
|
+
proto.payment.UserPaymentMethodItem.prototype.getIsPopular = function() {
|
|
33334
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0));
|
|
33335
|
+
};
|
|
33336
|
+
|
|
33337
|
+
|
|
33338
|
+
/**
|
|
33339
|
+
* @param {number} value
|
|
33340
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33341
|
+
*/
|
|
33342
|
+
proto.payment.UserPaymentMethodItem.prototype.setIsPopular = function(value) {
|
|
33343
|
+
return jspb.Message.setField(this, 27, value);
|
|
33344
|
+
};
|
|
33345
|
+
|
|
33346
|
+
|
|
33347
|
+
/**
|
|
33348
|
+
* Clears the field making it undefined.
|
|
33349
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33350
|
+
*/
|
|
33351
|
+
proto.payment.UserPaymentMethodItem.prototype.clearIsPopular = function() {
|
|
33352
|
+
return jspb.Message.setField(this, 27, undefined);
|
|
33353
|
+
};
|
|
33354
|
+
|
|
33355
|
+
|
|
33356
|
+
/**
|
|
33357
|
+
* Returns whether this field is set.
|
|
33358
|
+
* @return {boolean}
|
|
33359
|
+
*/
|
|
33360
|
+
proto.payment.UserPaymentMethodItem.prototype.hasIsPopular = function() {
|
|
33361
|
+
return jspb.Message.getField(this, 27) != null;
|
|
33362
|
+
};
|
|
33363
|
+
|
|
33364
|
+
|
|
33365
|
+
/**
|
|
33366
|
+
* optional int32 is_new = 28;
|
|
33367
|
+
* @return {number}
|
|
33368
|
+
*/
|
|
33369
|
+
proto.payment.UserPaymentMethodItem.prototype.getIsNew = function() {
|
|
33370
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 28, 0));
|
|
33371
|
+
};
|
|
33372
|
+
|
|
33373
|
+
|
|
33374
|
+
/**
|
|
33375
|
+
* @param {number} value
|
|
33376
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33377
|
+
*/
|
|
33378
|
+
proto.payment.UserPaymentMethodItem.prototype.setIsNew = function(value) {
|
|
33379
|
+
return jspb.Message.setField(this, 28, value);
|
|
33380
|
+
};
|
|
33381
|
+
|
|
33382
|
+
|
|
33383
|
+
/**
|
|
33384
|
+
* Clears the field making it undefined.
|
|
33385
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
33386
|
+
*/
|
|
33387
|
+
proto.payment.UserPaymentMethodItem.prototype.clearIsNew = function() {
|
|
33388
|
+
return jspb.Message.setField(this, 28, undefined);
|
|
33389
|
+
};
|
|
33390
|
+
|
|
33391
|
+
|
|
33392
|
+
/**
|
|
33393
|
+
* Returns whether this field is set.
|
|
33394
|
+
* @return {boolean}
|
|
33395
|
+
*/
|
|
33396
|
+
proto.payment.UserPaymentMethodItem.prototype.hasIsNew = function() {
|
|
33397
|
+
return jspb.Message.getField(this, 28) != null;
|
|
33398
|
+
};
|
|
33399
|
+
|
|
33400
|
+
|
|
33161
33401
|
|
|
33162
33402
|
/**
|
|
33163
33403
|
* List of repeated fields within this message type.
|
package/user/user.proto
CHANGED
|
@@ -12,6 +12,8 @@ service User {
|
|
|
12
12
|
rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
|
|
13
13
|
rpc loginOrCreateApple(AppleLoginRequest) returns (LoggedInResponse);
|
|
14
14
|
rpc loginOrCreateX(XLoginRequest) returns (LoggedInResponse);
|
|
15
|
+
rpc loginOrCreateYandex(YandexLoginRequest) returns (LoggedInResponse);
|
|
16
|
+
rpc loginOrCreateVkCommonId(VkCommonIdLoginRequest) returns (LoggedInResponse);
|
|
15
17
|
rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
|
|
16
18
|
rpc beginUserTwoFaSetup(BeginUserTwoFaSetupRequest) returns (BeginUserTwoFaSetupResponse);
|
|
17
19
|
rpc confirmUserTwoFaAction(ConfirmUserTwoFaActionRequest) returns (ConfirmUserTwoFaActionResponse);
|
|
@@ -413,6 +415,51 @@ message XLoginRequest {
|
|
|
413
415
|
// Gateway IP-derived country; distinct from profile country.
|
|
414
416
|
optional string ip_country = 22;
|
|
415
417
|
}
|
|
418
|
+
message YandexLoginRequest {
|
|
419
|
+
string code = 1;
|
|
420
|
+
string redirect_uri = 2;
|
|
421
|
+
string code_verifier = 3;
|
|
422
|
+
optional string user_ip = 4;
|
|
423
|
+
optional string device = 5;
|
|
424
|
+
optional string country = 6;
|
|
425
|
+
optional string city = 7;
|
|
426
|
+
optional string timezone = 8;
|
|
427
|
+
optional string locale = 9;
|
|
428
|
+
optional int32 affiliate_id = 10;
|
|
429
|
+
optional string affiliate_info = 11;
|
|
430
|
+
optional string promo_code = 12;
|
|
431
|
+
optional string seon_session = 13;
|
|
432
|
+
optional string request_id = 14;
|
|
433
|
+
optional string correlation_id = 15;
|
|
434
|
+
optional string user_agent = 16;
|
|
435
|
+
optional string antifraud_session = 17;
|
|
436
|
+
// Gateway IP-derived country; distinct from profile country.
|
|
437
|
+
optional string ip_country = 18;
|
|
438
|
+
optional string preset_code = 19;
|
|
439
|
+
}
|
|
440
|
+
message VkCommonIdLoginRequest {
|
|
441
|
+
string code = 1;
|
|
442
|
+
string redirect_uri = 2;
|
|
443
|
+
string code_verifier = 3;
|
|
444
|
+
string device_id = 4;
|
|
445
|
+
optional string user_ip = 5;
|
|
446
|
+
optional string device = 6;
|
|
447
|
+
optional string country = 7;
|
|
448
|
+
optional string city = 8;
|
|
449
|
+
optional string timezone = 9;
|
|
450
|
+
optional string locale = 10;
|
|
451
|
+
optional int32 affiliate_id = 11;
|
|
452
|
+
optional string affiliate_info = 12;
|
|
453
|
+
optional string promo_code = 13;
|
|
454
|
+
optional string seon_session = 14;
|
|
455
|
+
optional string request_id = 15;
|
|
456
|
+
optional string correlation_id = 16;
|
|
457
|
+
optional string user_agent = 17;
|
|
458
|
+
optional string antifraud_session = 18;
|
|
459
|
+
// Gateway IP-derived country; distinct from profile country.
|
|
460
|
+
optional string ip_country = 19;
|
|
461
|
+
optional string preset_code = 20;
|
|
462
|
+
}
|
|
416
463
|
message ConfirmTwoFaRequest {
|
|
417
464
|
string code = 1;
|
|
418
465
|
string temp_token = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -2325,6 +2325,17 @@ function deserialize_user_VerifySmsResetPasswordCodeResponse(buffer_arg) {
|
|
|
2325
2325
|
return user_pb.VerifySmsResetPasswordCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
|
+
function serialize_user_VkCommonIdLoginRequest(arg) {
|
|
2329
|
+
if (!(arg instanceof user_pb.VkCommonIdLoginRequest)) {
|
|
2330
|
+
throw new Error('Expected argument of type user.VkCommonIdLoginRequest');
|
|
2331
|
+
}
|
|
2332
|
+
return Buffer.from(arg.serializeBinary());
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
function deserialize_user_VkCommonIdLoginRequest(buffer_arg) {
|
|
2336
|
+
return user_pb.VkCommonIdLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2328
2339
|
function serialize_user_XLoginRequest(arg) {
|
|
2329
2340
|
if (!(arg instanceof user_pb.XLoginRequest)) {
|
|
2330
2341
|
throw new Error('Expected argument of type user.XLoginRequest');
|
|
@@ -2336,6 +2347,17 @@ function deserialize_user_XLoginRequest(buffer_arg) {
|
|
|
2336
2347
|
return user_pb.XLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2337
2348
|
}
|
|
2338
2349
|
|
|
2350
|
+
function serialize_user_YandexLoginRequest(arg) {
|
|
2351
|
+
if (!(arg instanceof user_pb.YandexLoginRequest)) {
|
|
2352
|
+
throw new Error('Expected argument of type user.YandexLoginRequest');
|
|
2353
|
+
}
|
|
2354
|
+
return Buffer.from(arg.serializeBinary());
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
function deserialize_user_YandexLoginRequest(buffer_arg) {
|
|
2358
|
+
return user_pb.YandexLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2339
2361
|
|
|
2340
2362
|
var UserService = exports.UserService = {
|
|
2341
2363
|
checkConnection: {
|
|
@@ -2427,6 +2449,28 @@ signUp: {
|
|
|
2427
2449
|
responseSerialize: serialize_user_LoggedInResponse,
|
|
2428
2450
|
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2429
2451
|
},
|
|
2452
|
+
loginOrCreateYandex: {
|
|
2453
|
+
path: '/user.User/loginOrCreateYandex',
|
|
2454
|
+
requestStream: false,
|
|
2455
|
+
responseStream: false,
|
|
2456
|
+
requestType: user_pb.YandexLoginRequest,
|
|
2457
|
+
responseType: user_pb.LoggedInResponse,
|
|
2458
|
+
requestSerialize: serialize_user_YandexLoginRequest,
|
|
2459
|
+
requestDeserialize: deserialize_user_YandexLoginRequest,
|
|
2460
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
2461
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2462
|
+
},
|
|
2463
|
+
loginOrCreateVkCommonId: {
|
|
2464
|
+
path: '/user.User/loginOrCreateVkCommonId',
|
|
2465
|
+
requestStream: false,
|
|
2466
|
+
responseStream: false,
|
|
2467
|
+
requestType: user_pb.VkCommonIdLoginRequest,
|
|
2468
|
+
responseType: user_pb.LoggedInResponse,
|
|
2469
|
+
requestSerialize: serialize_user_VkCommonIdLoginRequest,
|
|
2470
|
+
requestDeserialize: deserialize_user_VkCommonIdLoginRequest,
|
|
2471
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
2472
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2473
|
+
},
|
|
2430
2474
|
confirmUserTwoFa: {
|
|
2431
2475
|
path: '/user.User/confirmUserTwoFa',
|
|
2432
2476
|
requestStream: false,
|