@selfcommunity/api-services 0.5.0-live.89 → 0.5.0-live.91

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.
@@ -517,6 +517,10 @@ const Endpoints = {
517
517
  url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/provider/'),
518
518
  method: 'DELETE'
519
519
  },
520
+ GetLiveStream: {
521
+ url: (0, utils_1.urlReplacer)('/api/v2/user/$(id)/live_stream/'),
522
+ method: 'GET'
523
+ },
520
524
  /**
521
525
  * Broadcast Messages
522
526
  */
@@ -1379,6 +1383,10 @@ const Endpoints = {
1379
1383
  url: (0, utils_1.urlReplacer)('/api/v2/live_stream/$(id)/remove_participant/'),
1380
1384
  method: 'POST'
1381
1385
  },
1386
+ GetLiveStreamMonthlyDuration: {
1387
+ url: (0, utils_1.urlReplacer)('/api/v2/live_stream/monthly_duration/'),
1388
+ method: 'GET'
1389
+ },
1382
1390
  /**
1383
1391
  * OnBoarding
1384
1392
  */
@@ -1,4 +1,4 @@
1
- import { SCLiveStreamConnectionDetailsType, SCLiveStreamType } from '@selfcommunity/types';
1
+ import { SCLiveStreamConnectionDetailsType, SCLiveStreamMonthlyDurationType, SCLiveStreamType } from '@selfcommunity/types';
2
2
  import { AxiosRequestConfig } from 'axios';
3
3
  import { SCPaginatedResponse } from '../../types';
4
4
  import { LiveStreamCreateParams, LiveStreamRemoveParticipantParams, LiveStreamSearchParams } from '../../types/liveStream';
@@ -13,6 +13,7 @@ export interface LiveStreamApiClientInterface {
13
13
  changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
14
14
  join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
15
15
  removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
16
+ getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
16
17
  }
17
18
  /**
18
19
  * Contains all the endpoints needed to manage LiveStreams.
@@ -82,6 +83,11 @@ export declare class LiveStreamApiClient {
82
83
  * @param config
83
84
  */
84
85
  static removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
86
+ /**
87
+ * This endpoint retrieves LiveStream montlhy duration.
88
+ * @param config
89
+ */
90
+ static getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
85
91
  }
86
92
  /**
87
93
  *
@@ -129,4 +135,5 @@ export default class LiveStreamService {
129
135
  static changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
130
136
  static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
131
137
  static removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
138
+ static getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
132
139
  }
@@ -94,6 +94,13 @@ class LiveStreamApiClient {
94
94
  static removeParticipant(id, data, config) {
95
95
  return (0, apiRequest_1.apiRequest)(Object.assign({ url: Endpoints_1.default.RemoveParticipant.url({ id }), method: Endpoints_1.default.RemoveParticipant.method, data }, config));
96
96
  }
97
+ /**
98
+ * This endpoint retrieves LiveStream montlhy duration.
99
+ * @param config
100
+ */
101
+ static getMonthlyDuration(config) {
102
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetLiveStreamMonthlyDuration.url({}), method: Endpoints_1.default.GetLiveStreamMonthlyDuration.method }));
103
+ }
97
104
  }
98
105
  exports.LiveStreamApiClient = LiveStreamApiClient;
99
106
  /**
@@ -182,5 +189,10 @@ class LiveStreamService {
182
189
  return LiveStreamApiClient.removeParticipant(id, data, config);
183
190
  });
184
191
  }
192
+ static getMonthlyDuration(config) {
193
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
194
+ return LiveStreamApiClient.getMonthlyDuration(config);
195
+ });
196
+ }
185
197
  }
186
198
  exports.default = LiveStreamService;
@@ -1,4 +1,4 @@
1
- import { SCAvatarType, SCCategoryType, SCFeedUnitType, SCPlatformType, SCTagType, SCUserAutocompleteType, SCUserAvatarType, SCUserChangeEmailType, SCUserConnectionRequestType, SCUserConnectionStatusType, SCUserCounterType, SCUserEmailTokenType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserHiddenByStatusType, SCUserHiddenStatusType, SCUserLoyaltyPointsType, SCUserPermissionType, SCUserProviderAssociationType, SCUserSettingsType, SCUserType } from '@selfcommunity/types';
1
+ import { SCAvatarType, SCCategoryType, SCFeedUnitType, SCLiveStreamType, SCPlatformType, SCTagType, SCUserAutocompleteType, SCUserAvatarType, SCUserChangeEmailType, SCUserConnectionRequestType, SCUserConnectionStatusType, SCUserCounterType, SCUserEmailTokenType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserHiddenByStatusType, SCUserHiddenStatusType, SCUserLoyaltyPointsType, SCUserPermissionType, SCUserProviderAssociationType, SCUserSettingsType, SCUserType } from '@selfcommunity/types';
2
2
  import { BaseGetParams, SCPaginatedResponse, UserAutocompleteParams, UserGetParams, UserSearchParams } from '../../types';
3
3
  import { AxiosRequestConfig } from 'axios';
4
4
  import { DeleteProviderAssociation } from '../../types/user';
@@ -54,6 +54,7 @@ export interface UserApiClientInterface {
54
54
  getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]>;
55
55
  createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;
56
56
  deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
57
+ getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
57
58
  }
58
59
  /**
59
60
  * Contains all the endpoints needed to manage users.
@@ -384,6 +385,13 @@ export declare class UserApiClient {
384
385
  * @param config
385
386
  */
386
387
  static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
388
+ /**
389
+ * This endpoint retrieves the list of live stream currently started by user identified by ID.
390
+ * @param id
391
+ * @param params
392
+ * @param config
393
+ */
394
+ static getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
387
395
  }
388
396
  /**
389
397
  *
@@ -474,4 +482,5 @@ export default class UserService {
474
482
  static getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]>;
475
483
  static createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;
476
484
  static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
485
+ static getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
477
486
  }
@@ -451,6 +451,15 @@ class UserApiClient {
451
451
  static deleteProviderAssociation(data, config) {
452
452
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { data, url: Endpoints_1.default.DeleteProviderAssociation.url({ id: data.user_id }), method: Endpoints_1.default.DeleteProviderAssociation.method }));
453
453
  }
454
+ /**
455
+ * This endpoint retrieves the list of live stream currently started by user identified by ID.
456
+ * @param id
457
+ * @param params
458
+ * @param config
459
+ */
460
+ static getUserLiveStream(id, params, config) {
461
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetLiveStream.url({ id }), method: Endpoints_1.default.UserFeed.method, params }));
462
+ }
454
463
  }
455
464
  exports.UserApiClient = UserApiClient;
456
465
  /**
@@ -746,5 +755,10 @@ class UserService {
746
755
  return UserApiClient.deleteProviderAssociation(data, config);
747
756
  });
748
757
  }
758
+ static getUserLiveStream(id, params, config) {
759
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
760
+ return UserApiClient.getUserLiveStream(id, params, config);
761
+ });
762
+ }
749
763
  }
750
764
  exports.default = UserService;
@@ -515,6 +515,10 @@ const Endpoints = {
515
515
  url: urlReplacer('/api/v2/user/$(id)/provider/'),
516
516
  method: 'DELETE'
517
517
  },
518
+ GetLiveStream: {
519
+ url: urlReplacer('/api/v2/user/$(id)/live_stream/'),
520
+ method: 'GET'
521
+ },
518
522
  /**
519
523
  * Broadcast Messages
520
524
  */
@@ -1377,6 +1381,10 @@ const Endpoints = {
1377
1381
  url: urlReplacer('/api/v2/live_stream/$(id)/remove_participant/'),
1378
1382
  method: 'POST'
1379
1383
  },
1384
+ GetLiveStreamMonthlyDuration: {
1385
+ url: urlReplacer('/api/v2/live_stream/monthly_duration/'),
1386
+ method: 'GET'
1387
+ },
1380
1388
  /**
1381
1389
  * OnBoarding
1382
1390
  */
@@ -1,4 +1,4 @@
1
- import { SCLiveStreamConnectionDetailsType, SCLiveStreamType } from '@selfcommunity/types';
1
+ import { SCLiveStreamConnectionDetailsType, SCLiveStreamMonthlyDurationType, SCLiveStreamType } from '@selfcommunity/types';
2
2
  import { AxiosRequestConfig } from 'axios';
3
3
  import { SCPaginatedResponse } from '../../types';
4
4
  import { LiveStreamCreateParams, LiveStreamRemoveParticipantParams, LiveStreamSearchParams } from '../../types/liveStream';
@@ -13,6 +13,7 @@ export interface LiveStreamApiClientInterface {
13
13
  changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
14
14
  join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
15
15
  removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
16
+ getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
16
17
  }
17
18
  /**
18
19
  * Contains all the endpoints needed to manage LiveStreams.
@@ -82,6 +83,11 @@ export declare class LiveStreamApiClient {
82
83
  * @param config
83
84
  */
84
85
  static removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
86
+ /**
87
+ * This endpoint retrieves LiveStream montlhy duration.
88
+ * @param config
89
+ */
90
+ static getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
85
91
  }
86
92
  /**
87
93
  *
@@ -129,4 +135,5 @@ export default class LiveStreamService {
129
135
  static changeCover(id: number | string, data: FormData, config?: AxiosRequestConfig): Promise<SCLiveStreamType>;
130
136
  static join(id: number | string, config?: AxiosRequestConfig): Promise<SCLiveStreamConnectionDetailsType>;
131
137
  static removeParticipant(id: number | string, data: LiveStreamRemoveParticipantParams | FormData, config?: AxiosRequestConfig): Promise<any>;
138
+ static getMonthlyDuration(config?: AxiosRequestConfig): Promise<SCLiveStreamMonthlyDurationType>;
132
139
  }
@@ -91,6 +91,13 @@ export class LiveStreamApiClient {
91
91
  static removeParticipant(id, data, config) {
92
92
  return apiRequest(Object.assign({ url: Endpoints.RemoveParticipant.url({ id }), method: Endpoints.RemoveParticipant.method, data }, config));
93
93
  }
94
+ /**
95
+ * This endpoint retrieves LiveStream montlhy duration.
96
+ * @param config
97
+ */
98
+ static getMonthlyDuration(config) {
99
+ return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.GetLiveStreamMonthlyDuration.url({}), method: Endpoints.GetLiveStreamMonthlyDuration.method }));
100
+ }
94
101
  }
95
102
  /**
96
103
  *
@@ -178,4 +185,9 @@ export default class LiveStreamService {
178
185
  return LiveStreamApiClient.removeParticipant(id, data, config);
179
186
  });
180
187
  }
188
+ static getMonthlyDuration(config) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ return LiveStreamApiClient.getMonthlyDuration(config);
191
+ });
192
+ }
181
193
  }
@@ -1,4 +1,4 @@
1
- import { SCAvatarType, SCCategoryType, SCFeedUnitType, SCPlatformType, SCTagType, SCUserAutocompleteType, SCUserAvatarType, SCUserChangeEmailType, SCUserConnectionRequestType, SCUserConnectionStatusType, SCUserCounterType, SCUserEmailTokenType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserHiddenByStatusType, SCUserHiddenStatusType, SCUserLoyaltyPointsType, SCUserPermissionType, SCUserProviderAssociationType, SCUserSettingsType, SCUserType } from '@selfcommunity/types';
1
+ import { SCAvatarType, SCCategoryType, SCFeedUnitType, SCLiveStreamType, SCPlatformType, SCTagType, SCUserAutocompleteType, SCUserAvatarType, SCUserChangeEmailType, SCUserConnectionRequestType, SCUserConnectionStatusType, SCUserCounterType, SCUserEmailTokenType, SCUserFollowedStatusType, SCUserFollowerStatusType, SCUserHiddenByStatusType, SCUserHiddenStatusType, SCUserLoyaltyPointsType, SCUserPermissionType, SCUserProviderAssociationType, SCUserSettingsType, SCUserType } from '@selfcommunity/types';
2
2
  import { BaseGetParams, SCPaginatedResponse, UserAutocompleteParams, UserGetParams, UserSearchParams } from '../../types';
3
3
  import { AxiosRequestConfig } from 'axios';
4
4
  import { DeleteProviderAssociation } from '../../types/user';
@@ -54,6 +54,7 @@ export interface UserApiClientInterface {
54
54
  getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]>;
55
55
  createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;
56
56
  deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
57
+ getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
57
58
  }
58
59
  /**
59
60
  * Contains all the endpoints needed to manage users.
@@ -384,6 +385,13 @@ export declare class UserApiClient {
384
385
  * @param config
385
386
  */
386
387
  static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
388
+ /**
389
+ * This endpoint retrieves the list of live stream currently started by user identified by ID.
390
+ * @param id
391
+ * @param params
392
+ * @param config
393
+ */
394
+ static getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
387
395
  }
388
396
  /**
389
397
  *
@@ -474,4 +482,5 @@ export default class UserService {
474
482
  static getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]>;
475
483
  static createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;
476
484
  static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;
485
+ static getUserLiveStream(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLiveStreamType>>;
477
486
  }
@@ -448,6 +448,15 @@ export class UserApiClient {
448
448
  static deleteProviderAssociation(data, config) {
449
449
  return apiRequest(Object.assign(Object.assign({}, config), { data, url: Endpoints.DeleteProviderAssociation.url({ id: data.user_id }), method: Endpoints.DeleteProviderAssociation.method }));
450
450
  }
451
+ /**
452
+ * This endpoint retrieves the list of live stream currently started by user identified by ID.
453
+ * @param id
454
+ * @param params
455
+ * @param config
456
+ */
457
+ static getUserLiveStream(id, params, config) {
458
+ return apiRequest(Object.assign(Object.assign({}, config), { url: Endpoints.GetLiveStream.url({ id }), method: Endpoints.UserFeed.method, params }));
459
+ }
451
460
  }
452
461
  /**
453
462
  *
@@ -742,4 +751,9 @@ export default class UserService {
742
751
  return UserApiClient.deleteProviderAssociation(data, config);
743
752
  });
744
753
  }
754
+ static getUserLiveStream(id, params, config) {
755
+ return __awaiter(this, void 0, void 0, function* () {
756
+ return UserApiClient.getUserLiveStream(id, params, config);
757
+ });
758
+ }
745
759
  }