Skip to content
Open
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
2 changes: 2 additions & 0 deletions lib/api_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ doc/UserAccessUpdate.md
doc/UserCreate.md
doc/UserDoorAccessApi.md
doc/UserEventRead.md
doc/UserForEventSignupRead.md
doc/UserInEventRead.md
doc/UserInGroupRead.md
doc/UserPostRead.md
Expand Down Expand Up @@ -323,6 +324,7 @@ lib/src/model/user_access_read.dart
lib/src/model/user_access_update.dart
lib/src/model/user_create.dart
lib/src/model/user_event_read.dart
lib/src/model/user_for_event_signup_read.dart
lib/src/model/user_in_event_read.dart
lib/src/model/user_in_group_read.dart
lib/src/model/user_post_read.dart
Expand Down
2 changes: 2 additions & 0 deletions lib/api_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Class | Method | HTTP request | Description
[*EventSignupApi*](doc/EventSignupApi.md) | [**eventSignupEventSignoffRoute**](doc/EventSignupApi.md#eventsignupeventsignoffroute) | **DELETE** /event-signup/{event_id} | Event Signoff Route
[*EventSignupApi*](doc/EventSignupApi.md) | [**eventSignupEventSignupRoute**](doc/EventSignupApi.md#eventsignupeventsignuproute) | **POST** /event-signup/{event_id} | Event Signup Route
[*EventSignupApi*](doc/EventSignupApi.md) | [**eventSignupGetMeEventSignup**](doc/EventSignupApi.md#eventsignupgetmeeventsignup) | **GET** /event-signup/me-signup/{event_id} | Get Me Event Signup
[*EventSignupApi*](doc/EventSignupApi.md) | [**eventSignupGetMeForEventSignup**](doc/EventSignupApi.md#eventsignupgetmeforeventsignup) | **GET** /event-signup/me/{event_id} | Get Me For Event Signup
[*EventSignupApi*](doc/EventSignupApi.md) | [**eventSignupUpdateEventSignupRoute**](doc/EventSignupApi.md#eventsignupupdateeventsignuproute) | **PATCH** /event-signup/{event_id} | Update Event Signup Route
[*EventsApi*](doc/EventsApi.md) | [**eventsAddTagToEvent**](doc/EventsApi.md#eventsaddtagtoevent) | **POST** /events/add-tag | Add Tag To Event
[*EventsApi*](doc/EventsApi.md) | [**eventsConfirmEventUsers**](doc/EventsApi.md#eventsconfirmeventusers) | **PATCH** /events/event-confirm-event-users/{event_id} | Confirm Event Users
Expand Down Expand Up @@ -413,6 +414,7 @@ Class | Method | HTTP request | Description
- [UserAccessUpdate](doc/UserAccessUpdate.md)
- [UserCreate](doc/UserCreate.md)
- [UserEventRead](doc/UserEventRead.md)
- [UserForEventSignupRead](doc/UserForEventSignupRead.md)
- [UserInEventRead](doc/UserInEventRead.md)
- [UserInGroupRead](doc/UserInGroupRead.md)
- [UserPostRead](doc/UserPostRead.md)
Expand Down
2 changes: 2 additions & 0 deletions lib/api_client/doc/EventCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Name | Type | Description | Notes
**canSignup** | **bool** | |
**drinkPackage** | **bool** | |
**isNollningEvent** | **bool** | |
**mentorGroupTypes** | **BuiltList<String>** | |
**allowOtherMentors** | **bool** | |
**alcoholEventType** | **String** | |
**dressCode** | **String** | |
**price** | **int** | |
Expand Down
2 changes: 2 additions & 0 deletions lib/api_client/doc/EventRead.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Name | Type | Description | Notes
**canSignup** | **bool** | |
**drinkPackage** | **bool** | |
**isNollningEvent** | **bool** | |
**mentorGroupTypes** | **BuiltList<String>** | |
**allowOtherMentors** | **bool** | |
**alcoholEventType** | **String** | |
**dressCode** | **String** | |
**price** | **int** | |
Expand Down
48 changes: 48 additions & 0 deletions lib/api_client/doc/EventSignupApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Method | HTTP request | Description
[**eventSignupEventSignoffRoute**](EventSignupApi.md#eventsignupeventsignoffroute) | **DELETE** /event-signup/{event_id} | Event Signoff Route
[**eventSignupEventSignupRoute**](EventSignupApi.md#eventsignupeventsignuproute) | **POST** /event-signup/{event_id} | Event Signup Route
[**eventSignupGetMeEventSignup**](EventSignupApi.md#eventsignupgetmeeventsignup) | **GET** /event-signup/me-signup/{event_id} | Get Me Event Signup
[**eventSignupGetMeForEventSignup**](EventSignupApi.md#eventsignupgetmeforeventsignup) | **GET** /event-signup/me/{event_id} | Get Me For Event Signup
[**eventSignupUpdateEventSignupRoute**](EventSignupApi.md#eventsignupupdateeventsignuproute) | **PATCH** /event-signup/{event_id} | Update Event Signup Route


Expand Down Expand Up @@ -160,6 +161,53 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **eventSignupGetMeForEventSignup**
> UserForEventSignupRead eventSignupGetMeForEventSignup(eventId)

Get Me For Event Signup

### Example
```dart
import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: OAuth2PasswordBearer
//defaultApiClient.getAuthentication<OAuth>('OAuth2PasswordBearer').accessToken = 'YOUR_ACCESS_TOKEN';
// TODO Configure API key authorization: APIKeyCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIKeyCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIKeyCookie').apiKeyPrefix = 'Bearer';

final api = ApiClient().getEventSignupApi();
final int eventId = 56; // int |

try {
final response = api.eventSignupGetMeForEventSignup(eventId);
print(response);
} on DioException catch (e) {
print('Exception when calling EventSignupApi->eventSignupGetMeForEventSignup: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**eventId** | **int**| |

### Return type

[**UserForEventSignupRead**](UserForEventSignupRead.md)

### Authorization

[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer), [APIKeyCookie](../README.md#APIKeyCookie)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **eventSignupUpdateEventSignupRoute**
> EventSignupRead eventSignupUpdateEventSignupRoute(eventId, eventSignupUpdate)

Expand Down
3 changes: 3 additions & 0 deletions lib/api_client/doc/EventUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ Name | Type | Description | Notes
**canSignup** | **bool** | | [optional]
**drinkPackage** | **bool** | | [optional]
**isNollningEvent** | **bool** | | [optional]
**mentorGroupTypes** | **BuiltList&lt;String&gt;** | | [optional]
**allowOtherMentors** | **bool** | | [optional]
**priorities** | **BuiltList&lt;String&gt;** | | [optional]
**alcoholEventType** | **String** | | [optional]
**dressCode** | **String** | | [optional]
**price** | **int** | | [optional]
**dot** | **String** | | [optional]
**lottery** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
8 changes: 7 additions & 1 deletion lib/api_client/doc/EventsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ Confirm Places
### Example
```dart
import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: OAuth2PasswordBearer
//defaultApiClient.getAuthentication<OAuth>('OAuth2PasswordBearer').accessToken = 'YOUR_ACCESS_TOKEN';
// TODO Configure API key authorization: APIKeyCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIKeyCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIKeyCookie').apiKeyPrefix = 'Bearer';

final api = ApiClient().getEventsApi();
final int eventId = 56; // int |
Expand All @@ -156,7 +162,7 @@ Name | Type | Description | Notes

### Authorization

No authorization required
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer), [APIKeyCookie](../README.md#APIKeyCookie)

### HTTP request headers

Expand Down
1 change: 1 addition & 0 deletions lib/api_client/doc/UserCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**isActive** | **bool** | | [optional]
**isSuperuser** | **bool** | | [optional]
**isVerified** | **bool** | | [optional]
**stilId** | **String** | | [optional]
**firstName** | **String** | |
**lastName** | **String** | |
**telephoneNumber** | **String** | |
Expand Down
20 changes: 20 additions & 0 deletions lib/api_client/doc/UserForEventSignupRead.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# api_client.model.UserForEventSignupRead

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | |
**firstName** | **String** | |
**lastName** | **String** | |
**groups** | [**BuiltList&lt;GroupRead&gt;**](GroupRead.md) | |
**standardFoodPreferences** | **BuiltList&lt;String&gt;** | |
**otherFoodPreferences** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion lib/api_client/doc/UserUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import 'package:api_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stilId** | **String** | | [optional]
**firstName** | **String** | | [optional]
**lastName** | **String** | | [optional]
**startYear** | **int** | | [optional]
**program** | **String** | | [optional]
**notifications** | **bool** | | [optional]
**stilId** | **String** | | [optional]
**standardFoodPreferences** | **BuiltList&lt;String&gt;** | | [optional]
**otherFoodPreferences** | **String** | | [optional]
**telephoneNumber** | **String** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions lib/api_client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export 'package:api_client/src/model/user_access_read.dart';
export 'package:api_client/src/model/user_access_update.dart';
export 'package:api_client/src/model/user_create.dart';
export 'package:api_client/src/model/user_event_read.dart';
export 'package:api_client/src/model/user_for_event_signup_read.dart';
export 'package:api_client/src/model/user_in_event_read.dart';
export 'package:api_client/src/model/user_in_group_read.dart';
export 'package:api_client/src/model/user_post_read.dart';
Expand Down
86 changes: 86 additions & 0 deletions lib/api_client/lib/src/api/event_signup_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import 'package:api_client/src/model/event_signup_create.dart';
import 'package:api_client/src/model/event_signup_read.dart';
import 'package:api_client/src/model/event_signup_update.dart';
import 'package:api_client/src/model/http_validation_error.dart';
import 'package:api_client/src/model/user_for_event_signup_read.dart';

class EventSignupApi {

Expand Down Expand Up @@ -306,6 +307,91 @@ class EventSignupApi {
);
}

/// Get Me For Event Signup
///
///
/// Parameters:
/// * [eventId]
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
/// * [headers] - Can be used to add additional headers to the request
/// * [extras] - Can be used to add flags to the request
/// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response
/// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress
/// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress
///
/// Returns a [Future] containing a [Response] with a [UserForEventSignupRead] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<UserForEventSignupRead>> eventSignupGetMeForEventSignup({
required int eventId,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Map<String, dynamic>? extra,
ValidateStatus? validateStatus,
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
}) async {
final _path = r'/event-signup/me/{event_id}'.replaceAll('{' r'event_id' '}', encodeQueryParameter(_serializers, eventId, const FullType(int)).toString());
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
...?headers,
},
extra: <String, dynamic>{
'secure': <Map<String, String>>[
{
'type': 'oauth2',
'name': 'OAuth2PasswordBearer',
},{
'type': 'apiKey',
'name': 'APIKeyCookie',
'keyName': '__Secure-fsek_refresh_token',
'where': '',
},
],
...?extra,
},
validateStatus: validateStatus,
);

final _response = await _dio.request<Object>(
_path,
options: _options,
cancelToken: cancelToken,
onSendProgress: onSendProgress,
onReceiveProgress: onReceiveProgress,
);

UserForEventSignupRead? _responseData;

try {
final rawResponse = _response.data;
_responseData = rawResponse == null ? null : _serializers.deserialize(
rawResponse,
specifiedType: const FullType(UserForEventSignupRead),
) as UserForEventSignupRead;

} catch (error, stackTrace) {
throw DioException(
requestOptions: _response.requestOptions,
response: _response,
type: DioExceptionType.unknown,
error: error,
stackTrace: stackTrace,
);
}

return Response<UserForEventSignupRead>(
data: _responseData,
headers: _response.headers,
isRedirect: _response.isRedirect,
requestOptions: _response.requestOptions,
redirects: _response.redirects,
statusCode: _response.statusCode,
statusMessage: _response.statusMessage,
extra: _response.extra,
);
}

/// Update Event Signup Route
///
///
Expand Down
12 changes: 11 additions & 1 deletion lib/api_client/lib/src/api/events_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,17 @@ class EventsApi {
...?headers,
},
extra: <String, dynamic>{
'secure': <Map<String, String>>[],
'secure': <Map<String, String>>[
{
'type': 'oauth2',
'name': 'OAuth2PasswordBearer',
},{
'type': 'apiKey',
'name': 'APIKeyCookie',
'keyName': '__Secure-fsek_refresh_token',
'where': '',
},
],
...?extra,
},
validateStatus: validateStatus,
Expand Down
Loading