stream-chat 8.48.0 → 8.49.0
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/dist/browser.es.js +17 -20
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +17 -20
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +17 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -20
- package/dist/index.js.map +1 -1
- package/dist/types/moderation.d.ts +9 -5
- package/dist/types/moderation.d.ts.map +1 -1
- package/dist/types/types.d.ts +116 -3
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/moderation.ts +7 -6
- package/src/types.ts +135 -3
package/dist/browser.es.js
CHANGED
|
@@ -8551,21 +8551,18 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8551
8551
|
}, {
|
|
8552
8552
|
key: "upsertConfig",
|
|
8553
8553
|
value: function () {
|
|
8554
|
-
var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
8555
|
-
var config,
|
|
8556
|
-
_args8 = arguments;
|
|
8554
|
+
var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(config) {
|
|
8557
8555
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
8558
8556
|
while (1) {
|
|
8559
8557
|
switch (_context8.prev = _context8.next) {
|
|
8560
8558
|
case 0:
|
|
8561
|
-
|
|
8562
|
-
_context8.next = 3;
|
|
8559
|
+
_context8.next = 2;
|
|
8563
8560
|
return this.client.post(this.client.baseURL + '/api/v2/moderation/config', config);
|
|
8564
8561
|
|
|
8565
|
-
case
|
|
8562
|
+
case 2:
|
|
8566
8563
|
return _context8.abrupt("return", _context8.sent);
|
|
8567
8564
|
|
|
8568
|
-
case
|
|
8565
|
+
case 3:
|
|
8569
8566
|
case "end":
|
|
8570
8567
|
return _context8.stop();
|
|
8571
8568
|
}
|
|
@@ -8573,7 +8570,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8573
8570
|
}, _callee8, this);
|
|
8574
8571
|
}));
|
|
8575
8572
|
|
|
8576
|
-
function upsertConfig() {
|
|
8573
|
+
function upsertConfig(_x13) {
|
|
8577
8574
|
return _upsertConfig.apply(this, arguments);
|
|
8578
8575
|
}
|
|
8579
8576
|
|
|
@@ -8587,13 +8584,13 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8587
8584
|
}, {
|
|
8588
8585
|
key: "getConfig",
|
|
8589
8586
|
value: function () {
|
|
8590
|
-
var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key) {
|
|
8587
|
+
var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key, data) {
|
|
8591
8588
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
8592
8589
|
while (1) {
|
|
8593
8590
|
switch (_context9.prev = _context9.next) {
|
|
8594
8591
|
case 0:
|
|
8595
8592
|
_context9.next = 2;
|
|
8596
|
-
return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key);
|
|
8593
|
+
return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
|
|
8597
8594
|
|
|
8598
8595
|
case 2:
|
|
8599
8596
|
return _context9.abrupt("return", _context9.sent);
|
|
@@ -8606,7 +8603,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8606
8603
|
}, _callee9, this);
|
|
8607
8604
|
}));
|
|
8608
8605
|
|
|
8609
|
-
function getConfig(
|
|
8606
|
+
function getConfig(_x14, _x15) {
|
|
8610
8607
|
return _getConfig.apply(this, arguments);
|
|
8611
8608
|
}
|
|
8612
8609
|
|
|
@@ -8615,13 +8612,13 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8615
8612
|
}, {
|
|
8616
8613
|
key: "deleteConfig",
|
|
8617
8614
|
value: function () {
|
|
8618
|
-
var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key) {
|
|
8615
|
+
var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key, data) {
|
|
8619
8616
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
8620
8617
|
while (1) {
|
|
8621
8618
|
switch (_context10.prev = _context10.next) {
|
|
8622
8619
|
case 0:
|
|
8623
8620
|
_context10.next = 2;
|
|
8624
|
-
return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key);
|
|
8621
|
+
return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
|
|
8625
8622
|
|
|
8626
8623
|
case 2:
|
|
8627
8624
|
return _context10.abrupt("return", _context10.sent);
|
|
@@ -8634,7 +8631,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8634
8631
|
}, _callee10, this);
|
|
8635
8632
|
}));
|
|
8636
8633
|
|
|
8637
|
-
function deleteConfig(
|
|
8634
|
+
function deleteConfig(_x16, _x17) {
|
|
8638
8635
|
return _deleteConfig.apply(this, arguments);
|
|
8639
8636
|
}
|
|
8640
8637
|
|
|
@@ -8675,7 +8672,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8675
8672
|
}, _callee11, this);
|
|
8676
8673
|
}));
|
|
8677
8674
|
|
|
8678
|
-
function queryConfigs(
|
|
8675
|
+
function queryConfigs(_x18, _x19) {
|
|
8679
8676
|
return _queryConfigs.apply(this, arguments);
|
|
8680
8677
|
}
|
|
8681
8678
|
|
|
@@ -8709,7 +8706,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8709
8706
|
}, _callee12, this);
|
|
8710
8707
|
}));
|
|
8711
8708
|
|
|
8712
|
-
function submitAction(
|
|
8709
|
+
function submitAction(_x20, _x21) {
|
|
8713
8710
|
return _submitAction.apply(this, arguments);
|
|
8714
8711
|
}
|
|
8715
8712
|
|
|
@@ -8758,7 +8755,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8758
8755
|
}, _callee13, this);
|
|
8759
8756
|
}));
|
|
8760
8757
|
|
|
8761
|
-
function check(
|
|
8758
|
+
function check(_x22, _x23, _x24, _x25, _x26, _x27) {
|
|
8762
8759
|
return _check.apply(this, arguments);
|
|
8763
8760
|
}
|
|
8764
8761
|
|
|
@@ -8805,7 +8802,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8805
8802
|
}, _callee14, this);
|
|
8806
8803
|
}));
|
|
8807
8804
|
|
|
8808
|
-
function addCustomFlags(
|
|
8805
|
+
function addCustomFlags(_x28, _x29, _x30, _x31, _x32) {
|
|
8809
8806
|
return _addCustomFlags.apply(this, arguments);
|
|
8810
8807
|
}
|
|
8811
8808
|
|
|
@@ -8840,7 +8837,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8840
8837
|
}, _callee15, this);
|
|
8841
8838
|
}));
|
|
8842
8839
|
|
|
8843
|
-
function addCustomMessageFlags(
|
|
8840
|
+
function addCustomMessageFlags(_x33, _x34) {
|
|
8844
8841
|
return _addCustomMessageFlags.apply(this, arguments);
|
|
8845
8842
|
}
|
|
8846
8843
|
|
|
@@ -14833,7 +14830,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14833
14830
|
}, {
|
|
14834
14831
|
key: "getUserAgent",
|
|
14835
14832
|
value: function getUserAgent() {
|
|
14836
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
14833
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.49.0");
|
|
14837
14834
|
}
|
|
14838
14835
|
}, {
|
|
14839
14836
|
key: "setUserAgent",
|