protobuf-platform 1.0.127 → 1.0.128
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/user/user.proto +9 -5
- package/user/user_pb.js +240 -30
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -45,11 +45,15 @@ message RegistrationRequest {
|
|
45
45
|
string email = 1;
|
46
46
|
string password = 2;
|
47
47
|
string currency = 3;
|
48
|
-
string country = 4;
|
49
|
-
optional string
|
50
|
-
optional string
|
51
|
-
optional string
|
52
|
-
optional string
|
48
|
+
optional string country = 4;
|
49
|
+
optional string city = 5;
|
50
|
+
optional string timezone = 6;
|
51
|
+
optional string first_name = 7;
|
52
|
+
optional string last_name = 8;
|
53
|
+
optional string birthday = 9;
|
54
|
+
optional string locale = 10;
|
55
|
+
optional bool email_subscription = 11;
|
56
|
+
optional int32 affiliate_id = 12;
|
53
57
|
}
|
54
58
|
message LoggedInResponse {
|
55
59
|
int32 id = 1;
|
package/user/user_pb.js
CHANGED
@@ -1378,10 +1378,14 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
1378
1378
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1379
1379
|
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1380
1380
|
country: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1381
|
+
city: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
1382
|
+
timezone: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1383
|
+
firstName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1384
|
+
lastName: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1385
|
+
birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1386
|
+
locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1387
|
+
emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
1388
|
+
affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
1385
1389
|
};
|
1386
1390
|
|
1387
1391
|
if (includeInstance) {
|
@@ -1436,20 +1440,36 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
1436
1440
|
break;
|
1437
1441
|
case 5:
|
1438
1442
|
var value = /** @type {string} */ (reader.readString());
|
1439
|
-
msg.
|
1443
|
+
msg.setCity(value);
|
1440
1444
|
break;
|
1441
1445
|
case 6:
|
1442
1446
|
var value = /** @type {string} */ (reader.readString());
|
1443
|
-
msg.
|
1447
|
+
msg.setTimezone(value);
|
1444
1448
|
break;
|
1445
1449
|
case 7:
|
1446
1450
|
var value = /** @type {string} */ (reader.readString());
|
1447
|
-
msg.
|
1451
|
+
msg.setFirstName(value);
|
1448
1452
|
break;
|
1449
1453
|
case 8:
|
1454
|
+
var value = /** @type {string} */ (reader.readString());
|
1455
|
+
msg.setLastName(value);
|
1456
|
+
break;
|
1457
|
+
case 9:
|
1458
|
+
var value = /** @type {string} */ (reader.readString());
|
1459
|
+
msg.setBirthday(value);
|
1460
|
+
break;
|
1461
|
+
case 10:
|
1450
1462
|
var value = /** @type {string} */ (reader.readString());
|
1451
1463
|
msg.setLocale(value);
|
1452
1464
|
break;
|
1465
|
+
case 11:
|
1466
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1467
|
+
msg.setEmailSubscription(value);
|
1468
|
+
break;
|
1469
|
+
case 12:
|
1470
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1471
|
+
msg.setAffiliateId(value);
|
1472
|
+
break;
|
1453
1473
|
default:
|
1454
1474
|
reader.skipField();
|
1455
1475
|
break;
|
@@ -1500,8 +1520,8 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
1500
1520
|
f
|
1501
1521
|
);
|
1502
1522
|
}
|
1503
|
-
f =
|
1504
|
-
if (f
|
1523
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
1524
|
+
if (f != null) {
|
1505
1525
|
writer.writeString(
|
1506
1526
|
4,
|
1507
1527
|
f
|
@@ -1535,6 +1555,34 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
1535
1555
|
f
|
1536
1556
|
);
|
1537
1557
|
}
|
1558
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
1559
|
+
if (f != null) {
|
1560
|
+
writer.writeString(
|
1561
|
+
9,
|
1562
|
+
f
|
1563
|
+
);
|
1564
|
+
}
|
1565
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
1566
|
+
if (f != null) {
|
1567
|
+
writer.writeString(
|
1568
|
+
10,
|
1569
|
+
f
|
1570
|
+
);
|
1571
|
+
}
|
1572
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
|
1573
|
+
if (f != null) {
|
1574
|
+
writer.writeBool(
|
1575
|
+
11,
|
1576
|
+
f
|
1577
|
+
);
|
1578
|
+
}
|
1579
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
1580
|
+
if (f != null) {
|
1581
|
+
writer.writeInt32(
|
1582
|
+
12,
|
1583
|
+
f
|
1584
|
+
);
|
1585
|
+
}
|
1538
1586
|
};
|
1539
1587
|
|
1540
1588
|
|
@@ -1606,15 +1654,33 @@ proto.user.RegistrationRequest.prototype.getCountry = function() {
|
|
1606
1654
|
* @return {!proto.user.RegistrationRequest} returns this
|
1607
1655
|
*/
|
1608
1656
|
proto.user.RegistrationRequest.prototype.setCountry = function(value) {
|
1609
|
-
return jspb.Message.
|
1657
|
+
return jspb.Message.setField(this, 4, value);
|
1658
|
+
};
|
1659
|
+
|
1660
|
+
|
1661
|
+
/**
|
1662
|
+
* Clears the field making it undefined.
|
1663
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1664
|
+
*/
|
1665
|
+
proto.user.RegistrationRequest.prototype.clearCountry = function() {
|
1666
|
+
return jspb.Message.setField(this, 4, undefined);
|
1667
|
+
};
|
1668
|
+
|
1669
|
+
|
1670
|
+
/**
|
1671
|
+
* Returns whether this field is set.
|
1672
|
+
* @return {boolean}
|
1673
|
+
*/
|
1674
|
+
proto.user.RegistrationRequest.prototype.hasCountry = function() {
|
1675
|
+
return jspb.Message.getField(this, 4) != null;
|
1610
1676
|
};
|
1611
1677
|
|
1612
1678
|
|
1613
1679
|
/**
|
1614
|
-
* optional string
|
1680
|
+
* optional string city = 5;
|
1615
1681
|
* @return {string}
|
1616
1682
|
*/
|
1617
|
-
proto.user.RegistrationRequest.prototype.
|
1683
|
+
proto.user.RegistrationRequest.prototype.getCity = function() {
|
1618
1684
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
1619
1685
|
};
|
1620
1686
|
|
@@ -1623,7 +1689,7 @@ proto.user.RegistrationRequest.prototype.getFirstName = function() {
|
|
1623
1689
|
* @param {string} value
|
1624
1690
|
* @return {!proto.user.RegistrationRequest} returns this
|
1625
1691
|
*/
|
1626
|
-
proto.user.RegistrationRequest.prototype.
|
1692
|
+
proto.user.RegistrationRequest.prototype.setCity = function(value) {
|
1627
1693
|
return jspb.Message.setField(this, 5, value);
|
1628
1694
|
};
|
1629
1695
|
|
@@ -1632,7 +1698,7 @@ proto.user.RegistrationRequest.prototype.setFirstName = function(value) {
|
|
1632
1698
|
* Clears the field making it undefined.
|
1633
1699
|
* @return {!proto.user.RegistrationRequest} returns this
|
1634
1700
|
*/
|
1635
|
-
proto.user.RegistrationRequest.prototype.
|
1701
|
+
proto.user.RegistrationRequest.prototype.clearCity = function() {
|
1636
1702
|
return jspb.Message.setField(this, 5, undefined);
|
1637
1703
|
};
|
1638
1704
|
|
@@ -1641,16 +1707,16 @@ proto.user.RegistrationRequest.prototype.clearFirstName = function() {
|
|
1641
1707
|
* Returns whether this field is set.
|
1642
1708
|
* @return {boolean}
|
1643
1709
|
*/
|
1644
|
-
proto.user.RegistrationRequest.prototype.
|
1710
|
+
proto.user.RegistrationRequest.prototype.hasCity = function() {
|
1645
1711
|
return jspb.Message.getField(this, 5) != null;
|
1646
1712
|
};
|
1647
1713
|
|
1648
1714
|
|
1649
1715
|
/**
|
1650
|
-
* optional string
|
1716
|
+
* optional string timezone = 6;
|
1651
1717
|
* @return {string}
|
1652
1718
|
*/
|
1653
|
-
proto.user.RegistrationRequest.prototype.
|
1719
|
+
proto.user.RegistrationRequest.prototype.getTimezone = function() {
|
1654
1720
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
1655
1721
|
};
|
1656
1722
|
|
@@ -1659,7 +1725,7 @@ proto.user.RegistrationRequest.prototype.getLastName = function() {
|
|
1659
1725
|
* @param {string} value
|
1660
1726
|
* @return {!proto.user.RegistrationRequest} returns this
|
1661
1727
|
*/
|
1662
|
-
proto.user.RegistrationRequest.prototype.
|
1728
|
+
proto.user.RegistrationRequest.prototype.setTimezone = function(value) {
|
1663
1729
|
return jspb.Message.setField(this, 6, value);
|
1664
1730
|
};
|
1665
1731
|
|
@@ -1668,7 +1734,7 @@ proto.user.RegistrationRequest.prototype.setLastName = function(value) {
|
|
1668
1734
|
* Clears the field making it undefined.
|
1669
1735
|
* @return {!proto.user.RegistrationRequest} returns this
|
1670
1736
|
*/
|
1671
|
-
proto.user.RegistrationRequest.prototype.
|
1737
|
+
proto.user.RegistrationRequest.prototype.clearTimezone = function() {
|
1672
1738
|
return jspb.Message.setField(this, 6, undefined);
|
1673
1739
|
};
|
1674
1740
|
|
@@ -1677,16 +1743,16 @@ proto.user.RegistrationRequest.prototype.clearLastName = function() {
|
|
1677
1743
|
* Returns whether this field is set.
|
1678
1744
|
* @return {boolean}
|
1679
1745
|
*/
|
1680
|
-
proto.user.RegistrationRequest.prototype.
|
1746
|
+
proto.user.RegistrationRequest.prototype.hasTimezone = function() {
|
1681
1747
|
return jspb.Message.getField(this, 6) != null;
|
1682
1748
|
};
|
1683
1749
|
|
1684
1750
|
|
1685
1751
|
/**
|
1686
|
-
* optional string
|
1752
|
+
* optional string first_name = 7;
|
1687
1753
|
* @return {string}
|
1688
1754
|
*/
|
1689
|
-
proto.user.RegistrationRequest.prototype.
|
1755
|
+
proto.user.RegistrationRequest.prototype.getFirstName = function() {
|
1690
1756
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
1691
1757
|
};
|
1692
1758
|
|
@@ -1695,7 +1761,7 @@ proto.user.RegistrationRequest.prototype.getBirthday = function() {
|
|
1695
1761
|
* @param {string} value
|
1696
1762
|
* @return {!proto.user.RegistrationRequest} returns this
|
1697
1763
|
*/
|
1698
|
-
proto.user.RegistrationRequest.prototype.
|
1764
|
+
proto.user.RegistrationRequest.prototype.setFirstName = function(value) {
|
1699
1765
|
return jspb.Message.setField(this, 7, value);
|
1700
1766
|
};
|
1701
1767
|
|
@@ -1704,7 +1770,7 @@ proto.user.RegistrationRequest.prototype.setBirthday = function(value) {
|
|
1704
1770
|
* Clears the field making it undefined.
|
1705
1771
|
* @return {!proto.user.RegistrationRequest} returns this
|
1706
1772
|
*/
|
1707
|
-
proto.user.RegistrationRequest.prototype.
|
1773
|
+
proto.user.RegistrationRequest.prototype.clearFirstName = function() {
|
1708
1774
|
return jspb.Message.setField(this, 7, undefined);
|
1709
1775
|
};
|
1710
1776
|
|
@@ -1713,16 +1779,16 @@ proto.user.RegistrationRequest.prototype.clearBirthday = function() {
|
|
1713
1779
|
* Returns whether this field is set.
|
1714
1780
|
* @return {boolean}
|
1715
1781
|
*/
|
1716
|
-
proto.user.RegistrationRequest.prototype.
|
1782
|
+
proto.user.RegistrationRequest.prototype.hasFirstName = function() {
|
1717
1783
|
return jspb.Message.getField(this, 7) != null;
|
1718
1784
|
};
|
1719
1785
|
|
1720
1786
|
|
1721
1787
|
/**
|
1722
|
-
* optional string
|
1788
|
+
* optional string last_name = 8;
|
1723
1789
|
* @return {string}
|
1724
1790
|
*/
|
1725
|
-
proto.user.RegistrationRequest.prototype.
|
1791
|
+
proto.user.RegistrationRequest.prototype.getLastName = function() {
|
1726
1792
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
1727
1793
|
};
|
1728
1794
|
|
@@ -1731,7 +1797,7 @@ proto.user.RegistrationRequest.prototype.getLocale = function() {
|
|
1731
1797
|
* @param {string} value
|
1732
1798
|
* @return {!proto.user.RegistrationRequest} returns this
|
1733
1799
|
*/
|
1734
|
-
proto.user.RegistrationRequest.prototype.
|
1800
|
+
proto.user.RegistrationRequest.prototype.setLastName = function(value) {
|
1735
1801
|
return jspb.Message.setField(this, 8, value);
|
1736
1802
|
};
|
1737
1803
|
|
@@ -1740,7 +1806,7 @@ proto.user.RegistrationRequest.prototype.setLocale = function(value) {
|
|
1740
1806
|
* Clears the field making it undefined.
|
1741
1807
|
* @return {!proto.user.RegistrationRequest} returns this
|
1742
1808
|
*/
|
1743
|
-
proto.user.RegistrationRequest.prototype.
|
1809
|
+
proto.user.RegistrationRequest.prototype.clearLastName = function() {
|
1744
1810
|
return jspb.Message.setField(this, 8, undefined);
|
1745
1811
|
};
|
1746
1812
|
|
@@ -1749,11 +1815,155 @@ proto.user.RegistrationRequest.prototype.clearLocale = function() {
|
|
1749
1815
|
* Returns whether this field is set.
|
1750
1816
|
* @return {boolean}
|
1751
1817
|
*/
|
1752
|
-
proto.user.RegistrationRequest.prototype.
|
1818
|
+
proto.user.RegistrationRequest.prototype.hasLastName = function() {
|
1753
1819
|
return jspb.Message.getField(this, 8) != null;
|
1754
1820
|
};
|
1755
1821
|
|
1756
1822
|
|
1823
|
+
/**
|
1824
|
+
* optional string birthday = 9;
|
1825
|
+
* @return {string}
|
1826
|
+
*/
|
1827
|
+
proto.user.RegistrationRequest.prototype.getBirthday = function() {
|
1828
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
1829
|
+
};
|
1830
|
+
|
1831
|
+
|
1832
|
+
/**
|
1833
|
+
* @param {string} value
|
1834
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1835
|
+
*/
|
1836
|
+
proto.user.RegistrationRequest.prototype.setBirthday = function(value) {
|
1837
|
+
return jspb.Message.setField(this, 9, value);
|
1838
|
+
};
|
1839
|
+
|
1840
|
+
|
1841
|
+
/**
|
1842
|
+
* Clears the field making it undefined.
|
1843
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1844
|
+
*/
|
1845
|
+
proto.user.RegistrationRequest.prototype.clearBirthday = function() {
|
1846
|
+
return jspb.Message.setField(this, 9, undefined);
|
1847
|
+
};
|
1848
|
+
|
1849
|
+
|
1850
|
+
/**
|
1851
|
+
* Returns whether this field is set.
|
1852
|
+
* @return {boolean}
|
1853
|
+
*/
|
1854
|
+
proto.user.RegistrationRequest.prototype.hasBirthday = function() {
|
1855
|
+
return jspb.Message.getField(this, 9) != null;
|
1856
|
+
};
|
1857
|
+
|
1858
|
+
|
1859
|
+
/**
|
1860
|
+
* optional string locale = 10;
|
1861
|
+
* @return {string}
|
1862
|
+
*/
|
1863
|
+
proto.user.RegistrationRequest.prototype.getLocale = function() {
|
1864
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
1865
|
+
};
|
1866
|
+
|
1867
|
+
|
1868
|
+
/**
|
1869
|
+
* @param {string} value
|
1870
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1871
|
+
*/
|
1872
|
+
proto.user.RegistrationRequest.prototype.setLocale = function(value) {
|
1873
|
+
return jspb.Message.setField(this, 10, value);
|
1874
|
+
};
|
1875
|
+
|
1876
|
+
|
1877
|
+
/**
|
1878
|
+
* Clears the field making it undefined.
|
1879
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1880
|
+
*/
|
1881
|
+
proto.user.RegistrationRequest.prototype.clearLocale = function() {
|
1882
|
+
return jspb.Message.setField(this, 10, undefined);
|
1883
|
+
};
|
1884
|
+
|
1885
|
+
|
1886
|
+
/**
|
1887
|
+
* Returns whether this field is set.
|
1888
|
+
* @return {boolean}
|
1889
|
+
*/
|
1890
|
+
proto.user.RegistrationRequest.prototype.hasLocale = function() {
|
1891
|
+
return jspb.Message.getField(this, 10) != null;
|
1892
|
+
};
|
1893
|
+
|
1894
|
+
|
1895
|
+
/**
|
1896
|
+
* optional bool email_subscription = 11;
|
1897
|
+
* @return {boolean}
|
1898
|
+
*/
|
1899
|
+
proto.user.RegistrationRequest.prototype.getEmailSubscription = function() {
|
1900
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
|
1901
|
+
};
|
1902
|
+
|
1903
|
+
|
1904
|
+
/**
|
1905
|
+
* @param {boolean} value
|
1906
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1907
|
+
*/
|
1908
|
+
proto.user.RegistrationRequest.prototype.setEmailSubscription = function(value) {
|
1909
|
+
return jspb.Message.setField(this, 11, value);
|
1910
|
+
};
|
1911
|
+
|
1912
|
+
|
1913
|
+
/**
|
1914
|
+
* Clears the field making it undefined.
|
1915
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1916
|
+
*/
|
1917
|
+
proto.user.RegistrationRequest.prototype.clearEmailSubscription = function() {
|
1918
|
+
return jspb.Message.setField(this, 11, undefined);
|
1919
|
+
};
|
1920
|
+
|
1921
|
+
|
1922
|
+
/**
|
1923
|
+
* Returns whether this field is set.
|
1924
|
+
* @return {boolean}
|
1925
|
+
*/
|
1926
|
+
proto.user.RegistrationRequest.prototype.hasEmailSubscription = function() {
|
1927
|
+
return jspb.Message.getField(this, 11) != null;
|
1928
|
+
};
|
1929
|
+
|
1930
|
+
|
1931
|
+
/**
|
1932
|
+
* optional int32 affiliate_id = 12;
|
1933
|
+
* @return {number}
|
1934
|
+
*/
|
1935
|
+
proto.user.RegistrationRequest.prototype.getAffiliateId = function() {
|
1936
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
1937
|
+
};
|
1938
|
+
|
1939
|
+
|
1940
|
+
/**
|
1941
|
+
* @param {number} value
|
1942
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1943
|
+
*/
|
1944
|
+
proto.user.RegistrationRequest.prototype.setAffiliateId = function(value) {
|
1945
|
+
return jspb.Message.setField(this, 12, value);
|
1946
|
+
};
|
1947
|
+
|
1948
|
+
|
1949
|
+
/**
|
1950
|
+
* Clears the field making it undefined.
|
1951
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1952
|
+
*/
|
1953
|
+
proto.user.RegistrationRequest.prototype.clearAffiliateId = function() {
|
1954
|
+
return jspb.Message.setField(this, 12, undefined);
|
1955
|
+
};
|
1956
|
+
|
1957
|
+
|
1958
|
+
/**
|
1959
|
+
* Returns whether this field is set.
|
1960
|
+
* @return {boolean}
|
1961
|
+
*/
|
1962
|
+
proto.user.RegistrationRequest.prototype.hasAffiliateId = function() {
|
1963
|
+
return jspb.Message.getField(this, 12) != null;
|
1964
|
+
};
|
1965
|
+
|
1966
|
+
|
1757
1967
|
|
1758
1968
|
|
1759
1969
|
|