@aceplus/smartace-api 3.6.0 → 3.7.0-alpha.10

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.
@@ -30,7 +30,10 @@ goog.object.extend(proto, platform_client_pb);
30
30
  goog.exportSymbol('proto.Auth.AppDistributionProto', null, global);
31
31
  goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrRequest', null, global);
32
32
  goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrResponse', null, global);
33
+ goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrResponseV2', null, global);
33
34
  goog.exportSymbol('proto.Auth.AppDistributionProto.ClientWithClusterProto', null, global);
35
+ goog.exportSymbol('proto.Auth.AppDistributionProto.ConnectQrRequest', null, global);
36
+ goog.exportSymbol('proto.Auth.AppDistributionProto.ConnectQrResponse', null, global);
34
37
  goog.exportSymbol('proto.Auth.AppDistributionProto.GetClientsRequest', null, global);
35
38
  goog.exportSymbol('proto.Auth.AppDistributionProto.GetClientsResponse', null, global);
36
39
  goog.exportSymbol('proto.Auth.AppDistributionProto.PhonePrefixesRequest', null, global);
@@ -203,6 +206,69 @@ if (goog.DEBUG && !COMPILED) {
203
206
  */
204
207
  proto.Auth.AppDistributionProto.CheckQrResponse.displayName = 'proto.Auth.AppDistributionProto.CheckQrResponse';
205
208
  }
209
+ /**
210
+ * Generated by JsPbCodeGenerator.
211
+ * @param {Array=} opt_data Optional initial data array, typically from a
212
+ * server response, or constructed directly in Javascript. The array is used
213
+ * in place and becomes part of the constructed object. It is not cloned.
214
+ * If no data is provided, the constructed object will be empty, but still
215
+ * valid.
216
+ * @extends {jspb.Message}
217
+ * @constructor
218
+ */
219
+ proto.Auth.AppDistributionProto.CheckQrResponseV2 = function(opt_data) {
220
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
221
+ };
222
+ goog.inherits(proto.Auth.AppDistributionProto.CheckQrResponseV2, jspb.Message);
223
+ if (goog.DEBUG && !COMPILED) {
224
+ /**
225
+ * @public
226
+ * @override
227
+ */
228
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.displayName = 'proto.Auth.AppDistributionProto.CheckQrResponseV2';
229
+ }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.Auth.AppDistributionProto.ConnectQrRequest = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
242
+ };
243
+ goog.inherits(proto.Auth.AppDistributionProto.ConnectQrRequest, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.Auth.AppDistributionProto.ConnectQrRequest.displayName = 'proto.Auth.AppDistributionProto.ConnectQrRequest';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.Auth.AppDistributionProto.ConnectQrResponse = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
263
+ };
264
+ goog.inherits(proto.Auth.AppDistributionProto.ConnectQrResponse, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.Auth.AppDistributionProto.ConnectQrResponse.displayName = 'proto.Auth.AppDistributionProto.ConnectQrResponse';
271
+ }
206
272
 
207
273
 
208
274
 
@@ -1335,4 +1401,454 @@ proto.Auth.AppDistributionProto.CheckQrResponse.prototype.hasClient = function()
1335
1401
  };
1336
1402
 
1337
1403
 
1404
+
1405
+
1406
+
1407
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1408
+ /**
1409
+ * Creates an object representation of this proto.
1410
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1411
+ * Optional fields that are not set will be set to undefined.
1412
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1413
+ * For the list of reserved names please see:
1414
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1415
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1416
+ * JSPB instance for transitional soy proto support:
1417
+ * http://goto/soy-param-migration
1418
+ * @return {!Object}
1419
+ */
1420
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.prototype.toObject = function(opt_includeInstance) {
1421
+ return proto.Auth.AppDistributionProto.CheckQrResponseV2.toObject(opt_includeInstance, this);
1422
+ };
1423
+
1424
+
1425
+ /**
1426
+ * Static version of the {@see toObject} method.
1427
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1428
+ * the JSPB instance for transitional soy proto support:
1429
+ * http://goto/soy-param-migration
1430
+ * @param {!proto.Auth.AppDistributionProto.CheckQrResponseV2} msg The msg instance to transform.
1431
+ * @return {!Object}
1432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1433
+ */
1434
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.toObject = function(includeInstance, msg) {
1435
+ var f, obj = {
1436
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
1437
+ };
1438
+
1439
+ if (includeInstance) {
1440
+ obj.$jspbMessageInstance = msg;
1441
+ }
1442
+ return obj;
1443
+ };
1444
+ }
1445
+
1446
+
1447
+ /**
1448
+ * Deserializes binary data (in protobuf wire format).
1449
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1450
+ * @return {!proto.Auth.AppDistributionProto.CheckQrResponseV2}
1451
+ */
1452
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.deserializeBinary = function(bytes) {
1453
+ var reader = new jspb.BinaryReader(bytes);
1454
+ var msg = new proto.Auth.AppDistributionProto.CheckQrResponseV2;
1455
+ return proto.Auth.AppDistributionProto.CheckQrResponseV2.deserializeBinaryFromReader(msg, reader);
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Deserializes binary data (in protobuf wire format) from the
1461
+ * given reader into the given message object.
1462
+ * @param {!proto.Auth.AppDistributionProto.CheckQrResponseV2} msg The message object to deserialize into.
1463
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1464
+ * @return {!proto.Auth.AppDistributionProto.CheckQrResponseV2}
1465
+ */
1466
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.deserializeBinaryFromReader = function(msg, reader) {
1467
+ while (reader.nextField()) {
1468
+ if (reader.isEndGroup()) {
1469
+ break;
1470
+ }
1471
+ var field = reader.getFieldNumber();
1472
+ switch (field) {
1473
+ case 1:
1474
+ var value = /** @type {string} */ (reader.readString());
1475
+ msg.setUid(value);
1476
+ break;
1477
+ default:
1478
+ reader.skipField();
1479
+ break;
1480
+ }
1481
+ }
1482
+ return msg;
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Serializes the message to binary data (in protobuf wire format).
1488
+ * @return {!Uint8Array}
1489
+ */
1490
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.prototype.serializeBinary = function() {
1491
+ var writer = new jspb.BinaryWriter();
1492
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.serializeBinaryToWriter(this, writer);
1493
+ return writer.getResultBuffer();
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Serializes the given message to binary data (in protobuf wire
1499
+ * format), writing to the given BinaryWriter.
1500
+ * @param {!proto.Auth.AppDistributionProto.CheckQrResponseV2} message
1501
+ * @param {!jspb.BinaryWriter} writer
1502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1503
+ */
1504
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.serializeBinaryToWriter = function(message, writer) {
1505
+ var f = undefined;
1506
+ f = message.getUid();
1507
+ if (f.length > 0) {
1508
+ writer.writeString(
1509
+ 1,
1510
+ f
1511
+ );
1512
+ }
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * optional string uid = 1;
1518
+ * @return {string}
1519
+ */
1520
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.prototype.getUid = function() {
1521
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * @param {string} value
1527
+ * @return {!proto.Auth.AppDistributionProto.CheckQrResponseV2} returns this
1528
+ */
1529
+ proto.Auth.AppDistributionProto.CheckQrResponseV2.prototype.setUid = function(value) {
1530
+ return jspb.Message.setProto3StringField(this, 1, value);
1531
+ };
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1538
+ /**
1539
+ * Creates an object representation of this proto.
1540
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1541
+ * Optional fields that are not set will be set to undefined.
1542
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1543
+ * For the list of reserved names please see:
1544
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1545
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1546
+ * JSPB instance for transitional soy proto support:
1547
+ * http://goto/soy-param-migration
1548
+ * @return {!Object}
1549
+ */
1550
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.toObject = function(opt_includeInstance) {
1551
+ return proto.Auth.AppDistributionProto.ConnectQrRequest.toObject(opt_includeInstance, this);
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * Static version of the {@see toObject} method.
1557
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1558
+ * the JSPB instance for transitional soy proto support:
1559
+ * http://goto/soy-param-migration
1560
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrRequest} msg The msg instance to transform.
1561
+ * @return {!Object}
1562
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1563
+ */
1564
+ proto.Auth.AppDistributionProto.ConnectQrRequest.toObject = function(includeInstance, msg) {
1565
+ var f, obj = {
1566
+ code1: jspb.Message.getFieldWithDefault(msg, 1, ""),
1567
+ code2: jspb.Message.getFieldWithDefault(msg, 2, "")
1568
+ };
1569
+
1570
+ if (includeInstance) {
1571
+ obj.$jspbMessageInstance = msg;
1572
+ }
1573
+ return obj;
1574
+ };
1575
+ }
1576
+
1577
+
1578
+ /**
1579
+ * Deserializes binary data (in protobuf wire format).
1580
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1581
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrRequest}
1582
+ */
1583
+ proto.Auth.AppDistributionProto.ConnectQrRequest.deserializeBinary = function(bytes) {
1584
+ var reader = new jspb.BinaryReader(bytes);
1585
+ var msg = new proto.Auth.AppDistributionProto.ConnectQrRequest;
1586
+ return proto.Auth.AppDistributionProto.ConnectQrRequest.deserializeBinaryFromReader(msg, reader);
1587
+ };
1588
+
1589
+
1590
+ /**
1591
+ * Deserializes binary data (in protobuf wire format) from the
1592
+ * given reader into the given message object.
1593
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrRequest} msg The message object to deserialize into.
1594
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1595
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrRequest}
1596
+ */
1597
+ proto.Auth.AppDistributionProto.ConnectQrRequest.deserializeBinaryFromReader = function(msg, reader) {
1598
+ while (reader.nextField()) {
1599
+ if (reader.isEndGroup()) {
1600
+ break;
1601
+ }
1602
+ var field = reader.getFieldNumber();
1603
+ switch (field) {
1604
+ case 1:
1605
+ var value = /** @type {string} */ (reader.readString());
1606
+ msg.setCode1(value);
1607
+ break;
1608
+ case 2:
1609
+ var value = /** @type {string} */ (reader.readString());
1610
+ msg.setCode2(value);
1611
+ break;
1612
+ default:
1613
+ reader.skipField();
1614
+ break;
1615
+ }
1616
+ }
1617
+ return msg;
1618
+ };
1619
+
1620
+
1621
+ /**
1622
+ * Serializes the message to binary data (in protobuf wire format).
1623
+ * @return {!Uint8Array}
1624
+ */
1625
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.serializeBinary = function() {
1626
+ var writer = new jspb.BinaryWriter();
1627
+ proto.Auth.AppDistributionProto.ConnectQrRequest.serializeBinaryToWriter(this, writer);
1628
+ return writer.getResultBuffer();
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * Serializes the given message to binary data (in protobuf wire
1634
+ * format), writing to the given BinaryWriter.
1635
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrRequest} message
1636
+ * @param {!jspb.BinaryWriter} writer
1637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1638
+ */
1639
+ proto.Auth.AppDistributionProto.ConnectQrRequest.serializeBinaryToWriter = function(message, writer) {
1640
+ var f = undefined;
1641
+ f = message.getCode1();
1642
+ if (f.length > 0) {
1643
+ writer.writeString(
1644
+ 1,
1645
+ f
1646
+ );
1647
+ }
1648
+ f = message.getCode2();
1649
+ if (f.length > 0) {
1650
+ writer.writeString(
1651
+ 2,
1652
+ f
1653
+ );
1654
+ }
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * optional string code1 = 1;
1660
+ * @return {string}
1661
+ */
1662
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.getCode1 = function() {
1663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * @param {string} value
1669
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrRequest} returns this
1670
+ */
1671
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.setCode1 = function(value) {
1672
+ return jspb.Message.setProto3StringField(this, 1, value);
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * optional string code2 = 2;
1678
+ * @return {string}
1679
+ */
1680
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.getCode2 = function() {
1681
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * @param {string} value
1687
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrRequest} returns this
1688
+ */
1689
+ proto.Auth.AppDistributionProto.ConnectQrRequest.prototype.setCode2 = function(value) {
1690
+ return jspb.Message.setProto3StringField(this, 2, value);
1691
+ };
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1698
+ /**
1699
+ * Creates an object representation of this proto.
1700
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1701
+ * Optional fields that are not set will be set to undefined.
1702
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1703
+ * For the list of reserved names please see:
1704
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1705
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1706
+ * JSPB instance for transitional soy proto support:
1707
+ * http://goto/soy-param-migration
1708
+ * @return {!Object}
1709
+ */
1710
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.toObject = function(opt_includeInstance) {
1711
+ return proto.Auth.AppDistributionProto.ConnectQrResponse.toObject(opt_includeInstance, this);
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * Static version of the {@see toObject} method.
1717
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1718
+ * the JSPB instance for transitional soy proto support:
1719
+ * http://goto/soy-param-migration
1720
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrResponse} msg The msg instance to transform.
1721
+ * @return {!Object}
1722
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1723
+ */
1724
+ proto.Auth.AppDistributionProto.ConnectQrResponse.toObject = function(includeInstance, msg) {
1725
+ var f, obj = {
1726
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
1727
+ uid: jspb.Message.getFieldWithDefault(msg, 2, "")
1728
+ };
1729
+
1730
+ if (includeInstance) {
1731
+ obj.$jspbMessageInstance = msg;
1732
+ }
1733
+ return obj;
1734
+ };
1735
+ }
1736
+
1737
+
1738
+ /**
1739
+ * Deserializes binary data (in protobuf wire format).
1740
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1741
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrResponse}
1742
+ */
1743
+ proto.Auth.AppDistributionProto.ConnectQrResponse.deserializeBinary = function(bytes) {
1744
+ var reader = new jspb.BinaryReader(bytes);
1745
+ var msg = new proto.Auth.AppDistributionProto.ConnectQrResponse;
1746
+ return proto.Auth.AppDistributionProto.ConnectQrResponse.deserializeBinaryFromReader(msg, reader);
1747
+ };
1748
+
1749
+
1750
+ /**
1751
+ * Deserializes binary data (in protobuf wire format) from the
1752
+ * given reader into the given message object.
1753
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrResponse} msg The message object to deserialize into.
1754
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1755
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrResponse}
1756
+ */
1757
+ proto.Auth.AppDistributionProto.ConnectQrResponse.deserializeBinaryFromReader = function(msg, reader) {
1758
+ while (reader.nextField()) {
1759
+ if (reader.isEndGroup()) {
1760
+ break;
1761
+ }
1762
+ var field = reader.getFieldNumber();
1763
+ switch (field) {
1764
+ case 1:
1765
+ var value = /** @type {string} */ (reader.readString());
1766
+ msg.setMessage(value);
1767
+ break;
1768
+ case 2:
1769
+ var value = /** @type {string} */ (reader.readString());
1770
+ msg.setUid(value);
1771
+ break;
1772
+ default:
1773
+ reader.skipField();
1774
+ break;
1775
+ }
1776
+ }
1777
+ return msg;
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * Serializes the message to binary data (in protobuf wire format).
1783
+ * @return {!Uint8Array}
1784
+ */
1785
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.serializeBinary = function() {
1786
+ var writer = new jspb.BinaryWriter();
1787
+ proto.Auth.AppDistributionProto.ConnectQrResponse.serializeBinaryToWriter(this, writer);
1788
+ return writer.getResultBuffer();
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * Serializes the given message to binary data (in protobuf wire
1794
+ * format), writing to the given BinaryWriter.
1795
+ * @param {!proto.Auth.AppDistributionProto.ConnectQrResponse} message
1796
+ * @param {!jspb.BinaryWriter} writer
1797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1798
+ */
1799
+ proto.Auth.AppDistributionProto.ConnectQrResponse.serializeBinaryToWriter = function(message, writer) {
1800
+ var f = undefined;
1801
+ f = message.getMessage();
1802
+ if (f.length > 0) {
1803
+ writer.writeString(
1804
+ 1,
1805
+ f
1806
+ );
1807
+ }
1808
+ f = message.getUid();
1809
+ if (f.length > 0) {
1810
+ writer.writeString(
1811
+ 2,
1812
+ f
1813
+ );
1814
+ }
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * optional string message = 1;
1820
+ * @return {string}
1821
+ */
1822
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.getMessage = function() {
1823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * @param {string} value
1829
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrResponse} returns this
1830
+ */
1831
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.setMessage = function(value) {
1832
+ return jspb.Message.setProto3StringField(this, 1, value);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional string uid = 2;
1838
+ * @return {string}
1839
+ */
1840
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.getUid = function() {
1841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * @param {string} value
1847
+ * @return {!proto.Auth.AppDistributionProto.ConnectQrResponse} returns this
1848
+ */
1849
+ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.setUid = function(value) {
1850
+ return jspb.Message.setProto3StringField(this, 2, value);
1851
+ };
1852
+
1853
+
1338
1854
  goog.object.extend(exports, proto.Auth);
@@ -40,12 +40,32 @@ type AppDistributionGRPCCheckQr = {
40
40
  readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrResponse;
41
41
  };
42
42
 
43
+ type AppDistributionGRPCCheckQrV2 = {
44
+ readonly methodName: string;
45
+ readonly service: typeof AppDistributionGRPC;
46
+ readonly requestStream: false;
47
+ readonly responseStream: false;
48
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrRequest;
49
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2;
50
+ };
51
+
52
+ type AppDistributionGRPCConnectQr = {
53
+ readonly methodName: string;
54
+ readonly service: typeof AppDistributionGRPC;
55
+ readonly requestStream: false;
56
+ readonly responseStream: false;
57
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest;
58
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse;
59
+ };
60
+
43
61
  export class AppDistributionGRPC {
44
62
  static readonly serviceName: string;
45
63
  static readonly GetPhonePrefixes: AppDistributionGRPCGetPhonePrefixes;
46
64
  static readonly GetClientsList: AppDistributionGRPCGetClientsList;
47
65
  static readonly GetClientsListForAutoInvite: AppDistributionGRPCGetClientsListForAutoInvite;
48
66
  static readonly CheckQr: AppDistributionGRPCCheckQr;
67
+ static readonly CheckQrV2: AppDistributionGRPCCheckQrV2;
68
+ static readonly ConnectQr: AppDistributionGRPCConnectQr;
49
69
  }
50
70
 
51
71
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -116,5 +136,23 @@ export class AppDistributionGRPCClient {
116
136
  requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
117
137
  callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse|null) => void
118
138
  ): UnaryResponse;
139
+ checkQrV2(
140
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
141
+ metadata: grpc.Metadata,
142
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2|null) => void
143
+ ): UnaryResponse;
144
+ checkQrV2(
145
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
146
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2|null) => void
147
+ ): UnaryResponse;
148
+ connectQr(
149
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
150
+ metadata: grpc.Metadata,
151
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
152
+ ): UnaryResponse;
153
+ connectQr(
154
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
155
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
156
+ ): UnaryResponse;
119
157
  }
120
158
 
@@ -46,6 +46,24 @@ AppDistributionGRPC.CheckQr = {
46
46
  responseType: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse
47
47
  };
48
48
 
49
+ AppDistributionGRPC.CheckQrV2 = {
50
+ methodName: "CheckQrV2",
51
+ service: AppDistributionGRPC,
52
+ requestStream: false,
53
+ responseStream: false,
54
+ requestType: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
55
+ responseType: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2
56
+ };
57
+
58
+ AppDistributionGRPC.ConnectQr = {
59
+ methodName: "ConnectQr",
60
+ service: AppDistributionGRPC,
61
+ requestStream: false,
62
+ responseStream: false,
63
+ requestType: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
64
+ responseType: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse
65
+ };
66
+
49
67
  exports.AppDistributionGRPC = AppDistributionGRPC;
50
68
 
51
69
  function AppDistributionGRPCClient(serviceHost, options) {
@@ -177,5 +195,67 @@ AppDistributionGRPCClient.prototype.checkQr = function checkQr(requestMessage, m
177
195
  };
178
196
  };
179
197
 
198
+ AppDistributionGRPCClient.prototype.checkQrV2 = function checkQrV2(requestMessage, metadata, callback) {
199
+ if (arguments.length === 2) {
200
+ callback = arguments[1];
201
+ }
202
+ var client = grpc.unary(AppDistributionGRPC.CheckQrV2, {
203
+ request: requestMessage,
204
+ host: this.serviceHost,
205
+ metadata: metadata,
206
+ transport: this.options.transport,
207
+ debug: this.options.debug,
208
+ onEnd: function (response) {
209
+ if (callback) {
210
+ if (response.status !== grpc.Code.OK) {
211
+ var err = new Error(response.statusMessage);
212
+ err.code = response.status;
213
+ err.metadata = response.trailers;
214
+ callback(err, null);
215
+ } else {
216
+ callback(null, response.message);
217
+ }
218
+ }
219
+ }
220
+ });
221
+ return {
222
+ cancel: function () {
223
+ callback = null;
224
+ client.close();
225
+ }
226
+ };
227
+ };
228
+
229
+ AppDistributionGRPCClient.prototype.connectQr = function connectQr(requestMessage, metadata, callback) {
230
+ if (arguments.length === 2) {
231
+ callback = arguments[1];
232
+ }
233
+ var client = grpc.unary(AppDistributionGRPC.ConnectQr, {
234
+ request: requestMessage,
235
+ host: this.serviceHost,
236
+ metadata: metadata,
237
+ transport: this.options.transport,
238
+ debug: this.options.debug,
239
+ onEnd: function (response) {
240
+ if (callback) {
241
+ if (response.status !== grpc.Code.OK) {
242
+ var err = new Error(response.statusMessage);
243
+ err.code = response.status;
244
+ err.metadata = response.trailers;
245
+ callback(err, null);
246
+ } else {
247
+ callback(null, response.message);
248
+ }
249
+ }
250
+ }
251
+ });
252
+ return {
253
+ cancel: function () {
254
+ callback = null;
255
+ client.close();
256
+ }
257
+ };
258
+ };
259
+
180
260
  exports.AppDistributionGRPCClient = AppDistributionGRPCClient;
181
261