@selfcommunity/api-services 0.5.0-live.82 → 0.5.0-live.84
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/lib/cjs/constants/Endpoints.js +4 -0
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/services/{livestream → live_stream}/index.d.ts +10 -1
- package/lib/cjs/services/{livestream → live_stream}/index.js +15 -1
- package/lib/esm/constants/Endpoints.js +4 -0
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/services/{livestream → live_stream}/index.d.ts +10 -1
- package/lib/esm/services/{livestream → live_stream}/index.js +15 -1
- package/lib/umd/api-services.js +1 -1
- package/package.json +4 -4
|
@@ -1371,6 +1371,10 @@ const Endpoints = {
|
|
|
1371
1371
|
url: (0, utils_1.urlReplacer)('/api/v2/live_stream/$(id)/join/'),
|
|
1372
1372
|
method: 'POST'
|
|
1373
1373
|
},
|
|
1374
|
+
RemoveUserFromRoom: {
|
|
1375
|
+
url: (0, utils_1.urlReplacer)('/api/v2/live_stream/$(id)/remove_user/?user=$(user)'),
|
|
1376
|
+
method: 'POST'
|
|
1377
|
+
},
|
|
1374
1378
|
/**
|
|
1375
1379
|
* OnBoarding
|
|
1376
1380
|
*/
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './s
|
|
|
48
48
|
import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient, GroupApiClientInterface } from './services/group';
|
|
50
50
|
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
|
|
51
|
-
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/
|
|
51
|
+
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/live_stream';
|
|
52
52
|
import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface } from './services/onboarding';
|
|
53
53
|
/**
|
|
54
54
|
* Types
|
package/lib/cjs/index.js
CHANGED
|
@@ -126,9 +126,9 @@ Object.defineProperty(exports, "GroupApiClient", { enumerable: true, get: functi
|
|
|
126
126
|
const event_1 = tslib_1.__importStar(require("./services/event"));
|
|
127
127
|
exports.EventService = event_1.default;
|
|
128
128
|
Object.defineProperty(exports, "EventApiClient", { enumerable: true, get: function () { return event_1.EventApiClient; } });
|
|
129
|
-
const
|
|
130
|
-
exports.LiveStreamService =
|
|
131
|
-
Object.defineProperty(exports, "LiveStreamApiClient", { enumerable: true, get: function () { return
|
|
129
|
+
const live_stream_1 = tslib_1.__importStar(require("./services/live_stream"));
|
|
130
|
+
exports.LiveStreamService = live_stream_1.default;
|
|
131
|
+
Object.defineProperty(exports, "LiveStreamApiClient", { enumerable: true, get: function () { return live_stream_1.LiveStreamApiClient; } });
|
|
132
132
|
const onboarding_1 = tslib_1.__importStar(require("./services/onboarding"));
|
|
133
133
|
exports.OnBoardingService = onboarding_1.default;
|
|
134
134
|
Object.defineProperty(exports, "OnBoardingApiClient", { enumerable: true, get: function () { return onboarding_1.OnBoardingApiClient; } });
|
|
@@ -11,6 +11,7 @@ export interface LiveStreamApiClientInterface {
|
|
|
11
11
|
delete(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
12
12
|
changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
13
13
|
join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
14
|
+
removeUserFromRoom(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Contains all the endpoints needed to manage LiveStreams.
|
|
@@ -42,7 +43,7 @@ export declare class LiveStreamApiClient {
|
|
|
42
43
|
*/
|
|
43
44
|
static update(id: number | string, data: SCLiveStreamType, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
44
45
|
/**
|
|
45
|
-
* This endpoint patches an
|
|
46
|
+
* This endpoint patches an LiveStream.
|
|
46
47
|
* @param id
|
|
47
48
|
* @param data
|
|
48
49
|
* @param config
|
|
@@ -67,6 +68,13 @@ export declare class LiveStreamApiClient {
|
|
|
67
68
|
* @param config
|
|
68
69
|
*/
|
|
69
70
|
static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
71
|
+
/**
|
|
72
|
+
* This endpoint ban user from the specified room.
|
|
73
|
+
* @param id
|
|
74
|
+
* @param user
|
|
75
|
+
* @param config
|
|
76
|
+
*/
|
|
77
|
+
static removeUserFromRoom(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
*
|
|
@@ -112,4 +120,5 @@ export default class LiveStreamService {
|
|
|
112
120
|
static delete(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
113
121
|
static changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
114
122
|
static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
123
|
+
static removeUserFromGroup(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
115
124
|
}
|
|
@@ -44,7 +44,7 @@ class LiveStreamApiClient {
|
|
|
44
44
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdateLiveStream.url({ id }), method: Endpoints_1.default.UpdateLiveStream.method, data: data }));
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* This endpoint patches an
|
|
47
|
+
* This endpoint patches an LiveStream.
|
|
48
48
|
* @param id
|
|
49
49
|
* @param data
|
|
50
50
|
* @param config
|
|
@@ -77,6 +77,15 @@ class LiveStreamApiClient {
|
|
|
77
77
|
static join(id, config) {
|
|
78
78
|
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.JoinLiveStream.url({ id }), method: Endpoints_1.default.JoinLiveStream.method }));
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* This endpoint ban user from the specified room.
|
|
82
|
+
* @param id
|
|
83
|
+
* @param user
|
|
84
|
+
* @param config
|
|
85
|
+
*/
|
|
86
|
+
static removeUserFromRoom(id, user, config) {
|
|
87
|
+
return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.RemoveUserFromRoom.url({ id, user }), method: Endpoints_1.default.RemoveUserFromRoom.method }));
|
|
88
|
+
}
|
|
80
89
|
}
|
|
81
90
|
exports.LiveStreamApiClient = LiveStreamApiClient;
|
|
82
91
|
/**
|
|
@@ -155,5 +164,10 @@ class LiveStreamService {
|
|
|
155
164
|
return LiveStreamApiClient.join(id, config);
|
|
156
165
|
});
|
|
157
166
|
}
|
|
167
|
+
static removeUserFromGroup(id, user, config) {
|
|
168
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
return LiveStreamApiClient.removeUserFromRoom(id, user, config);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
158
172
|
}
|
|
159
173
|
exports.default = LiveStreamService;
|
|
@@ -1369,6 +1369,10 @@ const Endpoints = {
|
|
|
1369
1369
|
url: urlReplacer('/api/v2/live_stream/$(id)/join/'),
|
|
1370
1370
|
method: 'POST'
|
|
1371
1371
|
},
|
|
1372
|
+
RemoveUserFromRoom: {
|
|
1373
|
+
url: urlReplacer('/api/v2/live_stream/$(id)/remove_user/?user=$(user)'),
|
|
1374
|
+
method: 'POST'
|
|
1375
|
+
},
|
|
1372
1376
|
/**
|
|
1373
1377
|
* OnBoarding
|
|
1374
1378
|
*/
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './s
|
|
|
48
48
|
import ReactionService, { ReactionApiClient, ReactionApiClientInterface } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient, GroupApiClientInterface } from './services/group';
|
|
50
50
|
import EventService, { EventApiClient, EventApiClientInterface } from './services/event';
|
|
51
|
-
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/
|
|
51
|
+
import LiveStreamService, { LiveStreamApiClient, LiveStreamApiClientInterface } from './services/live_stream';
|
|
52
52
|
import OnBoardingService, { OnBoardingApiClient, OnBoardingApiClientInterface } from './services/onboarding';
|
|
53
53
|
/**
|
|
54
54
|
* Types
|
package/lib/esm/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import WebhookService, { WebhookApiClient } from './services/webhook';
|
|
|
48
48
|
import ReactionService, { ReactionApiClient } from './services/reactions';
|
|
49
49
|
import GroupService, { GroupApiClient } from './services/group';
|
|
50
50
|
import EventService, { EventApiClient } from './services/event';
|
|
51
|
-
import LiveStreamService, { LiveStreamApiClient } from './services/
|
|
51
|
+
import LiveStreamService, { LiveStreamApiClient } from './services/live_stream';
|
|
52
52
|
import OnBoardingService, { OnBoardingApiClient } from './services/onboarding';
|
|
53
53
|
/**
|
|
54
54
|
* Types
|
|
@@ -11,6 +11,7 @@ export interface LiveStreamApiClientInterface {
|
|
|
11
11
|
delete(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
12
12
|
changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
13
13
|
join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
14
|
+
removeUserFromRoom(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Contains all the endpoints needed to manage LiveStreams.
|
|
@@ -42,7 +43,7 @@ export declare class LiveStreamApiClient {
|
|
|
42
43
|
*/
|
|
43
44
|
static update(id: number | string, data: SCLiveStreamType, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
44
45
|
/**
|
|
45
|
-
* This endpoint patches an
|
|
46
|
+
* This endpoint patches an LiveStream.
|
|
46
47
|
* @param id
|
|
47
48
|
* @param data
|
|
48
49
|
* @param config
|
|
@@ -67,6 +68,13 @@ export declare class LiveStreamApiClient {
|
|
|
67
68
|
* @param config
|
|
68
69
|
*/
|
|
69
70
|
static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
71
|
+
/**
|
|
72
|
+
* This endpoint ban user from the specified room.
|
|
73
|
+
* @param id
|
|
74
|
+
* @param user
|
|
75
|
+
* @param config
|
|
76
|
+
*/
|
|
77
|
+
static removeUserFromRoom(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
*
|
|
@@ -112,4 +120,5 @@ export default class LiveStreamService {
|
|
|
112
120
|
static delete(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
113
121
|
static changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
|
|
114
122
|
static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
|
|
123
|
+
static removeUserFromGroup(id: number | string, user: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
115
124
|
}
|
|
@@ -41,7 +41,7 @@ export class LiveStreamApiClient {
|
|
|
41
41
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.UpdateLiveStream.url({ id }), method: Endpoints.UpdateLiveStream.method, data: data }));
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* This endpoint patches an
|
|
44
|
+
* This endpoint patches an LiveStream.
|
|
45
45
|
* @param id
|
|
46
46
|
* @param data
|
|
47
47
|
* @param config
|
|
@@ -74,6 +74,15 @@ export class LiveStreamApiClient {
|
|
|
74
74
|
static join(id, config) {
|
|
75
75
|
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.JoinLiveStream.url({ id }), method: Endpoints.JoinLiveStream.method }));
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* This endpoint ban user from the specified room.
|
|
79
|
+
* @param id
|
|
80
|
+
* @param user
|
|
81
|
+
* @param config
|
|
82
|
+
*/
|
|
83
|
+
static removeUserFromRoom(id, user, config) {
|
|
84
|
+
return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.RemoveUserFromRoom.url({ id, user }), method: Endpoints.RemoveUserFromRoom.method }));
|
|
85
|
+
}
|
|
77
86
|
}
|
|
78
87
|
/**
|
|
79
88
|
*
|
|
@@ -151,4 +160,9 @@ export default class LiveStreamService {
|
|
|
151
160
|
return LiveStreamApiClient.join(id, config);
|
|
152
161
|
});
|
|
153
162
|
}
|
|
163
|
+
static removeUserFromGroup(id, user, config) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
return LiveStreamApiClient.removeUserFromRoom(id, user, config);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
154
168
|
}
|