stream-chat 7.0.0 → 7.1.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 +257 -285
- 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 +257 -285
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +257 -285
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +257 -285
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +28 -39
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +55 -14
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +56 -35
- package/src/types.ts +66 -15
package/dist/index.es.js
CHANGED
|
@@ -5939,6 +5939,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
5939
5939
|
`messages` soft-hard will delete any messages that the user has sent.
|
|
5940
5940
|
`new_channel_owner_id` any channels owned by the hard-deleted user will be transferred to this user ID
|
|
5941
5941
|
*/
|
|
5942
|
+
// TODO: add better typing
|
|
5942
5943
|
var ErrorFromResponse = /*#__PURE__*/function (_Error) {
|
|
5943
5944
|
_inherits(ErrorFromResponse, _Error);
|
|
5944
5945
|
|
|
@@ -9825,7 +9826,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9825
9826
|
}, {
|
|
9826
9827
|
key: "getUserAgent",
|
|
9827
9828
|
value: function getUserAgent() {
|
|
9828
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "7.
|
|
9829
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "7.1.0");
|
|
9829
9830
|
}
|
|
9830
9831
|
}, {
|
|
9831
9832
|
key: "setUserAgent",
|
|
@@ -10145,32 +10146,34 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10145
10146
|
return createSegment;
|
|
10146
10147
|
}()
|
|
10147
10148
|
/**
|
|
10148
|
-
*
|
|
10149
|
+
* querySegments - Query Campaign Segments
|
|
10149
10150
|
*
|
|
10150
|
-
* @param {string} id Segment ID
|
|
10151
10151
|
*
|
|
10152
|
-
* @return {Segment}
|
|
10152
|
+
* @return {Segment[]} Segments
|
|
10153
10153
|
*/
|
|
10154
10154
|
|
|
10155
10155
|
}, {
|
|
10156
|
-
key: "
|
|
10156
|
+
key: "querySegments",
|
|
10157
10157
|
value: function () {
|
|
10158
|
-
var
|
|
10159
|
-
var
|
|
10160
|
-
|
|
10158
|
+
var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(filters) {
|
|
10159
|
+
var options,
|
|
10160
|
+
_args55 = arguments;
|
|
10161
10161
|
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
10162
10162
|
while (1) {
|
|
10163
10163
|
switch (_context55.prev = _context55.next) {
|
|
10164
10164
|
case 0:
|
|
10165
|
-
|
|
10166
|
-
|
|
10165
|
+
options = _args55.length > 1 && _args55[1] !== undefined ? _args55[1] : {};
|
|
10166
|
+
_context55.next = 3;
|
|
10167
|
+
return this.get(this.baseURL + "/segments", {
|
|
10168
|
+
payload: _objectSpread({
|
|
10169
|
+
filter_conditions: filters
|
|
10170
|
+
}, options)
|
|
10171
|
+
});
|
|
10167
10172
|
|
|
10168
|
-
case
|
|
10169
|
-
|
|
10170
|
-
segment = _yield$this$get.segment;
|
|
10171
|
-
return _context55.abrupt("return", segment);
|
|
10173
|
+
case 3:
|
|
10174
|
+
return _context55.abrupt("return", _context55.sent);
|
|
10172
10175
|
|
|
10173
|
-
case
|
|
10176
|
+
case 4:
|
|
10174
10177
|
case "end":
|
|
10175
10178
|
return _context55.stop();
|
|
10176
10179
|
}
|
|
@@ -10178,50 +10181,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10178
10181
|
}, _callee55, this);
|
|
10179
10182
|
}));
|
|
10180
10183
|
|
|
10181
|
-
function
|
|
10182
|
-
return
|
|
10184
|
+
function querySegments(_x74) {
|
|
10185
|
+
return _querySegments.apply(this, arguments);
|
|
10183
10186
|
}
|
|
10184
10187
|
|
|
10185
|
-
return
|
|
10186
|
-
}()
|
|
10187
|
-
/**
|
|
10188
|
-
* listSegments - List Campaign Segments
|
|
10189
|
-
*
|
|
10190
|
-
*
|
|
10191
|
-
* @return {Segment[]} Segments
|
|
10192
|
-
*/
|
|
10193
|
-
|
|
10194
|
-
}, {
|
|
10195
|
-
key: "listSegments",
|
|
10196
|
-
value: function () {
|
|
10197
|
-
var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(options) {
|
|
10198
|
-
var _yield$this$get2, segments;
|
|
10199
|
-
|
|
10200
|
-
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
10201
|
-
while (1) {
|
|
10202
|
-
switch (_context56.prev = _context56.next) {
|
|
10203
|
-
case 0:
|
|
10204
|
-
_context56.next = 2;
|
|
10205
|
-
return this.get(this.baseURL + "/segments", options);
|
|
10206
|
-
|
|
10207
|
-
case 2:
|
|
10208
|
-
_yield$this$get2 = _context56.sent;
|
|
10209
|
-
segments = _yield$this$get2.segments;
|
|
10210
|
-
return _context56.abrupt("return", segments);
|
|
10211
|
-
|
|
10212
|
-
case 5:
|
|
10213
|
-
case "end":
|
|
10214
|
-
return _context56.stop();
|
|
10215
|
-
}
|
|
10216
|
-
}
|
|
10217
|
-
}, _callee56, this);
|
|
10218
|
-
}));
|
|
10219
|
-
|
|
10220
|
-
function listSegments(_x75) {
|
|
10221
|
-
return _listSegments.apply(this, arguments);
|
|
10222
|
-
}
|
|
10223
|
-
|
|
10224
|
-
return listSegments;
|
|
10188
|
+
return querySegments;
|
|
10225
10189
|
}()
|
|
10226
10190
|
/**
|
|
10227
10191
|
* updateSegment - Update a Campaign Segment
|
|
@@ -10235,32 +10199,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10235
10199
|
}, {
|
|
10236
10200
|
key: "updateSegment",
|
|
10237
10201
|
value: function () {
|
|
10238
|
-
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10202
|
+
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(id, params) {
|
|
10239
10203
|
var _yield$this$put, segment;
|
|
10240
10204
|
|
|
10241
|
-
return _regeneratorRuntime.wrap(function
|
|
10205
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
10242
10206
|
while (1) {
|
|
10243
|
-
switch (
|
|
10207
|
+
switch (_context56.prev = _context56.next) {
|
|
10244
10208
|
case 0:
|
|
10245
|
-
|
|
10209
|
+
_context56.next = 2;
|
|
10246
10210
|
return this.put(this.baseURL + "/segments/".concat(id), {
|
|
10247
10211
|
segment: params
|
|
10248
10212
|
});
|
|
10249
10213
|
|
|
10250
10214
|
case 2:
|
|
10251
|
-
_yield$this$put =
|
|
10215
|
+
_yield$this$put = _context56.sent;
|
|
10252
10216
|
segment = _yield$this$put.segment;
|
|
10253
|
-
return
|
|
10217
|
+
return _context56.abrupt("return", segment);
|
|
10254
10218
|
|
|
10255
10219
|
case 5:
|
|
10256
10220
|
case "end":
|
|
10257
|
-
return
|
|
10221
|
+
return _context56.stop();
|
|
10258
10222
|
}
|
|
10259
10223
|
}
|
|
10260
|
-
},
|
|
10224
|
+
}, _callee56, this);
|
|
10261
10225
|
}));
|
|
10262
10226
|
|
|
10263
|
-
function updateSegment(
|
|
10227
|
+
function updateSegment(_x75, _x76) {
|
|
10264
10228
|
return _updateSegment.apply(this, arguments);
|
|
10265
10229
|
}
|
|
10266
10230
|
|
|
@@ -10277,22 +10241,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10277
10241
|
}, {
|
|
10278
10242
|
key: "deleteSegment",
|
|
10279
10243
|
value: function () {
|
|
10280
|
-
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10281
|
-
return _regeneratorRuntime.wrap(function
|
|
10244
|
+
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id) {
|
|
10245
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
10282
10246
|
while (1) {
|
|
10283
|
-
switch (
|
|
10247
|
+
switch (_context57.prev = _context57.next) {
|
|
10284
10248
|
case 0:
|
|
10285
|
-
return
|
|
10249
|
+
return _context57.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
|
|
10286
10250
|
|
|
10287
10251
|
case 1:
|
|
10288
10252
|
case "end":
|
|
10289
|
-
return
|
|
10253
|
+
return _context57.stop();
|
|
10290
10254
|
}
|
|
10291
10255
|
}
|
|
10292
|
-
},
|
|
10256
|
+
}, _callee57, this);
|
|
10293
10257
|
}));
|
|
10294
10258
|
|
|
10295
|
-
function deleteSegment(
|
|
10259
|
+
function deleteSegment(_x77) {
|
|
10296
10260
|
return _deleteSegment.apply(this, arguments);
|
|
10297
10261
|
}
|
|
10298
10262
|
|
|
@@ -10309,115 +10273,78 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10309
10273
|
}, {
|
|
10310
10274
|
key: "createCampaign",
|
|
10311
10275
|
value: function () {
|
|
10312
|
-
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10276
|
+
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
|
|
10313
10277
|
var _yield$this$post2, campaign;
|
|
10314
10278
|
|
|
10315
|
-
return _regeneratorRuntime.wrap(function
|
|
10279
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
10316
10280
|
while (1) {
|
|
10317
|
-
switch (
|
|
10281
|
+
switch (_context58.prev = _context58.next) {
|
|
10318
10282
|
case 0:
|
|
10319
|
-
|
|
10283
|
+
_context58.next = 2;
|
|
10320
10284
|
return this.post(this.baseURL + "/campaigns", {
|
|
10321
10285
|
campaign: params
|
|
10322
10286
|
});
|
|
10323
10287
|
|
|
10324
10288
|
case 2:
|
|
10325
|
-
_yield$this$post2 =
|
|
10289
|
+
_yield$this$post2 = _context58.sent;
|
|
10326
10290
|
campaign = _yield$this$post2.campaign;
|
|
10327
|
-
return
|
|
10291
|
+
return _context58.abrupt("return", campaign);
|
|
10328
10292
|
|
|
10329
10293
|
case 5:
|
|
10330
10294
|
case "end":
|
|
10331
|
-
return
|
|
10295
|
+
return _context58.stop();
|
|
10332
10296
|
}
|
|
10333
10297
|
}
|
|
10334
|
-
},
|
|
10298
|
+
}, _callee58, this);
|
|
10335
10299
|
}));
|
|
10336
10300
|
|
|
10337
|
-
function createCampaign(
|
|
10301
|
+
function createCampaign(_x78) {
|
|
10338
10302
|
return _createCampaign.apply(this, arguments);
|
|
10339
10303
|
}
|
|
10340
10304
|
|
|
10341
10305
|
return createCampaign;
|
|
10342
10306
|
}()
|
|
10343
10307
|
/**
|
|
10344
|
-
*
|
|
10345
|
-
*
|
|
10346
|
-
* @param {string} id Campaign ID
|
|
10347
|
-
*
|
|
10348
|
-
* @return {Campaign} A Campaign
|
|
10349
|
-
*/
|
|
10350
|
-
|
|
10351
|
-
}, {
|
|
10352
|
-
key: "getCampaign",
|
|
10353
|
-
value: function () {
|
|
10354
|
-
var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
|
|
10355
|
-
var _yield$this$get3, campaign;
|
|
10356
|
-
|
|
10357
|
-
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
10358
|
-
while (1) {
|
|
10359
|
-
switch (_context60.prev = _context60.next) {
|
|
10360
|
-
case 0:
|
|
10361
|
-
_context60.next = 2;
|
|
10362
|
-
return this.get(this.baseURL + "/campaigns/".concat(id));
|
|
10363
|
-
|
|
10364
|
-
case 2:
|
|
10365
|
-
_yield$this$get3 = _context60.sent;
|
|
10366
|
-
campaign = _yield$this$get3.campaign;
|
|
10367
|
-
return _context60.abrupt("return", campaign);
|
|
10368
|
-
|
|
10369
|
-
case 5:
|
|
10370
|
-
case "end":
|
|
10371
|
-
return _context60.stop();
|
|
10372
|
-
}
|
|
10373
|
-
}
|
|
10374
|
-
}, _callee60, this);
|
|
10375
|
-
}));
|
|
10376
|
-
|
|
10377
|
-
function getCampaign(_x80) {
|
|
10378
|
-
return _getCampaign.apply(this, arguments);
|
|
10379
|
-
}
|
|
10380
|
-
|
|
10381
|
-
return getCampaign;
|
|
10382
|
-
}()
|
|
10383
|
-
/**
|
|
10384
|
-
* listCampaigns - List Campaigns
|
|
10308
|
+
* queryCampaigns - Query Campaigns
|
|
10385
10309
|
*
|
|
10386
10310
|
*
|
|
10387
10311
|
* @return {Campaign[]} Campaigns
|
|
10388
10312
|
*/
|
|
10389
10313
|
|
|
10390
10314
|
}, {
|
|
10391
|
-
key: "
|
|
10315
|
+
key: "queryCampaigns",
|
|
10392
10316
|
value: function () {
|
|
10393
|
-
var
|
|
10394
|
-
var
|
|
10395
|
-
|
|
10396
|
-
return _regeneratorRuntime.wrap(function
|
|
10317
|
+
var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(filters) {
|
|
10318
|
+
var options,
|
|
10319
|
+
_args59 = arguments;
|
|
10320
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
10397
10321
|
while (1) {
|
|
10398
|
-
switch (
|
|
10322
|
+
switch (_context59.prev = _context59.next) {
|
|
10399
10323
|
case 0:
|
|
10400
|
-
|
|
10401
|
-
|
|
10324
|
+
options = _args59.length > 1 && _args59[1] !== undefined ? _args59[1] : {};
|
|
10325
|
+
_context59.next = 3;
|
|
10326
|
+
return this.get(this.baseURL + "/campaigns", {
|
|
10327
|
+
payload: _objectSpread({
|
|
10328
|
+
filter_conditions: filters
|
|
10329
|
+
}, options)
|
|
10330
|
+
});
|
|
10402
10331
|
|
|
10403
|
-
case
|
|
10404
|
-
|
|
10405
|
-
campaigns = _yield$this$get4.campaigns;
|
|
10406
|
-
return _context61.abrupt("return", campaigns);
|
|
10332
|
+
case 3:
|
|
10333
|
+
return _context59.abrupt("return", _context59.sent);
|
|
10407
10334
|
|
|
10408
|
-
case
|
|
10335
|
+
case 4:
|
|
10409
10336
|
case "end":
|
|
10410
|
-
return
|
|
10337
|
+
return _context59.stop();
|
|
10411
10338
|
}
|
|
10412
10339
|
}
|
|
10413
|
-
},
|
|
10340
|
+
}, _callee59, this);
|
|
10414
10341
|
}));
|
|
10415
10342
|
|
|
10416
|
-
function
|
|
10417
|
-
return
|
|
10343
|
+
function queryCampaigns(_x79) {
|
|
10344
|
+
return _queryCampaigns.apply(this, arguments);
|
|
10418
10345
|
}
|
|
10419
10346
|
|
|
10420
|
-
return
|
|
10347
|
+
return queryCampaigns;
|
|
10421
10348
|
}()
|
|
10422
10349
|
/**
|
|
10423
10350
|
* updateCampaign - Update a Campaign
|
|
@@ -10431,32 +10358,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10431
10358
|
}, {
|
|
10432
10359
|
key: "updateCampaign",
|
|
10433
10360
|
value: function () {
|
|
10434
|
-
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10361
|
+
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id, params) {
|
|
10435
10362
|
var _yield$this$put2, campaign;
|
|
10436
10363
|
|
|
10437
|
-
return _regeneratorRuntime.wrap(function
|
|
10364
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
10438
10365
|
while (1) {
|
|
10439
|
-
switch (
|
|
10366
|
+
switch (_context60.prev = _context60.next) {
|
|
10440
10367
|
case 0:
|
|
10441
|
-
|
|
10368
|
+
_context60.next = 2;
|
|
10442
10369
|
return this.put(this.baseURL + "/campaigns/".concat(id), {
|
|
10443
10370
|
campaign: params
|
|
10444
10371
|
});
|
|
10445
10372
|
|
|
10446
10373
|
case 2:
|
|
10447
|
-
_yield$this$put2 =
|
|
10374
|
+
_yield$this$put2 = _context60.sent;
|
|
10448
10375
|
campaign = _yield$this$put2.campaign;
|
|
10449
|
-
return
|
|
10376
|
+
return _context60.abrupt("return", campaign);
|
|
10450
10377
|
|
|
10451
10378
|
case 5:
|
|
10452
10379
|
case "end":
|
|
10453
|
-
return
|
|
10380
|
+
return _context60.stop();
|
|
10454
10381
|
}
|
|
10455
10382
|
}
|
|
10456
|
-
},
|
|
10383
|
+
}, _callee60, this);
|
|
10457
10384
|
}));
|
|
10458
10385
|
|
|
10459
|
-
function updateCampaign(
|
|
10386
|
+
function updateCampaign(_x80, _x81) {
|
|
10460
10387
|
return _updateCampaign.apply(this, arguments);
|
|
10461
10388
|
}
|
|
10462
10389
|
|
|
@@ -10473,22 +10400,25 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10473
10400
|
}, {
|
|
10474
10401
|
key: "deleteCampaign",
|
|
10475
10402
|
value: function () {
|
|
10476
|
-
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10477
|
-
|
|
10403
|
+
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id) {
|
|
10404
|
+
var params,
|
|
10405
|
+
_args61 = arguments;
|
|
10406
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
10478
10407
|
while (1) {
|
|
10479
|
-
switch (
|
|
10408
|
+
switch (_context61.prev = _context61.next) {
|
|
10480
10409
|
case 0:
|
|
10481
|
-
|
|
10410
|
+
params = _args61.length > 1 && _args61[1] !== undefined ? _args61[1] : {};
|
|
10411
|
+
return _context61.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
|
|
10482
10412
|
|
|
10483
|
-
case
|
|
10413
|
+
case 2:
|
|
10484
10414
|
case "end":
|
|
10485
|
-
return
|
|
10415
|
+
return _context61.stop();
|
|
10486
10416
|
}
|
|
10487
10417
|
}
|
|
10488
|
-
},
|
|
10418
|
+
}, _callee61, this);
|
|
10489
10419
|
}));
|
|
10490
10420
|
|
|
10491
|
-
function deleteCampaign(
|
|
10421
|
+
function deleteCampaign(_x82) {
|
|
10492
10422
|
return _deleteCampaign.apply(this, arguments);
|
|
10493
10423
|
}
|
|
10494
10424
|
|
|
@@ -10506,33 +10436,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10506
10436
|
}, {
|
|
10507
10437
|
key: "scheduleCampaign",
|
|
10508
10438
|
value: function () {
|
|
10509
|
-
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10439
|
+
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id, params) {
|
|
10510
10440
|
var scheduledFor, _yield$this$patch, campaign;
|
|
10511
10441
|
|
|
10512
|
-
return _regeneratorRuntime.wrap(function
|
|
10442
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
10513
10443
|
while (1) {
|
|
10514
|
-
switch (
|
|
10444
|
+
switch (_context62.prev = _context62.next) {
|
|
10515
10445
|
case 0:
|
|
10516
10446
|
scheduledFor = params.scheduledFor;
|
|
10517
|
-
|
|
10447
|
+
_context62.next = 3;
|
|
10518
10448
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
|
|
10519
10449
|
scheduled_for: scheduledFor
|
|
10520
10450
|
});
|
|
10521
10451
|
|
|
10522
10452
|
case 3:
|
|
10523
|
-
_yield$this$patch =
|
|
10453
|
+
_yield$this$patch = _context62.sent;
|
|
10524
10454
|
campaign = _yield$this$patch.campaign;
|
|
10525
|
-
return
|
|
10455
|
+
return _context62.abrupt("return", campaign);
|
|
10526
10456
|
|
|
10527
10457
|
case 6:
|
|
10528
10458
|
case "end":
|
|
10529
|
-
return
|
|
10459
|
+
return _context62.stop();
|
|
10530
10460
|
}
|
|
10531
10461
|
}
|
|
10532
|
-
},
|
|
10462
|
+
}, _callee62, this);
|
|
10533
10463
|
}));
|
|
10534
10464
|
|
|
10535
|
-
function scheduleCampaign(
|
|
10465
|
+
function scheduleCampaign(_x83, _x84) {
|
|
10536
10466
|
return _scheduleCampaign.apply(this, arguments);
|
|
10537
10467
|
}
|
|
10538
10468
|
|
|
@@ -10549,30 +10479,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10549
10479
|
}, {
|
|
10550
10480
|
key: "stopCampaign",
|
|
10551
10481
|
value: function () {
|
|
10552
|
-
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10482
|
+
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id) {
|
|
10553
10483
|
var _yield$this$patch2, campaign;
|
|
10554
10484
|
|
|
10555
|
-
return _regeneratorRuntime.wrap(function
|
|
10485
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
10556
10486
|
while (1) {
|
|
10557
|
-
switch (
|
|
10487
|
+
switch (_context63.prev = _context63.next) {
|
|
10558
10488
|
case 0:
|
|
10559
|
-
|
|
10489
|
+
_context63.next = 2;
|
|
10560
10490
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
|
|
10561
10491
|
|
|
10562
10492
|
case 2:
|
|
10563
|
-
_yield$this$patch2 =
|
|
10493
|
+
_yield$this$patch2 = _context63.sent;
|
|
10564
10494
|
campaign = _yield$this$patch2.campaign;
|
|
10565
|
-
return
|
|
10495
|
+
return _context63.abrupt("return", campaign);
|
|
10566
10496
|
|
|
10567
10497
|
case 5:
|
|
10568
10498
|
case "end":
|
|
10569
|
-
return
|
|
10499
|
+
return _context63.stop();
|
|
10570
10500
|
}
|
|
10571
10501
|
}
|
|
10572
|
-
},
|
|
10502
|
+
}, _callee63, this);
|
|
10573
10503
|
}));
|
|
10574
10504
|
|
|
10575
|
-
function stopCampaign(
|
|
10505
|
+
function stopCampaign(_x85) {
|
|
10576
10506
|
return _stopCampaign.apply(this, arguments);
|
|
10577
10507
|
}
|
|
10578
10508
|
|
|
@@ -10589,30 +10519,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10589
10519
|
}, {
|
|
10590
10520
|
key: "resumeCampaign",
|
|
10591
10521
|
value: function () {
|
|
10592
|
-
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10522
|
+
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
|
|
10593
10523
|
var _yield$this$patch3, campaign;
|
|
10594
10524
|
|
|
10595
|
-
return _regeneratorRuntime.wrap(function
|
|
10525
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
10596
10526
|
while (1) {
|
|
10597
|
-
switch (
|
|
10527
|
+
switch (_context64.prev = _context64.next) {
|
|
10598
10528
|
case 0:
|
|
10599
|
-
|
|
10529
|
+
_context64.next = 2;
|
|
10600
10530
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
|
|
10601
10531
|
|
|
10602
10532
|
case 2:
|
|
10603
|
-
_yield$this$patch3 =
|
|
10533
|
+
_yield$this$patch3 = _context64.sent;
|
|
10604
10534
|
campaign = _yield$this$patch3.campaign;
|
|
10605
|
-
return
|
|
10535
|
+
return _context64.abrupt("return", campaign);
|
|
10606
10536
|
|
|
10607
10537
|
case 5:
|
|
10608
10538
|
case "end":
|
|
10609
|
-
return
|
|
10539
|
+
return _context64.stop();
|
|
10610
10540
|
}
|
|
10611
10541
|
}
|
|
10612
|
-
},
|
|
10542
|
+
}, _callee64, this);
|
|
10613
10543
|
}));
|
|
10614
10544
|
|
|
10615
|
-
function resumeCampaign(
|
|
10545
|
+
function resumeCampaign(_x86) {
|
|
10616
10546
|
return _resumeCampaign.apply(this, arguments);
|
|
10617
10547
|
}
|
|
10618
10548
|
|
|
@@ -10630,35 +10560,77 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10630
10560
|
}, {
|
|
10631
10561
|
key: "testCampaign",
|
|
10632
10562
|
value: function () {
|
|
10633
|
-
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10563
|
+
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id, params) {
|
|
10634
10564
|
var users;
|
|
10635
|
-
return _regeneratorRuntime.wrap(function
|
|
10565
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
10636
10566
|
while (1) {
|
|
10637
|
-
switch (
|
|
10567
|
+
switch (_context65.prev = _context65.next) {
|
|
10638
10568
|
case 0:
|
|
10639
10569
|
users = params.users;
|
|
10640
|
-
|
|
10570
|
+
_context65.next = 3;
|
|
10641
10571
|
return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
|
|
10642
10572
|
users: users
|
|
10643
10573
|
});
|
|
10644
10574
|
|
|
10645
10575
|
case 3:
|
|
10646
|
-
return
|
|
10576
|
+
return _context65.abrupt("return", _context65.sent);
|
|
10647
10577
|
|
|
10648
10578
|
case 4:
|
|
10649
10579
|
case "end":
|
|
10650
|
-
return
|
|
10580
|
+
return _context65.stop();
|
|
10651
10581
|
}
|
|
10652
10582
|
}
|
|
10653
|
-
},
|
|
10583
|
+
}, _callee65, this);
|
|
10654
10584
|
}));
|
|
10655
10585
|
|
|
10656
|
-
function testCampaign(
|
|
10586
|
+
function testCampaign(_x87, _x88) {
|
|
10657
10587
|
return _testCampaign.apply(this, arguments);
|
|
10658
10588
|
}
|
|
10659
10589
|
|
|
10660
10590
|
return testCampaign;
|
|
10661
10591
|
}()
|
|
10592
|
+
/**
|
|
10593
|
+
* queryRecipients - Query Campaign Recipient Results
|
|
10594
|
+
*
|
|
10595
|
+
*
|
|
10596
|
+
* @return {Recipient[]} Recipients
|
|
10597
|
+
*/
|
|
10598
|
+
|
|
10599
|
+
}, {
|
|
10600
|
+
key: "queryRecipients",
|
|
10601
|
+
value: function () {
|
|
10602
|
+
var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(filters) {
|
|
10603
|
+
var options,
|
|
10604
|
+
_args66 = arguments;
|
|
10605
|
+
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
10606
|
+
while (1) {
|
|
10607
|
+
switch (_context66.prev = _context66.next) {
|
|
10608
|
+
case 0:
|
|
10609
|
+
options = _args66.length > 1 && _args66[1] !== undefined ? _args66[1] : {};
|
|
10610
|
+
_context66.next = 3;
|
|
10611
|
+
return this.get(this.baseURL + "/recipients", {
|
|
10612
|
+
payload: _objectSpread({
|
|
10613
|
+
filter_conditions: filters
|
|
10614
|
+
}, options)
|
|
10615
|
+
});
|
|
10616
|
+
|
|
10617
|
+
case 3:
|
|
10618
|
+
return _context66.abrupt("return", _context66.sent);
|
|
10619
|
+
|
|
10620
|
+
case 4:
|
|
10621
|
+
case "end":
|
|
10622
|
+
return _context66.stop();
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
}, _callee66, this);
|
|
10626
|
+
}));
|
|
10627
|
+
|
|
10628
|
+
function queryRecipients(_x89) {
|
|
10629
|
+
return _queryRecipients.apply(this, arguments);
|
|
10630
|
+
}
|
|
10631
|
+
|
|
10632
|
+
return queryRecipients;
|
|
10633
|
+
}()
|
|
10662
10634
|
/**
|
|
10663
10635
|
* enrichURL - Get OpenGraph data of the given link
|
|
10664
10636
|
*
|
|
@@ -10669,24 +10641,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10669
10641
|
}, {
|
|
10670
10642
|
key: "enrichURL",
|
|
10671
10643
|
value: function () {
|
|
10672
|
-
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10673
|
-
return _regeneratorRuntime.wrap(function
|
|
10644
|
+
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(url) {
|
|
10645
|
+
return _regeneratorRuntime.wrap(function _callee67$(_context67) {
|
|
10674
10646
|
while (1) {
|
|
10675
|
-
switch (
|
|
10647
|
+
switch (_context67.prev = _context67.next) {
|
|
10676
10648
|
case 0:
|
|
10677
|
-
return
|
|
10649
|
+
return _context67.abrupt("return", this.get(this.baseURL + "/og", {
|
|
10678
10650
|
url: url
|
|
10679
10651
|
}));
|
|
10680
10652
|
|
|
10681
10653
|
case 1:
|
|
10682
10654
|
case "end":
|
|
10683
|
-
return
|
|
10655
|
+
return _context67.stop();
|
|
10684
10656
|
}
|
|
10685
10657
|
}
|
|
10686
|
-
},
|
|
10658
|
+
}, _callee67, this);
|
|
10687
10659
|
}));
|
|
10688
10660
|
|
|
10689
|
-
function enrichURL(
|
|
10661
|
+
function enrichURL(_x90) {
|
|
10690
10662
|
return _enrichURL.apply(this, arguments);
|
|
10691
10663
|
}
|
|
10692
10664
|
|
|
@@ -10703,22 +10675,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10703
10675
|
}, {
|
|
10704
10676
|
key: "getTask",
|
|
10705
10677
|
value: function () {
|
|
10706
|
-
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10707
|
-
return _regeneratorRuntime.wrap(function
|
|
10678
|
+
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
|
|
10679
|
+
return _regeneratorRuntime.wrap(function _callee68$(_context68) {
|
|
10708
10680
|
while (1) {
|
|
10709
|
-
switch (
|
|
10681
|
+
switch (_context68.prev = _context68.next) {
|
|
10710
10682
|
case 0:
|
|
10711
|
-
return
|
|
10683
|
+
return _context68.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
|
|
10712
10684
|
|
|
10713
10685
|
case 1:
|
|
10714
10686
|
case "end":
|
|
10715
|
-
return
|
|
10687
|
+
return _context68.stop();
|
|
10716
10688
|
}
|
|
10717
10689
|
}
|
|
10718
|
-
},
|
|
10690
|
+
}, _callee68, this);
|
|
10719
10691
|
}));
|
|
10720
10692
|
|
|
10721
|
-
function getTask(
|
|
10693
|
+
function getTask(_x91) {
|
|
10722
10694
|
return _getTask.apply(this, arguments);
|
|
10723
10695
|
}
|
|
10724
10696
|
|
|
@@ -10736,31 +10708,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10736
10708
|
}, {
|
|
10737
10709
|
key: "deleteChannels",
|
|
10738
10710
|
value: function () {
|
|
10739
|
-
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10711
|
+
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(cids) {
|
|
10740
10712
|
var options,
|
|
10741
|
-
|
|
10742
|
-
return _regeneratorRuntime.wrap(function
|
|
10713
|
+
_args69 = arguments;
|
|
10714
|
+
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
10743
10715
|
while (1) {
|
|
10744
|
-
switch (
|
|
10716
|
+
switch (_context69.prev = _context69.next) {
|
|
10745
10717
|
case 0:
|
|
10746
|
-
options =
|
|
10747
|
-
|
|
10718
|
+
options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
|
|
10719
|
+
_context69.next = 3;
|
|
10748
10720
|
return this.post(this.baseURL + "/channels/delete", _objectSpread({
|
|
10749
10721
|
cids: cids
|
|
10750
10722
|
}, options));
|
|
10751
10723
|
|
|
10752
10724
|
case 3:
|
|
10753
|
-
return
|
|
10725
|
+
return _context69.abrupt("return", _context69.sent);
|
|
10754
10726
|
|
|
10755
10727
|
case 4:
|
|
10756
10728
|
case "end":
|
|
10757
|
-
return
|
|
10729
|
+
return _context69.stop();
|
|
10758
10730
|
}
|
|
10759
10731
|
}
|
|
10760
|
-
},
|
|
10732
|
+
}, _callee69, this);
|
|
10761
10733
|
}));
|
|
10762
10734
|
|
|
10763
|
-
function deleteChannels(
|
|
10735
|
+
function deleteChannels(_x92) {
|
|
10764
10736
|
return _deleteChannels.apply(this, arguments);
|
|
10765
10737
|
}
|
|
10766
10738
|
|
|
@@ -10778,13 +10750,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10778
10750
|
}, {
|
|
10779
10751
|
key: "deleteUsers",
|
|
10780
10752
|
value: function () {
|
|
10781
|
-
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10782
|
-
return _regeneratorRuntime.wrap(function
|
|
10753
|
+
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(user_ids, options) {
|
|
10754
|
+
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
10783
10755
|
while (1) {
|
|
10784
|
-
switch (
|
|
10756
|
+
switch (_context70.prev = _context70.next) {
|
|
10785
10757
|
case 0:
|
|
10786
10758
|
if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
|
|
10787
|
-
|
|
10759
|
+
_context70.next = 2;
|
|
10788
10760
|
break;
|
|
10789
10761
|
}
|
|
10790
10762
|
|
|
@@ -10792,7 +10764,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10792
10764
|
|
|
10793
10765
|
case 2:
|
|
10794
10766
|
if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
|
|
10795
|
-
|
|
10767
|
+
_context70.next = 4;
|
|
10796
10768
|
break;
|
|
10797
10769
|
}
|
|
10798
10770
|
|
|
@@ -10800,30 +10772,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10800
10772
|
|
|
10801
10773
|
case 4:
|
|
10802
10774
|
if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
|
|
10803
|
-
|
|
10775
|
+
_context70.next = 6;
|
|
10804
10776
|
break;
|
|
10805
10777
|
}
|
|
10806
10778
|
|
|
10807
10779
|
throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
|
|
10808
10780
|
|
|
10809
10781
|
case 6:
|
|
10810
|
-
|
|
10782
|
+
_context70.next = 8;
|
|
10811
10783
|
return this.post(this.baseURL + "/users/delete", _objectSpread({
|
|
10812
10784
|
user_ids: user_ids
|
|
10813
10785
|
}, options));
|
|
10814
10786
|
|
|
10815
10787
|
case 8:
|
|
10816
|
-
return
|
|
10788
|
+
return _context70.abrupt("return", _context70.sent);
|
|
10817
10789
|
|
|
10818
10790
|
case 9:
|
|
10819
10791
|
case "end":
|
|
10820
|
-
return
|
|
10792
|
+
return _context70.stop();
|
|
10821
10793
|
}
|
|
10822
10794
|
}
|
|
10823
|
-
},
|
|
10795
|
+
}, _callee70, this);
|
|
10824
10796
|
}));
|
|
10825
10797
|
|
|
10826
|
-
function deleteUsers(
|
|
10798
|
+
function deleteUsers(_x93, _x94) {
|
|
10827
10799
|
return _deleteUsers.apply(this, arguments);
|
|
10828
10800
|
}
|
|
10829
10801
|
|
|
@@ -10844,28 +10816,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10844
10816
|
}, {
|
|
10845
10817
|
key: "_createImportURL",
|
|
10846
10818
|
value: function () {
|
|
10847
|
-
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10848
|
-
return _regeneratorRuntime.wrap(function
|
|
10819
|
+
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filename) {
|
|
10820
|
+
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
10849
10821
|
while (1) {
|
|
10850
|
-
switch (
|
|
10822
|
+
switch (_context71.prev = _context71.next) {
|
|
10851
10823
|
case 0:
|
|
10852
|
-
|
|
10824
|
+
_context71.next = 2;
|
|
10853
10825
|
return this.post(this.baseURL + "/import_urls", {
|
|
10854
10826
|
filename: filename
|
|
10855
10827
|
});
|
|
10856
10828
|
|
|
10857
10829
|
case 2:
|
|
10858
|
-
return
|
|
10830
|
+
return _context71.abrupt("return", _context71.sent);
|
|
10859
10831
|
|
|
10860
10832
|
case 3:
|
|
10861
10833
|
case "end":
|
|
10862
|
-
return
|
|
10834
|
+
return _context71.stop();
|
|
10863
10835
|
}
|
|
10864
10836
|
}
|
|
10865
|
-
},
|
|
10837
|
+
}, _callee71, this);
|
|
10866
10838
|
}));
|
|
10867
10839
|
|
|
10868
|
-
function _createImportURL(
|
|
10840
|
+
function _createImportURL(_x95) {
|
|
10869
10841
|
return _createImportURL2.apply(this, arguments);
|
|
10870
10842
|
}
|
|
10871
10843
|
|
|
@@ -10887,33 +10859,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10887
10859
|
}, {
|
|
10888
10860
|
key: "_createImport",
|
|
10889
10861
|
value: function () {
|
|
10890
|
-
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10862
|
+
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(path) {
|
|
10891
10863
|
var options,
|
|
10892
|
-
|
|
10893
|
-
return _regeneratorRuntime.wrap(function
|
|
10864
|
+
_args72 = arguments;
|
|
10865
|
+
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
10894
10866
|
while (1) {
|
|
10895
|
-
switch (
|
|
10867
|
+
switch (_context72.prev = _context72.next) {
|
|
10896
10868
|
case 0:
|
|
10897
|
-
options =
|
|
10869
|
+
options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {
|
|
10898
10870
|
mode: 'upsert'
|
|
10899
10871
|
};
|
|
10900
|
-
|
|
10872
|
+
_context72.next = 3;
|
|
10901
10873
|
return this.post(this.baseURL + "/imports", _objectSpread({
|
|
10902
10874
|
path: path
|
|
10903
10875
|
}, options));
|
|
10904
10876
|
|
|
10905
10877
|
case 3:
|
|
10906
|
-
return
|
|
10878
|
+
return _context72.abrupt("return", _context72.sent);
|
|
10907
10879
|
|
|
10908
10880
|
case 4:
|
|
10909
10881
|
case "end":
|
|
10910
|
-
return
|
|
10882
|
+
return _context72.stop();
|
|
10911
10883
|
}
|
|
10912
10884
|
}
|
|
10913
|
-
},
|
|
10885
|
+
}, _callee72, this);
|
|
10914
10886
|
}));
|
|
10915
10887
|
|
|
10916
|
-
function _createImport(
|
|
10888
|
+
function _createImport(_x96) {
|
|
10917
10889
|
return _createImport2.apply(this, arguments);
|
|
10918
10890
|
}
|
|
10919
10891
|
|
|
@@ -10935,26 +10907,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10935
10907
|
}, {
|
|
10936
10908
|
key: "_getImport",
|
|
10937
10909
|
value: function () {
|
|
10938
|
-
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10939
|
-
return _regeneratorRuntime.wrap(function
|
|
10910
|
+
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id) {
|
|
10911
|
+
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
10940
10912
|
while (1) {
|
|
10941
|
-
switch (
|
|
10913
|
+
switch (_context73.prev = _context73.next) {
|
|
10942
10914
|
case 0:
|
|
10943
|
-
|
|
10915
|
+
_context73.next = 2;
|
|
10944
10916
|
return this.get(this.baseURL + "/imports/".concat(id));
|
|
10945
10917
|
|
|
10946
10918
|
case 2:
|
|
10947
|
-
return
|
|
10919
|
+
return _context73.abrupt("return", _context73.sent);
|
|
10948
10920
|
|
|
10949
10921
|
case 3:
|
|
10950
10922
|
case "end":
|
|
10951
|
-
return
|
|
10923
|
+
return _context73.stop();
|
|
10952
10924
|
}
|
|
10953
10925
|
}
|
|
10954
|
-
},
|
|
10926
|
+
}, _callee73, this);
|
|
10955
10927
|
}));
|
|
10956
10928
|
|
|
10957
|
-
function _getImport(
|
|
10929
|
+
function _getImport(_x97) {
|
|
10958
10930
|
return _getImport2.apply(this, arguments);
|
|
10959
10931
|
}
|
|
10960
10932
|
|
|
@@ -10976,26 +10948,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10976
10948
|
}, {
|
|
10977
10949
|
key: "_listImports",
|
|
10978
10950
|
value: function () {
|
|
10979
|
-
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10980
|
-
return _regeneratorRuntime.wrap(function
|
|
10951
|
+
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(options) {
|
|
10952
|
+
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
10981
10953
|
while (1) {
|
|
10982
|
-
switch (
|
|
10954
|
+
switch (_context74.prev = _context74.next) {
|
|
10983
10955
|
case 0:
|
|
10984
|
-
|
|
10956
|
+
_context74.next = 2;
|
|
10985
10957
|
return this.get(this.baseURL + "/imports", options);
|
|
10986
10958
|
|
|
10987
10959
|
case 2:
|
|
10988
|
-
return
|
|
10960
|
+
return _context74.abrupt("return", _context74.sent);
|
|
10989
10961
|
|
|
10990
10962
|
case 3:
|
|
10991
10963
|
case "end":
|
|
10992
|
-
return
|
|
10964
|
+
return _context74.stop();
|
|
10993
10965
|
}
|
|
10994
10966
|
}
|
|
10995
|
-
},
|
|
10967
|
+
}, _callee74, this);
|
|
10996
10968
|
}));
|
|
10997
10969
|
|
|
10998
|
-
function _listImports(
|
|
10970
|
+
function _listImports(_x98) {
|
|
10999
10971
|
return _listImports2.apply(this, arguments);
|
|
11000
10972
|
}
|
|
11001
10973
|
|
|
@@ -11014,28 +10986,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11014
10986
|
}, {
|
|
11015
10987
|
key: "upsertPushProvider",
|
|
11016
10988
|
value: function () {
|
|
11017
|
-
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11018
|
-
return _regeneratorRuntime.wrap(function
|
|
10989
|
+
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(pushProvider) {
|
|
10990
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
11019
10991
|
while (1) {
|
|
11020
|
-
switch (
|
|
10992
|
+
switch (_context75.prev = _context75.next) {
|
|
11021
10993
|
case 0:
|
|
11022
|
-
|
|
10994
|
+
_context75.next = 2;
|
|
11023
10995
|
return this.post(this.baseURL + "/push_providers", {
|
|
11024
10996
|
push_provider: pushProvider
|
|
11025
10997
|
});
|
|
11026
10998
|
|
|
11027
10999
|
case 2:
|
|
11028
|
-
return
|
|
11000
|
+
return _context75.abrupt("return", _context75.sent);
|
|
11029
11001
|
|
|
11030
11002
|
case 3:
|
|
11031
11003
|
case "end":
|
|
11032
|
-
return
|
|
11004
|
+
return _context75.stop();
|
|
11033
11005
|
}
|
|
11034
11006
|
}
|
|
11035
|
-
},
|
|
11007
|
+
}, _callee75, this);
|
|
11036
11008
|
}));
|
|
11037
11009
|
|
|
11038
|
-
function upsertPushProvider(
|
|
11010
|
+
function upsertPushProvider(_x99) {
|
|
11039
11011
|
return _upsertPushProvider.apply(this, arguments);
|
|
11040
11012
|
}
|
|
11041
11013
|
|
|
@@ -11054,28 +11026,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11054
11026
|
}, {
|
|
11055
11027
|
key: "deletePushProvider",
|
|
11056
11028
|
value: function () {
|
|
11057
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11029
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(_ref8) {
|
|
11058
11030
|
var type, name;
|
|
11059
|
-
return _regeneratorRuntime.wrap(function
|
|
11031
|
+
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
11060
11032
|
while (1) {
|
|
11061
|
-
switch (
|
|
11033
|
+
switch (_context76.prev = _context76.next) {
|
|
11062
11034
|
case 0:
|
|
11063
11035
|
type = _ref8.type, name = _ref8.name;
|
|
11064
|
-
|
|
11036
|
+
_context76.next = 3;
|
|
11065
11037
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
11066
11038
|
|
|
11067
11039
|
case 3:
|
|
11068
|
-
return
|
|
11040
|
+
return _context76.abrupt("return", _context76.sent);
|
|
11069
11041
|
|
|
11070
11042
|
case 4:
|
|
11071
11043
|
case "end":
|
|
11072
|
-
return
|
|
11044
|
+
return _context76.stop();
|
|
11073
11045
|
}
|
|
11074
11046
|
}
|
|
11075
|
-
},
|
|
11047
|
+
}, _callee76, this);
|
|
11076
11048
|
}));
|
|
11077
11049
|
|
|
11078
|
-
function deletePushProvider(
|
|
11050
|
+
function deletePushProvider(_x100) {
|
|
11079
11051
|
return _deletePushProvider.apply(this, arguments);
|
|
11080
11052
|
}
|
|
11081
11053
|
|
|
@@ -11092,23 +11064,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11092
11064
|
}, {
|
|
11093
11065
|
key: "listPushProviders",
|
|
11094
11066
|
value: function () {
|
|
11095
|
-
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11096
|
-
return _regeneratorRuntime.wrap(function
|
|
11067
|
+
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77() {
|
|
11068
|
+
return _regeneratorRuntime.wrap(function _callee77$(_context77) {
|
|
11097
11069
|
while (1) {
|
|
11098
|
-
switch (
|
|
11070
|
+
switch (_context77.prev = _context77.next) {
|
|
11099
11071
|
case 0:
|
|
11100
|
-
|
|
11072
|
+
_context77.next = 2;
|
|
11101
11073
|
return this.get(this.baseURL + "/push_providers");
|
|
11102
11074
|
|
|
11103
11075
|
case 2:
|
|
11104
|
-
return
|
|
11076
|
+
return _context77.abrupt("return", _context77.sent);
|
|
11105
11077
|
|
|
11106
11078
|
case 3:
|
|
11107
11079
|
case "end":
|
|
11108
|
-
return
|
|
11080
|
+
return _context77.stop();
|
|
11109
11081
|
}
|
|
11110
11082
|
}
|
|
11111
|
-
},
|
|
11083
|
+
}, _callee77, this);
|
|
11112
11084
|
}));
|
|
11113
11085
|
|
|
11114
11086
|
function listPushProviders() {
|