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/index.js
CHANGED
|
@@ -8582,21 +8582,18 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8582
8582
|
}, {
|
|
8583
8583
|
key: "upsertConfig",
|
|
8584
8584
|
value: function () {
|
|
8585
|
-
var _upsertConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee8() {
|
|
8586
|
-
var config,
|
|
8587
|
-
_args8 = arguments;
|
|
8585
|
+
var _upsertConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee8(config) {
|
|
8588
8586
|
return _regeneratorRuntime__default['default'].wrap(function _callee8$(_context8) {
|
|
8589
8587
|
while (1) {
|
|
8590
8588
|
switch (_context8.prev = _context8.next) {
|
|
8591
8589
|
case 0:
|
|
8592
|
-
|
|
8593
|
-
_context8.next = 3;
|
|
8590
|
+
_context8.next = 2;
|
|
8594
8591
|
return this.client.post(this.client.baseURL + '/api/v2/moderation/config', config);
|
|
8595
8592
|
|
|
8596
|
-
case
|
|
8593
|
+
case 2:
|
|
8597
8594
|
return _context8.abrupt("return", _context8.sent);
|
|
8598
8595
|
|
|
8599
|
-
case
|
|
8596
|
+
case 3:
|
|
8600
8597
|
case "end":
|
|
8601
8598
|
return _context8.stop();
|
|
8602
8599
|
}
|
|
@@ -8604,7 +8601,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8604
8601
|
}, _callee8, this);
|
|
8605
8602
|
}));
|
|
8606
8603
|
|
|
8607
|
-
function upsertConfig() {
|
|
8604
|
+
function upsertConfig(_x13) {
|
|
8608
8605
|
return _upsertConfig.apply(this, arguments);
|
|
8609
8606
|
}
|
|
8610
8607
|
|
|
@@ -8618,13 +8615,13 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8618
8615
|
}, {
|
|
8619
8616
|
key: "getConfig",
|
|
8620
8617
|
value: function () {
|
|
8621
|
-
var _getConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee9(key) {
|
|
8618
|
+
var _getConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee9(key, data) {
|
|
8622
8619
|
return _regeneratorRuntime__default['default'].wrap(function _callee9$(_context9) {
|
|
8623
8620
|
while (1) {
|
|
8624
8621
|
switch (_context9.prev = _context9.next) {
|
|
8625
8622
|
case 0:
|
|
8626
8623
|
_context9.next = 2;
|
|
8627
|
-
return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key);
|
|
8624
|
+
return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
|
|
8628
8625
|
|
|
8629
8626
|
case 2:
|
|
8630
8627
|
return _context9.abrupt("return", _context9.sent);
|
|
@@ -8637,7 +8634,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8637
8634
|
}, _callee9, this);
|
|
8638
8635
|
}));
|
|
8639
8636
|
|
|
8640
|
-
function getConfig(
|
|
8637
|
+
function getConfig(_x14, _x15) {
|
|
8641
8638
|
return _getConfig.apply(this, arguments);
|
|
8642
8639
|
}
|
|
8643
8640
|
|
|
@@ -8646,13 +8643,13 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8646
8643
|
}, {
|
|
8647
8644
|
key: "deleteConfig",
|
|
8648
8645
|
value: function () {
|
|
8649
|
-
var _deleteConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee10(key) {
|
|
8646
|
+
var _deleteConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee10(key, data) {
|
|
8650
8647
|
return _regeneratorRuntime__default['default'].wrap(function _callee10$(_context10) {
|
|
8651
8648
|
while (1) {
|
|
8652
8649
|
switch (_context10.prev = _context10.next) {
|
|
8653
8650
|
case 0:
|
|
8654
8651
|
_context10.next = 2;
|
|
8655
|
-
return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key);
|
|
8652
|
+
return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
|
|
8656
8653
|
|
|
8657
8654
|
case 2:
|
|
8658
8655
|
return _context10.abrupt("return", _context10.sent);
|
|
@@ -8665,7 +8662,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8665
8662
|
}, _callee10, this);
|
|
8666
8663
|
}));
|
|
8667
8664
|
|
|
8668
|
-
function deleteConfig(
|
|
8665
|
+
function deleteConfig(_x16, _x17) {
|
|
8669
8666
|
return _deleteConfig.apply(this, arguments);
|
|
8670
8667
|
}
|
|
8671
8668
|
|
|
@@ -8706,7 +8703,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8706
8703
|
}, _callee11, this);
|
|
8707
8704
|
}));
|
|
8708
8705
|
|
|
8709
|
-
function queryConfigs(
|
|
8706
|
+
function queryConfigs(_x18, _x19) {
|
|
8710
8707
|
return _queryConfigs.apply(this, arguments);
|
|
8711
8708
|
}
|
|
8712
8709
|
|
|
@@ -8740,7 +8737,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8740
8737
|
}, _callee12, this);
|
|
8741
8738
|
}));
|
|
8742
8739
|
|
|
8743
|
-
function submitAction(
|
|
8740
|
+
function submitAction(_x20, _x21) {
|
|
8744
8741
|
return _submitAction.apply(this, arguments);
|
|
8745
8742
|
}
|
|
8746
8743
|
|
|
@@ -8789,7 +8786,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8789
8786
|
}, _callee13, this);
|
|
8790
8787
|
}));
|
|
8791
8788
|
|
|
8792
|
-
function check(
|
|
8789
|
+
function check(_x22, _x23, _x24, _x25, _x26, _x27) {
|
|
8793
8790
|
return _check.apply(this, arguments);
|
|
8794
8791
|
}
|
|
8795
8792
|
|
|
@@ -8836,7 +8833,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8836
8833
|
}, _callee14, this);
|
|
8837
8834
|
}));
|
|
8838
8835
|
|
|
8839
|
-
function addCustomFlags(
|
|
8836
|
+
function addCustomFlags(_x28, _x29, _x30, _x31, _x32) {
|
|
8840
8837
|
return _addCustomFlags.apply(this, arguments);
|
|
8841
8838
|
}
|
|
8842
8839
|
|
|
@@ -8871,7 +8868,7 @@ var Moderation = /*#__PURE__*/function () {
|
|
|
8871
8868
|
}, _callee15, this);
|
|
8872
8869
|
}));
|
|
8873
8870
|
|
|
8874
|
-
function addCustomMessageFlags(
|
|
8871
|
+
function addCustomMessageFlags(_x33, _x34) {
|
|
8875
8872
|
return _addCustomMessageFlags.apply(this, arguments);
|
|
8876
8873
|
}
|
|
8877
8874
|
|
|
@@ -14864,7 +14861,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14864
14861
|
}, {
|
|
14865
14862
|
key: "getUserAgent",
|
|
14866
14863
|
value: function getUserAgent() {
|
|
14867
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
14864
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.49.0");
|
|
14868
14865
|
}
|
|
14869
14866
|
}, {
|
|
14870
14867
|
key: "setUserAgent",
|