Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CLASHBOT_SERVICE_URL=http://localhost:8080
MOCK_DISCORD_SERVICE=false
discordClientId=1234567890
discordClientId=1234567890
clashbotEventUrl=ws://localhost:8000/ws
9 changes: 6 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
./ciScripts/build-env-file.sh \
CLASHBOT_SERVICE_URL ${CLASHBOT_SERVICE_URL} \
MOCK_DISCORD_SERVICE ${MOCK_DISCORD_SERVICE} \
discordClientId ${DISCORD_CLIENT_ID}
discordClientId ${DISCORD_CLIENT_ID} \
clashbotEventUrl http://localhost:8080/api/v2/ws

- name: Unit Tests
run: flutter test "test/unit/" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -73,7 +74,8 @@ jobs:
./ciScripts/build-env-file.sh \
CLASHBOT_SERVICE_URL ${CLASHBOT_SERVICE_URL} \
MOCK_DISCORD_SERVICE ${MOCK_DISCORD_SERVICE} \
discordClientId ${DISCORD_CLIENT_ID}
discordClientId ${DISCORD_CLIENT_ID} \
clashbotEventUrl http://localhost:8080/api/v2/ws

- name: Generate Envied Files
run: flutter pub run build_runner build --delete-conflicting-outputs
Expand Down Expand Up @@ -119,7 +121,8 @@ jobs:
./ciScripts/build-env-file.sh \
CLASHBOT_SERVICE_URL ${CLASHBOT_SERVICE_URL} \
MOCK_DISCORD_SERVICE ${MOCK_DISCORD_SERVICE} \
discordClientId ${DISCORD_CLIENT_ID}
discordClientId ${DISCORD_CLIENT_ID} \
clashbotEventUrl http://localhost:8080/api/v2/ws

- name: Generate Envied Files
run: flutter pub run build_runner build --delete-conflicting-outputs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
CLASHBOT_SERVICE_URL: ${{ vars.CLASHBOT_SERVICE_URL }}
MOCK_DISCORD_SERVICE: false
DISCORD_CLIENT_ID: ${{ vars.DISCORD_CLIENT_ID }}
run: ./ciScripts/build-env-file.sh CLASHBOT_SERVICE_URL ${CLASHBOT_SERVICE_URL} MOCK_DISCORD_SERVICE ${MOCK_DISCORD_SERVICE} discordClientId ${DISCORD_CLIENT_ID}
CLASHBOT_EVENT_URL: ${{ vars.CLASHBOT_EVENT_URL }}
run: ./ciScripts/build-env-file.sh CLASHBOT_SERVICE_URL ${CLASHBOT_SERVICE_URL} MOCK_DISCORD_SERVICE ${MOCK_DISCORD_SERVICE} discordClientId ${DISCORD_CLIENT_ID} clashbotEventUrl ${CLASHBOT_EVENT_URL}

- name: Generate Envied Files
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand All @@ -31,6 +33,7 @@ migrate_working_dir/
.pub-cache/
.pub/
/build/
/widgetbook/build/

# Symbolication related
app.*.symbols
Expand Down
4 changes: 3 additions & 1 deletion clash-bot-api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
.dart_tool/
.packages
build/
pubspec.lock # Except for application packages

# Except for application packages
pubspec.lock

doc/api/

Expand Down
1 change: 0 additions & 1 deletion clash-bot-api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
analysis_options.yaml
Expand Down
2 changes: 1 addition & 1 deletion clash-bot-api/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.1
7.12.0
14 changes: 8 additions & 6 deletions clash-bot-api/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# clash_bot_api
# openapi
# Welcome to Clash Bot!

Where all of your League of Legends Clash scheduling needs are met!
Expand All @@ -17,6 +17,7 @@ are trademarks or registered trademarks of Riot Games, Inc. League of Legends ©
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.0.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen

## Requirements
Expand All @@ -29,16 +30,16 @@ Dart 2.12 or later
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
```
dependencies:
clash_bot_api:
openapi:
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```

### Local
To use the package in your local drive, add the following dependency to your pubspec.yaml
```
dependencies:
clash_bot_api:
path: /path/to/clash_bot_api
openapi:
path: /path/to/openapi
```

## Tests
Expand All @@ -50,7 +51,7 @@ TODO
Please follow the [installation procedure](#installation--usage) and then run the following:

```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';


final api_instance = ChampionsApi();
Expand Down Expand Up @@ -94,6 +95,7 @@ Class | Method | HTTP request | Description
*TentativeApi* | [**retrieveTentativeQueues**](doc//TentativeApi.md#retrievetentativequeues) | **GET** /tentatives |
*TournamentApi* | [**createTournament**](doc//TournamentApi.md#createtournament) | **POST** /tournaments |
*TournamentApi* | [**getTournaments**](doc//TournamentApi.md#gettournaments) | **GET** /tournaments |
*TournamentApi* | [**retrieveRiotClashTournaments**](doc//TournamentApi.md#retrieveriotclashtournaments) | **PATCH** /tournaments/riot |
*UserApi* | [**addUsersSelectedServers**](doc//UserApi.md#addusersselectedservers) | **PATCH** /users/{discordId}/servers |
*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /users |
*UserApi* | [**createUsersSelectedServers**](doc//UserApi.md#createusersselectedservers) | **POST** /users/{discordId}/servers |
Expand Down Expand Up @@ -139,7 +141,7 @@ Class | Method | HTTP request | Description

## Documentation For Authorization

All endpoints do not require authorization.
Endpoints do not require authorization.


## Author
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/ArchiveMetadata.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.ArchiveMetadata
# openapi.model.ArchiveMetadata

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/BaseTournament.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.BaseTournament
# openapi.model.BaseTournament

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Champion.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Champion
# openapi.model.Champion

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Champions.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Champions
# openapi.model.Champions

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
12 changes: 6 additions & 6 deletions clash-bot-api/doc/ChampionsApi.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.api.ChampionsApi
# openapi.api.ChampionsApi

## Load the API package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

All URIs are relative to *http://localhost:8080/api/v2*
Expand All @@ -24,7 +24,7 @@ Adds the requested champion to the users preferred champions. Cannot be greater

### Example
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';

final api_instance = ChampionsApi();
final xCausedBy = xCausedBy_example; // String |
Expand Down Expand Up @@ -71,7 +71,7 @@ Updates the users preferred champions with an entirely new list. Cannot be great

### Example
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';

final api_instance = ChampionsApi();
final xCausedBy = xCausedBy_example; // String |
Expand Down Expand Up @@ -118,7 +118,7 @@ Removes the requested champion to the users preferred champions.

### Example
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';

final api_instance = ChampionsApi();
final xCausedBy = xCausedBy_example; // String |
Expand Down Expand Up @@ -165,7 +165,7 @@ Returns a list of preferred champions that the User has.

### Example
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';

final api_instance = ChampionsApi();
final xCausedBy = xCausedBy_example; // String |
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/CreateUserRequest.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.CreateUserRequest
# openapi.model.CreateUserRequest

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/DetailedTournament.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.DetailedTournament
# openapi.model.DetailedTournament

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Error.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Error
# openapi.model.Error

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Event.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Event
# openapi.model.Event

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/EventType.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.EventType
# openapi.model.EventType

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
6 changes: 3 additions & 3 deletions clash-bot-api/doc/MaintenanceApi.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.api.MaintenanceApi
# openapi.api.MaintenanceApi

## Load the API package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

All URIs are relative to *http://localhost:8080/api/v2*
Expand All @@ -21,7 +21,7 @@ Will move all Teams and Tentative Queues that are now inactive into an archive t

### Example
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';

final api_instance = MaintenanceApi();
final xCausedBy = xCausedBy_example; // String |
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Player.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Player
# openapi.model.Player

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/PositionDetails.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.PositionDetails
# openapi.model.PositionDetails

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Role.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Role
# openapi.model.Role

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Server.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Server
# openapi.model.Server

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Servers.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Servers
# openapi.model.Servers

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions clash-bot-api/doc/Subscription.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# clash_bot_api.model.Subscription
# openapi.model.Subscription

## Load the model package
```dart
import 'package:clash_bot_api/api.dart';
import 'package:openapi/api.dart';
```

## Properties
Expand Down
Loading