Skip to content

Commit

Permalink
Merge pull request #60 from apivideo/remove-raw-statistics
Browse files Browse the repository at this point in the history
feat(all) remove raw statistics
  • Loading branch information
bot-api-video authored Sep 11, 2023
2 parents fb5c9f0 + d83702e commit f425eb8
Show file tree
Hide file tree
Showing 29 changed files with 10 additions and 824 deletions.
8 changes: 0 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Sources/APIs/CaptionsAPI.swift
Sources/APIs/ChaptersAPI.swift
Sources/APIs/LiveStreamsAPI.swift
Sources/APIs/PlayerThemesAPI.swift
Sources/APIs/RawStatisticsAPI.swift
Sources/APIs/UploadTokensAPI.swift
Sources/APIs/VideosAPI.swift
Sources/APIs/WatermarksAPI.swift
Expand Down Expand Up @@ -64,9 +63,6 @@ Sources/Models/PlayerThemeCreationPayload.swift
Sources/Models/PlayerThemeUpdatePayload.swift
Sources/Models/PlayerThemesListResponse.swift
Sources/Models/Quality.swift
Sources/Models/RawStatisticsListLiveStreamAnalyticsResponse.swift
Sources/Models/RawStatisticsListPlayerSessionEventsResponse.swift
Sources/Models/RawStatisticsListSessionsResponse.swift
Sources/Models/RefreshTokenPayload.swift
Sources/Models/RestreamsRequestObject.swift
Sources/Models/RestreamsResponseObject.swift
Expand Down Expand Up @@ -150,10 +146,6 @@ docs/PlayerThemeUpdatePayload.md
docs/PlayerThemesAPI.md
docs/PlayerThemesListResponse.md
docs/Quality.md
docs/RawStatisticsAPI.md
docs/RawStatisticsListLiveStreamAnalyticsResponse.md
docs/RawStatisticsListPlayerSessionEventsResponse.md
docs/RawStatisticsListSessionsResponse.md
docs/RefreshTokenPayload.md
docs/RestreamsRequestObject.md
docs/RestreamsResponseObject.md
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1887f11face54a0a043265ab98f1d56e2ac08c39bef0c30dbaa6fc9dfdefb3db
15641308b8635d4681dbd94d4931525c407a0a10b8e7487da2365559b4d4adf2
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- [ChaptersAPI](#ChaptersAPI)
- [LiveStreamsAPI](#LiveStreamsAPI)
- [PlayerThemesAPI](#PlayerThemesAPI)
- [RawStatisticsAPI](#RawStatisticsAPI)
- [UploadTokensAPI](#UploadTokensAPI)
- [VideosAPI](#VideosAPI)
- [WatermarksAPI](#WatermarksAPI)
Expand Down Expand Up @@ -190,23 +189,6 @@ Method | HTTP request | Description
[**deleteLogo**](docs/PlayerThemesAPI.md#deleteLogo) | **DELETE** /players/{playerId}/logo | Delete logo


### RawStatisticsAPI

#### Retrieve an instance of RawStatisticsAPI:

```swift
RawStatisticsAPI
```

#### Endpoints

Method | HTTP request | Description
------------- | ------------- | -------------
[**listLiveStreamSessions**](docs/RawStatisticsAPI.md#listLiveStreamSessions) | **GET** /analytics/live-streams/{liveStreamId} | List live stream player sessions
[**listSessionEvents**](docs/RawStatisticsAPI.md#listSessionEvents) | **GET** /analytics/sessions/{sessionId}/events | List player session events
[**listVideoSessions**](docs/RawStatisticsAPI.md#listVideoSessions) | **GET** /analytics/videos/{videoId} | List video player sessions


### UploadTokensAPI

#### Retrieve an instance of UploadTokensAPI:
Expand Down Expand Up @@ -324,9 +306,6 @@ Method | HTTP request | Description
- [PlayerThemeUpdatePayload](docs/PlayerThemeUpdatePayload.md)
- [PlayerThemesListResponse](docs/PlayerThemesListResponse.md)
- [Quality](docs/Quality.md)
- [RawStatisticsListLiveStreamAnalyticsResponse](docs/RawStatisticsListLiveStreamAnalyticsResponse.md)
- [RawStatisticsListPlayerSessionEventsResponse](docs/RawStatisticsListPlayerSessionEventsResponse.md)
- [RawStatisticsListSessionsResponse](docs/RawStatisticsListSessionsResponse.md)
- [RefreshTokenPayload](docs/RefreshTokenPayload.md)
- [RestreamsRequestObject](docs/RestreamsRequestObject.md)
- [RestreamsResponseObject](docs/RestreamsResponseObject.md)
Expand Down
4 changes: 2 additions & 2 deletions Sources/APIs/LiveStreamsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ open class LiveStreamsAPI {
/**
Update a live stream

- parameter liveStreamId: (path) The unique ID for the live stream that you want to update information for such as player details, or whether you want the recording on or off.
- parameter liveStreamId: (path) The unique ID for the live stream that you want to update information for such as player details.
- parameter liveStreamUpdatePayload: (body)
- parameter apiResponseQueue: The queue on which api response is dispatched.
- parameter completion: completion handler to receive the data and the error objects.
Expand All @@ -132,7 +132,7 @@ open class LiveStreamsAPI {
Update a live stream
- PATCH /live-streams/{liveStreamId}
- Updates the livestream object.
- parameter liveStreamId: (path) The unique ID for the live stream that you want to update information for such as player details, or whether you want the recording on or off.
- parameter liveStreamId: (path) The unique ID for the live stream that you want to update information for such as player details.
- parameter liveStreamUpdatePayload: (body)
- returns: RequestBuilder<LiveStream>
*/
Expand Down
193 changes: 0 additions & 193 deletions Sources/APIs/RawStatisticsAPI.swift

This file was deleted.

7 changes: 1 addition & 6 deletions Sources/Models/LiveStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public struct LiveStream: Codable, Hashable {
public var name: String?
/** The unique, private stream key that you use to begin streaming. */
public var streamKey: String?
/** Whether you are recording or not. */
public var record: Bool?
/** Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos). */
public var _public: Bool?
public var assets: LiveStreamAssets?
Expand All @@ -34,11 +32,10 @@ public struct LiveStream: Codable, Hashable {
/** When the player was last updated, presented in ISO-8601 format. */
public var updatedAt: Date?

public init(liveStreamId: String, name: String? = nil, streamKey: String? = nil, record: Bool? = nil, _public: Bool? = nil, assets: LiveStreamAssets? = nil, playerId: String? = nil, broadcasting: Bool? = nil, restreams: [RestreamsResponseObject], createdAt: Date? = nil, updatedAt: Date? = nil) {
public init(liveStreamId: String, name: String? = nil, streamKey: String? = nil, _public: Bool? = nil, assets: LiveStreamAssets? = nil, playerId: String? = nil, broadcasting: Bool? = nil, restreams: [RestreamsResponseObject], createdAt: Date? = nil, updatedAt: Date? = nil) {
self.liveStreamId = liveStreamId
self.name = name
self.streamKey = streamKey
self.record = record
self._public = _public
self.assets = assets
self.playerId = playerId
Expand All @@ -52,7 +49,6 @@ public struct LiveStream: Codable, Hashable {
case liveStreamId
case name
case streamKey
case record
case _public = "public"
case assets
case playerId
Expand All @@ -69,7 +65,6 @@ public struct LiveStream: Codable, Hashable {
try container.encode(liveStreamId, forKey: .liveStreamId)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(streamKey, forKey: .streamKey)
try container.encodeIfPresent(record, forKey: .record)
try container.encodeIfPresent(_public, forKey: ._public)
try container.encodeIfPresent(assets, forKey: .assets)
try container.encodeIfPresent(playerId, forKey: .playerId)
Expand Down
Loading

0 comments on commit f425eb8

Please sign in to comment.