From 3d7906a9f2706244129c661c3bf13b8827bd3242 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 17 Aug 2023 10:05:48 +0200 Subject: [PATCH] Synchronizing data structures including the latest changes in Excel spec Database API (yaml) Flask --- misc/BreCalApi.cs | 702 +++++++++++++++----------- misc/BreCalApi.yaml | 88 +++- misc/create_schema.sql | 428 +++++++++------- misc/sample_data.sql | 190 ++++--- src/server/BreCal/impl/berths.py | 2 +- src/server/BreCal/impl/participant.py | 4 +- src/server/BreCal/impl/shipcalls.py | 4 +- src/server/BreCal/impl/ships.py | 2 +- src/server/BreCal/impl/times.py | 3 +- src/server/BreCal/schemas/model.py | 52 +- 10 files changed, 861 insertions(+), 614 deletions(-) diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs index c0f8c34..1ae94bc 100644 --- a/misc/BreCalApi.cs +++ b/misc/BreCalApi.cs @@ -1,19 +1,19 @@ //---------------------- // -// Generated REST API Client Code Generator v1.7.17.0 on 16.08.2023 15:05:44 +// Generated REST API Client Code Generator v1.7.17.0 on 17.08.2023 08:38:17 // Using the tool OpenAPI Generator v6.6.0 // //---------------------- -using BreCalClient.misc.Client; -using BreCalClient.misc.Model; +using BreCalClient.......misc.Client; +using BreCalClient.......misc.Model; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; -using OpenAPIDateConverter = BreCalClient.misc.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = BreCalClient.......misc.Client.OpenAPIDateConverter; using Polly; using RestSharp; using RestSharp.Serializers; @@ -48,7 +48,7 @@ using System.Threading.Tasks; * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Api +namespace BreCalClient.......misc.Api { /// /// Represents a collection of functions to interact with the API endpoints @@ -59,7 +59,7 @@ namespace BreCalClient.misc.Api /// /// Gets a list of all berths registered /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Berth> List BerthsGet(int operationIndex = 0); @@ -69,14 +69,14 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Berth> ApiResponse> BerthsGetWithHttpInfo(int operationIndex = 0); /// /// Returns a JWT session token and user data if successful /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// LoginResult @@ -87,7 +87,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// ApiResponse of LoginResult @@ -95,7 +95,7 @@ namespace BreCalClient.misc.Api /// /// Gets a list of notifications pursuant to a specified participant and ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. @@ -107,7 +107,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. @@ -116,7 +116,7 @@ namespace BreCalClient.misc.Api /// /// gets a particular participant entry corresponding to user id /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// List<Participant> @@ -127,7 +127,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// ApiResponse of List<Participant> @@ -135,7 +135,7 @@ namespace BreCalClient.misc.Api /// /// Gets a list of ship calls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Shipcall> List ShipcallsGet(int operationIndex = 0); @@ -145,14 +145,14 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Shipcall> ApiResponse> ShipcallsGetWithHttpInfo(int operationIndex = 0); /// /// Create a new ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// @@ -163,7 +163,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// ApiResponse of Object(void) @@ -171,7 +171,7 @@ namespace BreCalClient.misc.Api /// /// Updates a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// @@ -182,7 +182,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// ApiResponse of Object(void) @@ -190,7 +190,7 @@ namespace BreCalClient.misc.Api /// /// gets a list of registered shipcalls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Ship> List ShipsGet(int operationIndex = 0); @@ -200,14 +200,14 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Ship> ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0); /// /// Delete a times entry for a ship call. /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// @@ -218,7 +218,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) @@ -226,7 +226,7 @@ namespace BreCalClient.misc.Api /// /// Get all recorded times for a a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// List<Times> @@ -237,7 +237,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// ApiResponse of List<Times> @@ -245,7 +245,7 @@ namespace BreCalClient.misc.Api /// /// Create a new times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// @@ -256,7 +256,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// ApiResponse of Object(void) @@ -264,7 +264,7 @@ namespace BreCalClient.misc.Api /// /// Update a times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// @@ -275,7 +275,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// ApiResponse of Object(void) @@ -294,7 +294,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Berth> @@ -305,7 +305,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Berth>) @@ -316,7 +316,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -328,7 +328,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -340,7 +340,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. @@ -353,7 +353,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. @@ -366,7 +366,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -378,7 +378,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -390,7 +390,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Shipcall> @@ -401,7 +401,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Shipcall>) @@ -412,7 +412,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -424,7 +424,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -436,7 +436,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -448,7 +448,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -460,7 +460,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Ship> @@ -471,7 +471,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Ship>) @@ -482,7 +482,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -494,7 +494,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -506,7 +506,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -518,7 +518,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -530,7 +530,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -542,7 +542,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -554,7 +554,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -566,7 +566,7 @@ namespace BreCalClient.misc.Api /// /// /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -585,7 +585,7 @@ namespace BreCalClient.misc.Api /// public partial class DefaultApi : IDefaultApi { - private BreCalClient.misc.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + private BreCalClient.......misc.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// @@ -599,13 +599,13 @@ namespace BreCalClient.misc.Api /// public DefaultApi(string basePath) { - this.Configuration = BreCalClient.misc.Client.Configuration.MergeConfigurations( - BreCalClient.misc.Client.GlobalConfiguration.Instance, - new BreCalClient.misc.Client.Configuration { BasePath = basePath } + this.Configuration = BreCalClient.......misc.Client.Configuration.MergeConfigurations( + BreCalClient.......misc.Client.GlobalConfiguration.Instance, + new BreCalClient.......misc.Client.Configuration { BasePath = basePath } ); - this.Client = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath); - this.ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory; + this.Client = new BreCalClient.......misc.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new BreCalClient.......misc.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = BreCalClient.......misc.Client.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class @@ -613,16 +613,16 @@ namespace BreCalClient.misc.Api /// /// An instance of Configuration /// - public DefaultApi(BreCalClient.misc.Client.Configuration configuration) + public DefaultApi(BreCalClient.......misc.Client.Configuration configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); - this.Configuration = BreCalClient.misc.Client.Configuration.MergeConfigurations( - BreCalClient.misc.Client.GlobalConfiguration.Instance, + this.Configuration = BreCalClient.......misc.Client.Configuration.MergeConfigurations( + BreCalClient.......misc.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath); - ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory; + this.Client = new BreCalClient.......misc.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new BreCalClient.......misc.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = BreCalClient.......misc.Client.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class @@ -631,7 +631,7 @@ namespace BreCalClient.misc.Api /// The client interface for synchronous API access. /// The client interface for asynchronous API access. /// The configuration object. - public DefaultApi(BreCalClient.misc.Client.ISynchronousClient client, BreCalClient.misc.Client.IAsynchronousClient asyncClient, BreCalClient.misc.Client.IReadableConfiguration configuration) + public DefaultApi(BreCalClient.......misc.Client.ISynchronousClient client, BreCalClient.......misc.Client.IAsynchronousClient asyncClient, BreCalClient.......misc.Client.IReadableConfiguration configuration) { if (client == null) throw new ArgumentNullException("client"); if (asyncClient == null) throw new ArgumentNullException("asyncClient"); @@ -639,16 +639,16 @@ namespace BreCalClient.misc.Api this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; - this.ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory; + this.ExceptionFactory = BreCalClient.......misc.Client.Configuration.DefaultExceptionFactory; } /// /// The client for accessing this underlying API asynchronously. /// - public BreCalClient.misc.Client.IAsynchronousClient AsynchronousClient { get; set; } + public BreCalClient.......misc.Client.IAsynchronousClient AsynchronousClient { get; set; } /// /// The client for accessing this underlying API synchronously. /// - public BreCalClient.misc.Client.ISynchronousClient Client { get; set; } + public BreCalClient.......misc.Client.ISynchronousClient Client { get; set; } /// /// Gets the base path of the API client. /// @@ -661,11 +661,11 @@ namespace BreCalClient.misc.Api /// Gets or sets the configuration object /// /// An instance of the Configuration - public BreCalClient.misc.Client.IReadableConfiguration Configuration { get; set; } + public BreCalClient.......misc.Client.IReadableConfiguration Configuration { get; set; } /// /// Provides a factory method hook for the creation of exceptions. /// - public BreCalClient.misc.Client.ExceptionFactory ExceptionFactory + public BreCalClient.......misc.Client.ExceptionFactory ExceptionFactory { get { @@ -680,35 +680,35 @@ namespace BreCalClient.misc.Api /// /// Gets a list of all berths registered /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Berth> public List BerthsGet(int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = BerthsGetWithHttpInfo(); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = BerthsGetWithHttpInfo(); return localVarResponse.Data; } /// /// Gets a list of all berths registered /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Berth> - public BreCalClient.misc.Client.ApiResponse> BerthsGetWithHttpInfo(int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse> BerthsGetWithHttpInfo(int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -735,37 +735,37 @@ namespace BreCalClient.misc.Api /// /// Gets a list of all berths registered /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Berth> public async System.Threading.Tasks.Task> BerthsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = await BerthsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = await BerthsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Gets a list of all berths registered /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Berth>) - public async System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -792,30 +792,30 @@ namespace BreCalClient.misc.Api /// /// Returns a JWT session token and user data if successful /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// LoginResult public LoginResult LoginPost(Credentials credentials, int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse localVarResponse = LoginPostWithHttpInfo(credentials); + BreCalClient.......misc.Client.ApiResponse localVarResponse = LoginPostWithHttpInfo(credentials); return localVarResponse.Data; } /// /// Returns a JWT session token and user data if successful /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// ApiResponse of LoginResult - public BreCalClient.misc.Client.ApiResponse LoginPostWithHttpInfo(Credentials credentials, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse LoginPostWithHttpInfo(Credentials credentials, int operationIndex = 0) { // verify the required parameter 'credentials' is set if (credentials == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'credentials' when calling DefaultApi->LoginPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'credentials' when calling DefaultApi->LoginPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -823,12 +823,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -856,32 +856,32 @@ namespace BreCalClient.misc.Api /// /// Returns a JWT session token and user data if successful /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of LoginResult public async System.Threading.Tasks.Task LoginPostAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse localVarResponse = await LoginPostWithHttpInfoAsync(credentials, operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse localVarResponse = await LoginPostWithHttpInfoAsync(credentials, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Returns a JWT session token and user data if successful /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Login credentials /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (LoginResult) - public async System.Threading.Tasks.Task> LoginPostWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginPostWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'credentials' is set if (credentials == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'credentials' when calling DefaultApi->LoginPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'credentials' when calling DefaultApi->LoginPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -889,12 +889,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -922,45 +922,45 @@ namespace BreCalClient.misc.Api /// /// Gets a list of notifications pursuant to a specified participant and ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. /// Notification public Notification NotificationsGet(int participantId, int shipcallId, int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse localVarResponse = NotificationsGetWithHttpInfo(participantId, shipcallId); + BreCalClient.......misc.Client.ApiResponse localVarResponse = NotificationsGetWithHttpInfo(participantId, shipcallId); return localVarResponse.Data; } /// /// Gets a list of notifications pursuant to a specified participant and ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. /// ApiResponse of Notification - public BreCalClient.misc.Client.ApiResponse NotificationsGetWithHttpInfo(int participantId, int shipcallId, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse NotificationsGetWithHttpInfo(int participantId, int shipcallId, int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "participant_id", participantId)); - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "participant_id", participantId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); localVarRequestOptions.Operation = "DefaultApi.NotificationsGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required @@ -983,7 +983,7 @@ namespace BreCalClient.misc.Api /// /// Gets a list of notifications pursuant to a specified participant and ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. @@ -991,39 +991,39 @@ namespace BreCalClient.misc.Api /// Task of Notification public async System.Threading.Tasks.Task NotificationsGetAsync(int participantId, int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse localVarResponse = await NotificationsGetWithHttpInfoAsync(participantId, shipcallId, operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse localVarResponse = await NotificationsGetWithHttpInfoAsync(participantId, shipcallId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Gets a list of notifications pursuant to a specified participant and ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of participant**. *Example: 2*. Id returned through loading of participant /// **Id of ship call**. *Example: 52*. Id given in ship call list /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> NotificationsGetWithHttpInfoAsync(int participantId, int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> NotificationsGetWithHttpInfoAsync(int participantId, int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "participant_id", participantId)); - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "participant_id", participantId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); localVarRequestOptions.Operation = "DefaultApi.NotificationsGet"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required @@ -1046,44 +1046,44 @@ namespace BreCalClient.misc.Api /// /// gets a particular participant entry corresponding to user id /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// List<Participant> public List ParticipantsGet(int? userId = default(int?), int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = ParticipantsGetWithHttpInfo(userId); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = ParticipantsGetWithHttpInfo(userId); return localVarResponse.Data; } /// /// gets a particular participant entry corresponding to user id /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// ApiResponse of List<Participant> - public BreCalClient.misc.Client.ApiResponse> ParticipantsGetWithHttpInfo(int? userId = default(int?), int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse> ParticipantsGetWithHttpInfo(int? userId = default(int?), int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (userId != null) { - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "user_id", userId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "user_id", userId)); } localVarRequestOptions.Operation = "DefaultApi.ParticipantsGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1107,46 +1107,46 @@ namespace BreCalClient.misc.Api /// /// gets a particular participant entry corresponding to user id /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Participant> public async System.Threading.Tasks.Task> ParticipantsGetAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = await ParticipantsGetWithHttpInfoAsync(userId, operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = await ParticipantsGetWithHttpInfoAsync(userId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// gets a particular participant entry corresponding to user id /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id of user**. *Example: 2*. User id returned by verify call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Participant>) - public async System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (userId != null) { - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "user_id", userId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "user_id", userId)); } localVarRequestOptions.Operation = "DefaultApi.ParticipantsGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1170,35 +1170,35 @@ namespace BreCalClient.misc.Api /// /// Gets a list of ship calls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Shipcall> public List ShipcallsGet(int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipcallsGetWithHttpInfo(); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = ShipcallsGetWithHttpInfo(); return localVarResponse.Data; } /// /// Gets a list of ship calls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Shipcall> - public BreCalClient.misc.Client.ApiResponse> ShipcallsGetWithHttpInfo(int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse> ShipcallsGetWithHttpInfo(int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1225,37 +1225,37 @@ namespace BreCalClient.misc.Api /// /// Gets a list of ship calls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Shipcall> public async System.Threading.Tasks.Task> ShipcallsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipcallsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = await ShipcallsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Gets a list of ship calls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Shipcall>) - public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1282,7 +1282,7 @@ namespace BreCalClient.misc.Api /// /// Create a new ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// @@ -1293,18 +1293,18 @@ namespace BreCalClient.misc.Api /// /// Create a new ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// ApiResponse of Object(void) - public BreCalClient.misc.Client.ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0) { // verify the required parameter 'shipcall' is set if (shipcall == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1312,12 +1312,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1345,7 +1345,7 @@ namespace BreCalClient.misc.Api /// /// Create a new ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -1357,19 +1357,19 @@ namespace BreCalClient.misc.Api /// /// Create a new ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'shipcall' is set if (shipcall == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1377,12 +1377,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1410,7 +1410,7 @@ namespace BreCalClient.misc.Api /// /// Updates a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// @@ -1421,18 +1421,18 @@ namespace BreCalClient.misc.Api /// /// Updates a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// ApiResponse of Object(void) - public BreCalClient.misc.Client.ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0) { // verify the required parameter 'shipcall' is set if (shipcall == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPut"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPut"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1440,12 +1440,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1473,7 +1473,7 @@ namespace BreCalClient.misc.Api /// /// Updates a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -1485,19 +1485,19 @@ namespace BreCalClient.misc.Api /// /// Updates a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Creates a new ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'shipcall' is set if (shipcall == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPut"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'shipcall' when calling DefaultApi->ShipcallsPut"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1505,12 +1505,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1538,35 +1538,35 @@ namespace BreCalClient.misc.Api /// /// gets a list of registered shipcalls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// List<Ship> public List ShipsGet(int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipsGetWithHttpInfo(); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = ShipsGetWithHttpInfo(); return localVarResponse.Data; } /// /// gets a list of registered shipcalls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// ApiResponse of List<Ship> - public BreCalClient.misc.Client.ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1593,37 +1593,37 @@ namespace BreCalClient.misc.Api /// /// gets a list of registered shipcalls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Ship> public async System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = await ShipsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// gets a list of registered shipcalls /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Ship>) - public async System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1650,7 +1650,7 @@ namespace BreCalClient.misc.Api /// /// Delete a times entry for a ship call. /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// @@ -1661,30 +1661,30 @@ namespace BreCalClient.misc.Api /// /// Delete a times entry for a ship call. /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// ApiResponse of Object(void) - public BreCalClient.misc.Client.ApiResponse TimesDeleteWithHttpInfo(int id, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse TimesDeleteWithHttpInfo(int id, int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "id", id)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "id", id)); localVarRequestOptions.Operation = "DefaultApi.TimesDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required @@ -1707,7 +1707,7 @@ namespace BreCalClient.misc.Api /// /// Delete a times entry for a ship call. /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -1719,31 +1719,31 @@ namespace BreCalClient.misc.Api /// /// Delete a times entry for a ship call. /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "id", id)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "id", id)); localVarRequestOptions.Operation = "DefaultApi.TimesDelete"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (ApiKey) required @@ -1766,44 +1766,44 @@ namespace BreCalClient.misc.Api /// /// Get all recorded times for a a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// List<Times> public List TimesGet(int? shipcallId = default(int?), int operationIndex = 0) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = TimesGetWithHttpInfo(shipcallId); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = TimesGetWithHttpInfo(shipcallId); return localVarResponse.Data; } /// /// Get all recorded times for a a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// ApiResponse of List<Times> - public BreCalClient.misc.Client.ApiResponse> TimesGetWithHttpInfo(int? shipcallId = default(int?), int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse> TimesGetWithHttpInfo(int? shipcallId = default(int?), int operationIndex = 0) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (shipcallId != null) { - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); } localVarRequestOptions.Operation = "DefaultApi.TimesGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1827,46 +1827,46 @@ namespace BreCalClient.misc.Api /// /// Get all recorded times for a a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of List<Times> public async System.Threading.Tasks.Task> TimesGetAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.ApiResponse> localVarResponse = await TimesGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false); + BreCalClient.......misc.Client.ApiResponse> localVarResponse = await TimesGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// /// Get all recorded times for a a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// **Id**. *Example: 42*. Id of referenced ship call. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<Times>) - public async System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (shipcallId != null) { - localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); + localVarRequestOptions.QueryParameters.Add(BreCalClient.......misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId)); } localVarRequestOptions.Operation = "DefaultApi.TimesGet"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1890,7 +1890,7 @@ namespace BreCalClient.misc.Api /// /// Create a new times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// @@ -1901,18 +1901,18 @@ namespace BreCalClient.misc.Api /// /// Create a new times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// ApiResponse of Object(void) - public BreCalClient.misc.Client.ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0) { // verify the required parameter 'times' is set if (times == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1920,12 +1920,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -1953,7 +1953,7 @@ namespace BreCalClient.misc.Api /// /// Create a new times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -1965,19 +1965,19 @@ namespace BreCalClient.misc.Api /// /// Create a new times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. **Do not** provide id parameter. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'times' is set if (times == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPost"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPost"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -1985,12 +1985,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -2018,7 +2018,7 @@ namespace BreCalClient.misc.Api /// /// Update a times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// @@ -2029,18 +2029,18 @@ namespace BreCalClient.misc.Api /// /// Update a times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// ApiResponse of Object(void) - public BreCalClient.misc.Client.ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0) + public BreCalClient.......misc.Client.ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0) { // verify the required parameter 'times' is set if (times == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPut"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPut"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -2048,12 +2048,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -2081,7 +2081,7 @@ namespace BreCalClient.misc.Api /// /// Update a times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. @@ -2093,19 +2093,19 @@ namespace BreCalClient.misc.Api /// /// Update a times entry for a ship call /// - /// Thrown when fails to make API call + /// Thrown when fails to make API call /// Times entry that will be added to the ship call. The id parameter is **required**. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'times' is set if (times == null) { - throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPut"); + throw new BreCalClient.......misc.Client.ApiException(400, "Missing required parameter 'times' when calling DefaultApi->TimesPut"); } - BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions(); + BreCalClient.......misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.......misc.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/json" }; @@ -2113,12 +2113,12 @@ namespace BreCalClient.misc.Api string[] _accepts = new string[] { "application/json" }; - var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarContentType = BreCalClient.......misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } - var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts); + var localVarAccept = BreCalClient.......misc.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); @@ -2155,7 +2155,7 @@ namespace BreCalClient.misc.Api * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. @@ -2192,10 +2192,10 @@ namespace BreCalClient.misc.Client /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is BreCalClient.misc.Model.AbstractOpenAPISchema) + if (obj != null && obj is BreCalClient.......misc.Model.AbstractOpenAPISchema) { // the object to be serialized is an oneOf/anyOf schema - return ((BreCalClient.misc.Model.AbstractOpenAPISchema)obj).ToJson(); + return ((BreCalClient.......misc.Model.AbstractOpenAPISchema)obj).ToJson(); } else { @@ -2314,7 +2314,7 @@ namespace BreCalClient.misc.Client /// public ApiClient() { - _baseUrl = BreCalClient.misc.Client.GlobalConfiguration.Instance.BasePath; + _baseUrl = BreCalClient.......misc.Client.GlobalConfiguration.Instance.BasePath; } /// /// Initializes a new instance of the @@ -2555,7 +2555,7 @@ namespace BreCalClient.misc.Client response = client.Execute(req); } // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(BreCalClient.misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + if (typeof(BreCalClient.......misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { try { @@ -2640,7 +2640,7 @@ namespace BreCalClient.misc.Client response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); } // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(BreCalClient.misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + if (typeof(BreCalClient.......misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); } @@ -2890,7 +2890,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// API Exception @@ -2950,7 +2950,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Provides a non-generic contract for the ApiResponse wrapper. @@ -3090,7 +3090,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Utility functions providing some benefit to API client consumers. @@ -3308,7 +3308,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Represents a set of configuration settings @@ -3741,7 +3741,7 @@ namespace BreCalClient.misc.Client /// public static string ToDebugReport() { - string report = "C# SDK (BreCalClient.misc) Debug Report:\n"; + string report = "C# SDK (BreCalClient.......misc) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 0.3.0\n"; @@ -3815,7 +3815,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// A delegate to ExceptionFactory method @@ -3835,7 +3835,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// provides a compile-time extension point for globally configuring @@ -3892,7 +3892,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Http methods supported by swagger @@ -3925,7 +3925,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Represents configuration aspects required to interact with the API endpoints. @@ -3958,7 +3958,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Contract for Asynchronous RESTful API interactions. @@ -4049,7 +4049,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Represents a readable-only configuration contract. @@ -4157,7 +4157,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Contract for Synchronous RESTful API interactions. @@ -4241,7 +4241,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// A dictionary in which one key has many associated values. @@ -4500,7 +4500,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 @@ -4528,7 +4528,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// A container for generalized request inputs. This type allows consumers to extend the request functionality @@ -4598,7 +4598,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Client +namespace BreCalClient.......misc.Client { /// /// Configuration class to set the polly retry policies to be applied to the requests. @@ -4625,7 +4625,7 @@ namespace BreCalClient.misc.Client * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification @@ -4692,7 +4692,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// Ship berth used for a ship call @@ -4709,7 +4709,8 @@ namespace BreCalClient.misc.Model /// _lock. /// created. /// modified. - public Berth(int id = default(int), string name = default(string), int? participantId = default(int?), bool? _lock = default(bool?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?)) + /// deleted (default to false). + public Berth(int id = default(int), string name = default(string), int? participantId = default(int?), bool? _lock = default(bool?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false) { this.Id = id; this.Name = name; @@ -4717,6 +4718,7 @@ namespace BreCalClient.misc.Model this.Lock = _lock; this.Created = created; this.Modified = modified; + this.Deleted = deleted; } /// /// Gets or Sets Id @@ -4749,6 +4751,11 @@ namespace BreCalClient.misc.Model [DataMember(Name = "modified", EmitDefaultValue = true)] public DateTime? Modified { get; set; } /// + /// Gets or Sets Deleted + /// + [DataMember(Name = "deleted", EmitDefaultValue = true)] + public bool Deleted { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object @@ -4762,6 +4769,7 @@ namespace BreCalClient.misc.Model sb.Append(" Lock: ").Append(Lock).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Modified: ").Append(Modified).Append("\n"); + sb.Append(" Deleted: ").Append(Deleted).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -4822,6 +4830,10 @@ namespace BreCalClient.misc.Model this.Modified == input.Modified || (this.Modified != null && this.Modified.Equals(input.Modified)) + ) && + ( + this.Deleted == input.Deleted || + this.Deleted.Equals(input.Deleted) ); } /// @@ -4854,6 +4866,7 @@ namespace BreCalClient.misc.Model { hashCode = (hashCode * 59) + this.Modified.GetHashCode(); } + hashCode = (hashCode * 59) + this.Deleted.GetHashCode(); return hashCode; } } @@ -4878,7 +4891,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// Credentials @@ -4896,7 +4909,7 @@ namespace BreCalClient.misc.Model /// /// username (required). /// password (required). - public Credentials(Object username = default(Object), Object password = default(Object)) + public Credentials(string username = default(string), string password = default(string)) { // to ensure "username" is required (not null) if (username == null) @@ -4915,12 +4928,12 @@ namespace BreCalClient.misc.Model /// Gets or Sets Username /// [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] - public Object Username { get; set; } + public string Username { get; set; } /// /// Gets or Sets Password /// [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] - public Object Password { get; set; } + public string Password { get; set; } /// /// Returns the string presentation of the object /// @@ -5015,7 +5028,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// Error @@ -5131,7 +5144,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// result structure of a successful login attempt @@ -5343,7 +5356,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// a notification created by the engine if a times entry violates a rule @@ -5569,7 +5582,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// A organisational entity that participates in Bremen Calling @@ -5588,7 +5601,8 @@ namespace BreCalClient.misc.Model /// type. /// created. /// modified. - public Participant(int id = default(int), string name = default(string), string street = default(string), string postalCode = default(string), string city = default(string), int type = default(int), DateTime created = default(DateTime), DateTime? modified = default(DateTime?)) + /// deleted (default to false). + public Participant(int id = default(int), string name = default(string), string street = default(string), string postalCode = default(string), string city = default(string), int type = default(int), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false) { this.Id = id; this.Name = name; @@ -5598,6 +5612,7 @@ namespace BreCalClient.misc.Model this.Type = type; this.Created = created; this.Modified = modified; + this.Deleted = deleted; } /// /// Gets or Sets Id @@ -5640,6 +5655,11 @@ namespace BreCalClient.misc.Model [DataMember(Name = "modified", EmitDefaultValue = true)] public DateTime? Modified { get; set; } /// + /// Gets or Sets Deleted + /// + [DataMember(Name = "deleted", EmitDefaultValue = true)] + public bool Deleted { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object @@ -5655,6 +5675,7 @@ namespace BreCalClient.misc.Model sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Modified: ").Append(Modified).Append("\n"); + sb.Append(" Deleted: ").Append(Deleted).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -5724,6 +5745,10 @@ namespace BreCalClient.misc.Model this.Modified == input.Modified || (this.Modified != null && this.Modified.Equals(input.Modified)) + ) && + ( + this.Deleted == input.Deleted || + this.Deleted.Equals(input.Deleted) ); } /// @@ -5761,6 +5786,7 @@ namespace BreCalClient.misc.Model { hashCode = (hashCode * 59) + this.Modified.GetHashCode(); } + hashCode = (hashCode * 59) + this.Deleted.GetHashCode(); return hashCode; } } @@ -5785,7 +5811,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// a ship @@ -5803,9 +5829,13 @@ namespace BreCalClient.misc.Model /// participantId. /// length. /// width. + /// isTug (default to false). + /// bollardPull. + /// eni. /// created. /// modified. - public Ship(int id = default(int), string name = default(string), int imo = default(int), string callsign = default(string), int participantId = default(int), float length = default(float), float width = default(float), DateTime created = default(DateTime), DateTime? modified = default(DateTime?)) + /// deleted (default to false). + public Ship(int id = default(int), string name = default(string), int? imo = default(int?), string callsign = default(string), int? participantId = default(int?), float? length = default(float?), float? width = default(float?), bool isTug = false, int? bollardPull = default(int?), string eni = default(string), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false) { this.Id = id; this.Name = name; @@ -5814,8 +5844,12 @@ namespace BreCalClient.misc.Model this.ParticipantId = participantId; this.Length = length; this.Width = width; + this.IsTug = isTug; + this.BollardPull = bollardPull; + this.Eni = eni; this.Created = created; this.Modified = modified; + this.Deleted = deleted; } /// /// Gets or Sets Id @@ -5831,7 +5865,7 @@ namespace BreCalClient.misc.Model /// Gets or Sets Imo /// [DataMember(Name = "imo", EmitDefaultValue = true)] - public int Imo { get; set; } + public int? Imo { get; set; } /// /// Gets or Sets Callsign /// @@ -5841,17 +5875,32 @@ namespace BreCalClient.misc.Model /// Gets or Sets ParticipantId /// [DataMember(Name = "participant_id", EmitDefaultValue = true)] - public int ParticipantId { get; set; } + public int? ParticipantId { get; set; } /// /// Gets or Sets Length /// [DataMember(Name = "length", EmitDefaultValue = true)] - public float Length { get; set; } + public float? Length { get; set; } /// /// Gets or Sets Width /// [DataMember(Name = "width", EmitDefaultValue = true)] - public float Width { get; set; } + public float? Width { get; set; } + /// + /// Gets or Sets IsTug + /// + [DataMember(Name = "is_tug", EmitDefaultValue = true)] + public bool IsTug { get; set; } + /// + /// Gets or Sets BollardPull + /// + [DataMember(Name = "bollard_pull", EmitDefaultValue = true)] + public int? BollardPull { get; set; } + /// + /// Gets or Sets Eni + /// + [DataMember(Name = "eni", EmitDefaultValue = true)] + public string Eni { get; set; } /// /// Gets or Sets Created /// @@ -5863,6 +5912,11 @@ namespace BreCalClient.misc.Model [DataMember(Name = "modified", EmitDefaultValue = true)] public DateTime? Modified { get; set; } /// + /// Gets or Sets Deleted + /// + [DataMember(Name = "deleted", EmitDefaultValue = true)] + public bool Deleted { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object @@ -5877,8 +5931,12 @@ namespace BreCalClient.misc.Model sb.Append(" ParticipantId: ").Append(ParticipantId).Append("\n"); sb.Append(" Length: ").Append(Length).Append("\n"); sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append(" IsTug: ").Append(IsTug).Append("\n"); + sb.Append(" BollardPull: ").Append(BollardPull).Append("\n"); + sb.Append(" Eni: ").Append(Eni).Append("\n"); sb.Append(" Created: ").Append(Created).Append("\n"); sb.Append(" Modified: ").Append(Modified).Append("\n"); + sb.Append(" Deleted: ").Append(Deleted).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -5922,7 +5980,8 @@ namespace BreCalClient.misc.Model ) && ( this.Imo == input.Imo || - this.Imo.Equals(input.Imo) + (this.Imo != null && + this.Imo.Equals(input.Imo)) ) && ( this.Callsign == input.Callsign || @@ -5931,15 +5990,32 @@ namespace BreCalClient.misc.Model ) && ( this.ParticipantId == input.ParticipantId || - this.ParticipantId.Equals(input.ParticipantId) + (this.ParticipantId != null && + this.ParticipantId.Equals(input.ParticipantId)) ) && ( this.Length == input.Length || - this.Length.Equals(input.Length) + (this.Length != null && + this.Length.Equals(input.Length)) ) && ( this.Width == input.Width || - this.Width.Equals(input.Width) + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.IsTug == input.IsTug || + this.IsTug.Equals(input.IsTug) + ) && + ( + this.BollardPull == input.BollardPull || + (this.BollardPull != null && + this.BollardPull.Equals(input.BollardPull)) + ) && + ( + this.Eni == input.Eni || + (this.Eni != null && + this.Eni.Equals(input.Eni)) ) && ( this.Created == input.Created || @@ -5950,6 +6026,10 @@ namespace BreCalClient.misc.Model this.Modified == input.Modified || (this.Modified != null && this.Modified.Equals(input.Modified)) + ) && + ( + this.Deleted == input.Deleted || + this.Deleted.Equals(input.Deleted) ); } /// @@ -5966,14 +6046,35 @@ namespace BreCalClient.misc.Model { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - hashCode = (hashCode * 59) + this.Imo.GetHashCode(); + if (this.Imo != null) + { + hashCode = (hashCode * 59) + this.Imo.GetHashCode(); + } if (this.Callsign != null) { hashCode = (hashCode * 59) + this.Callsign.GetHashCode(); } - hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode(); - hashCode = (hashCode * 59) + this.Length.GetHashCode(); - hashCode = (hashCode * 59) + this.Width.GetHashCode(); + if (this.ParticipantId != null) + { + hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode(); + } + if (this.Length != null) + { + hashCode = (hashCode * 59) + this.Length.GetHashCode(); + } + if (this.Width != null) + { + hashCode = (hashCode * 59) + this.Width.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsTug.GetHashCode(); + if (this.BollardPull != null) + { + hashCode = (hashCode * 59) + this.BollardPull.GetHashCode(); + } + if (this.Eni != null) + { + hashCode = (hashCode * 59) + this.Eni.GetHashCode(); + } if (this.Created != null) { hashCode = (hashCode * 59) + this.Created.GetHashCode(); @@ -5982,6 +6083,7 @@ namespace BreCalClient.misc.Model { hashCode = (hashCode * 59) + this.Modified.GetHashCode(); } + hashCode = (hashCode * 59) + this.Deleted.GetHashCode(); return hashCode; } } @@ -6006,7 +6108,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// Shipcall @@ -6485,7 +6587,7 @@ namespace BreCalClient.misc.Model * Contact: info@textbausteine.net * Generated by: https://github.com/openapitools/openapi-generator.git */ -namespace BreCalClient.misc.Model +namespace BreCalClient.......misc.Model { /// /// the id parameter needs to be missing on POST and to be present on PUT (Update) calls, otherwise a 400 response will be generated diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml index 254c462..cc73737 100644 --- a/misc/BreCalApi.yaml +++ b/misc/BreCalApi.yaml @@ -294,9 +294,10 @@ components: - password properties: username: - format : string + type : string password: - format : string + type : string + format: password timesId: description: The unique identifier for a times entry type: integer @@ -326,6 +327,7 @@ components: format: date-time voyage: type: string + maxLength: 16 nullable: true etd: type: string @@ -352,7 +354,10 @@ components: bunkering: type: boolean nullable: true - replenishing: + replenishing_terminal: + type: boolean + nullable: true + replenishing_lock: type: boolean nullable: true draft: @@ -373,6 +378,15 @@ components: recommended_tugs: type: integer nullable: true + anchored: + type: boolean + nullable: true + moored_lock: + type: boolean + nullable: true + canceled: + type: boolean + nullable: true participants: type: array items: @@ -400,20 +414,46 @@ components: properties: id: type: integer - start_planned: + eta_berth: type: string format: date-time - end_planned: + nullable: true + eta_berth_fixed: + type: boolean + nullable: true + etd_berth: type: string format: date-time - duration_planned: - type: integer - start_actual: + nullable: true + etd_berth_fixed: + type: boolean + nullable: true + lock_time: type: string format: date-time - end_actual: + nullable: true + lock_time_fixed: + type: boolean + nullable: true + zone_entry: type: string format: date-time + nullable: true + zone_entry_fixed: + type: boolean + nullable: true + operations_start: + type: string + format: date-time + nullable: true + operations_end: + type: string + format: date-time + nullable: true + remarks: + type: string + maxLength: 512 + nullable: true shipcall_id: type: integer participant_id: @@ -439,6 +479,7 @@ components: type: integer name: type: string + maxLength: 128 participant_id: type: integer nullable: true @@ -452,6 +493,9 @@ components: type: string format: date-time nullable: true + deleted: + type: boolean + default: false berth_list: type: array @@ -466,18 +510,34 @@ components: type: integer name: type: string + maxLength: 64 imo: type: integer + nullable: true callsign: type: string + maxLength: 8 + nullable: true participant_id: type: integer + nullable: true length: type: number format: float + nullable: true width: type: number format: float + nullable: true + is_tug: + type: boolean + default: false + bollard_pull: + type: integer + nullable: true + eni: + type: integer + nullable: true created: type: string format: date-time @@ -485,6 +545,9 @@ components: type: string format: date-time nullable: true + deleted: + type: boolean + default: false ship_list: type: array @@ -530,12 +593,16 @@ components: type: integer name: type: string + maxLength: 128 street: type: string + maxLength: 128 postal code: type: string + maxLength: 5 city: type: string + maxLength: 64 type: type: integer created: @@ -545,6 +612,9 @@ components: type: string format: date-time nullable: true + deleted: + type: boolean + default: false participant_list: type: array diff --git a/misc/create_schema.sql b/misc/create_schema.sql index 46c31d2..5fd7f9a 100644 --- a/misc/create_schema.sql +++ b/misc/create_schema.sql @@ -1,24 +1,232 @@ -CREATE DATABASE `bremen_calling` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server Version: 8.0.34-0ubuntu0.22.04.1 - (Ubuntu) +-- Server Betriebssystem: Linux +-- HeidiSQL Version: 10.2.0.5599 +-- -------------------------------------------------------- -USE `bremen_calling` +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -CREATE TABLE `participant` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, +-- Exportiere Struktur von Tabelle bremen_calling.berth +CREATE TABLE IF NOT EXISTS `berth` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(128) DEFAULT NULL COMMENT 'Descriptive name', + `participant_id` int unsigned DEFAULT NULL COMMENT 'If berth belongs to a participant, reference it here', + `lock` bit(1) DEFAULT NULL COMMENT 'The lock must be used', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `deleted` bit(1) DEFAULT b'0', + PRIMARY KEY (`id`), + KEY `FK_BERTH_PART` (`participant_id`), + CONSTRAINT `FK_BERTH_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Berth of ship for a ship call'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.notification +CREATE TABLE IF NOT EXISTS `notification` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `times_id` int unsigned NOT NULL COMMENT 'times record that caused the notification', + `participant_id` int unsigned NOT NULL COMMENT 'participant ref', + `acknowledged` bit(1) DEFAULT b'0' COMMENT 'true if UI acknowledged', + `level` tinyint DEFAULT NULL COMMENT 'severity of the notification', + `type` tinyint DEFAULT NULL COMMENT 'Email/UI/Other', + `message` varchar(256) DEFAULT NULL COMMENT 'individual message', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_NOT_TIMES` (`times_id`), + KEY `FK_NOT_PART` (`participant_id`), + CONSTRAINT `FK_NOT_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`), + CONSTRAINT `FK_NOT_TIMES` FOREIGN KEY (`times_id`) REFERENCES `times` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='An entry corresponds to an alarm given by a violated rule during times update'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.participant +CREATE TABLE IF NOT EXISTS `participant` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL, `street` varchar(128) DEFAULT NULL, `postal_code` varchar(5) DEFAULT NULL, `city` varchar(64) DEFAULT NULL, - `type` int(10) DEFAULT NULL, - `flags` int(10) unsigned DEFAULT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), + `type` int DEFAULT NULL, + `flags` int unsigned DEFAULT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `deleted` bit(1) DEFAULT b'0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='An organization taking part'; +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='An organization taking part'; +-- Daten Export vom Benutzer nicht ausgewählt -CREATE TABLE `user` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `participant_id` int(11) UNSIGNED DEFAULT NULL, +-- Exportiere Struktur von Tabelle bremen_calling.role +CREATE TABLE IF NOT EXISTS `role` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(50) NOT NULL DEFAULT '0' COMMENT 'unique role name', + `description` varchar(255) DEFAULT '0' COMMENT 'role description', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='logical group of securables for one or more user'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.role_securable_map +CREATE TABLE IF NOT EXISTS `role_securable_map` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `role_id` int unsigned NOT NULL, + `securable_id` int unsigned NOT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_ROLE_SECURABLE` (`role_id`), + KEY `FK_SECURABLE_ROLE` (`securable_id`), + CONSTRAINT `FK_ROLE_SECURABLE` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`), + CONSTRAINT `FK_SECURABLE_ROLE` FOREIGN KEY (`securable_id`) REFERENCES `securable` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Assigns securables to roles'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.securable +CREATE TABLE IF NOT EXISTS `securable` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(50) NOT NULL DEFAULT '', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Actual permission on a single(!) feature or operation'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.ship +CREATE TABLE IF NOT EXISTS `ship` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(64) DEFAULT NULL, + `imo` int DEFAULT NULL, + `callsign` varchar(8) DEFAULT NULL, + `participant_id` int unsigned DEFAULT NULL, + `length` float DEFAULT NULL, + `width` float DEFAULT NULL, + `is_tug` bit(1) DEFAULT b'0', + `bollard_pull` int DEFAULT NULL, + `eni` int DEFAULT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `deleted` bit(1) DEFAULT b'0', + PRIMARY KEY (`id`), + KEY `FK_SHIP_PARTICIPANT` (`participant_id`), + CONSTRAINT `FK_SHIP_PARTICIPANT` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.shipcall +CREATE TABLE IF NOT EXISTS `shipcall` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `ship_id` int unsigned DEFAULT NULL, + `type` tinyint DEFAULT NULL, + `eta` datetime DEFAULT NULL, + `voyage` varchar(16) DEFAULT NULL, + `etd` datetime DEFAULT NULL, + `arrival_berth_id` int unsigned DEFAULT NULL, + `departure_berth_id` int unsigned DEFAULT NULL, + `tug_required` bit(1) DEFAULT NULL, + `pilot_required` bit(1) DEFAULT NULL, + `flags` int unsigned DEFAULT '0', + `pier_side` bit(1) DEFAULT NULL, + `bunkering` bit(1) DEFAULT NULL, + `replenishing_terminal` bit(1) DEFAULT NULL, + `replenishing_lock` bit(1) DEFAULT NULL, + `draft` float DEFAULT NULL, + `tidal_window_from` datetime DEFAULT NULL, + `tidal_window_to` datetime DEFAULT NULL, + `rain_sensitive_cargo` bit(1) DEFAULT b'0', + `recommended_tugs` int DEFAULT '0', + `anchored` bit(1) DEFAULT NULL, + `moored_lock` bit(1) DEFAULT NULL, + `canceled` bit(1) DEFAULT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_SHIPCALL_SHIP` (`ship_id`), + KEY `FK_SHIPCALL_BERTH_ARRIVAL` (`arrival_berth_id`), + KEY `FK_SHIPCALL_BERTH_DEPARTURE` (`departure_berth_id`), + CONSTRAINT `FK_SHIPCALL_BERTH_ARRIVAL` FOREIGN KEY (`arrival_berth_id`) REFERENCES `berth` (`id`), + CONSTRAINT `FK_SHIPCALL_BERTH_DEPARTURE` FOREIGN KEY (`departure_berth_id`) REFERENCES `berth` (`id`), + CONSTRAINT `FK_SHIPCALL_SHIP` FOREIGN KEY (`ship_id`) REFERENCES `ship` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Incoming, outgoing or moving to another berth'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.shipcall_participant_map +CREATE TABLE IF NOT EXISTS `shipcall_participant_map` ( + `id` int NOT NULL AUTO_INCREMENT, + `shipcall_id` int unsigned DEFAULT NULL, + `participant_id` int unsigned DEFAULT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_MAP_PARTICIPANT_SHIPCALL` (`shipcall_id`), + KEY `FK_MAP_SHIPCALL_PARTICIPANT` (`participant_id`), + CONSTRAINT `FK_MAP_PARTICIPANT_SHIPCALL` FOREIGN KEY (`shipcall_id`) REFERENCES `shipcall` (`id`), + CONSTRAINT `FK_MAP_SHIPCALL_PARTICIPANT` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Associates a participant with a shipcall'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.shipcall_tug_map +CREATE TABLE IF NOT EXISTS `shipcall_tug_map` ( + `id` int NOT NULL AUTO_INCREMENT, + `shipcall_id` int unsigned NOT NULL COMMENT 'Ref to ship call', + `ship_id` int unsigned NOT NULL COMMENT 'Ref to ship (that is a tug)', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_SCT_SHIP` (`ship_id`), + KEY `FK_SCT_SHIPCALL` (`shipcall_id`), + CONSTRAINT `FK_SCT_SHIP` FOREIGN KEY (`ship_id`) REFERENCES `ship` (`id`), + CONSTRAINT `FK_SCT_SHIPCALL` FOREIGN KEY (`shipcall_id`) REFERENCES `shipcall` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Mapping table that assigns tugs to a ship call'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.times +CREATE TABLE IF NOT EXISTS `times` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `eta_berth` datetime DEFAULT NULL, + `eta_berth_fixed` bit(1) DEFAULT NULL, + `etd_berth` datetime DEFAULT NULL, + `etd_berth_fixed` bit(1) DEFAULT NULL, + `lock_time` datetime DEFAULT NULL, + `lock_time_fixed` bit(1) DEFAULT NULL, + `zone_entry` datetime DEFAULT NULL, + `zone_entry_fixed` bit(1) DEFAULT NULL, + `operations_start` datetime DEFAULT NULL, + `operations_end` datetime DEFAULT NULL, + `remarks` varchar(512) DEFAULT NULL, + `shipcall_id` int unsigned NOT NULL, + `participant_id` int unsigned NOT NULL, + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `FK_TIME_SHIPCALL` (`shipcall_id`), + KEY `FK_TIME_PART` (`participant_id`), + CONSTRAINT `FK_TIME_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='the planned time for the participants work'; + +-- Daten Export vom Benutzer nicht ausgewählt + +-- Exportiere Struktur von Tabelle bremen_calling.user +CREATE TABLE IF NOT EXISTS `user` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `participant_id` int unsigned DEFAULT NULL, `first_name` varchar(45) DEFAULT NULL, `last_name` varchar(45) DEFAULT NULL, `user_name` varchar(45) DEFAULT NULL, @@ -26,185 +234,31 @@ CREATE TABLE `user` ( `user_phone` varchar(128) DEFAULT NULL, `password_hash` varchar(128) DEFAULT NULL, `api_key` varchar(256) DEFAULT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - INDEX `FK_USER_PART` (`participant_id`), + KEY `FK_USER_PART` (`participant_id`), CONSTRAINT `FK_USER_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='member of a participant'; +) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='member of a participant'; +-- Daten Export vom Benutzer nicht ausgewählt -CREATE TABLE `berth` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `name` VARCHAR(128) NULL DEFAULT NULL COMMENT 'Descriptive name', - `participant_id` INT(10) UNSIGNED NULL DEFAULT NULL COMMENT 'If berth belongs to a participant, reference it here', - `lock` BIT(1) NULL DEFAULT NULL COMMENT 'The lock must be used', - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_BERTH_PART` (`participant_id`), - CONSTRAINT `FK_BERTH_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) -) COMMENT='Berth of ship for a ship call' ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - - -CREATE TABLE `ship` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(45) DEFAULT NULL, - `imo` int(11) DEFAULT NULL, - `callsign` varchar(8) DEFAULT NULL, - `participant_id` INT(11) UNSIGNED NULL DEFAULT NULL, - `length` FLOAT NULL DEFAULT NULL, - `width` FLOAT NULL DEFAULT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), +-- Exportiere Struktur von Tabelle bremen_calling.user_role_map +CREATE TABLE IF NOT EXISTS `user_role_map` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `user_id` int unsigned NOT NULL DEFAULT '0', + `role_id` int unsigned NOT NULL DEFAULT '0', + `created` datetime DEFAULT CURRENT_TIMESTAMP, + `modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), - INDEX `FK_SHIP_PARTICIPANT` (`participant_id`), - CONSTRAINT `FK_SHIP_PARTICIPANT` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + KEY `FK_USER_ROLE` (`user_id`), + KEY `FK_ROLE_USER` (`role_id`), + CONSTRAINT `FK_ROLE_USER` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`), + CONSTRAINT `FK_USER_ROLE` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='Assigns a user to a role'; +-- Daten Export vom Benutzer nicht ausgewählt -CREATE TABLE `shipcall` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `ship_id` INT(11) UNSIGNED NULL DEFAULT NULL, - `type` TINYINT(4) NULL DEFAULT NULL, - `eta` DATETIME NULL DEFAULT NULL, - `voyage` VARCHAR(16) NULL DEFAULT NULL, - `etd` DATETIME NULL DEFAULT NULL, - `arrival_berth_id` INT(10) UNSIGNED NULL DEFAULT NULL, - `departure_berth_id` INT(10) UNSIGNED NULL DEFAULT NULL, - `tug_required` BIT(1) NULL DEFAULT NULL, - `pilot_required` BIT(1) NULL DEFAULT NULL, - `flags` INT(10) UNSIGNED NULL DEFAULT 0, - `pier_side` BIT(1) NULL DEFAULT NULL, - `bunkering` BIT(1) NULL DEFAULT NULL, - `replenishing` BIT(1) NULL DEFAULT NULL, - `draft` FLOAT NULL DEFAULT NULL, - `tidal_window_from` DATETIME NULL DEFAULT NULL, - `tidal_window_to` DATETIME NULL DEFAULT NULL, - `rain_sensitive_cargo` BIT(1) NULL DEFAULT b'0', - `recommended_tugs` INT(11) NULL DEFAULT 0, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_SHIPCALL_SHIP` (`ship_id`), - INDEX `FK_SHIPCALL_BERTH_ARRIVAL` (`arrival_berth_id`), - INDEX `FK_SHIPCALL_BERTH_DEPARTURE` (`departure_berth_id`), - CONSTRAINT `FK_SHIPCALL_BERTH_ARRIVAL` FOREIGN KEY (`arrival_berth_id`) REFERENCES `berth` (`id`), - CONSTRAINT `FK_SHIPCALL_BERTH_DEPARTURE` FOREIGN KEY (`departure_berth_id`) REFERENCES `berth` (`id`), - CONSTRAINT `FK_SHIPCALL_SHIP` FOREIGN KEY (`ship_id`) REFERENCES `ship` (`id`) -) COMMENT='Incoming, outgoing or moving to another berth' ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - - -CREATE TABLE `times` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `start_planned` datetime DEFAULT NULL, - `end_planned` datetime DEFAULT NULL, - `duration_planned` int(11) DEFAULT NULL, - `start_actual` datetime DEFAULT NULL, - `end_actual` datetime DEFAULT NULL, - `duration_actual` int(11) DEFAULT NULL, - `shipcall_id` int(11) UNSIGNED DEFAULT NULL, - `participant_id` int(11) UNSIGNED DEFAULT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_TIME_SHIPCALL` (`shipcall_id`), - INDEX `FK_TIME_PART` (`participant_id`), - CONSTRAINT `FK_TIME_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`), - CONSTRAINT `FK_TIME_SHIPCALL` FOREIGN KEY (`shipcall_id`) REFERENCES `shipcall` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='the planned time for the participants work'; - - -CREATE TABLE `shipcall_participant_map` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shipcall_id` int(10) unsigned DEFAULT NULL, - `participant_id` int(10) unsigned DEFAULT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_MAP_PARTICIPANT_SHIPCALL` (`shipcall_id`), - INDEX `FK_MAP_SHIPCALL_PARTICIPANT` (`participant_id`), - CONSTRAINT `FK_MAP_PARTICIPANT_SHIPCALL` FOREIGN KEY (`shipcall_id`) REFERENCES `shipcall` (`id`), - CONSTRAINT `FK_MAP_SHIPCALL_PARTICIPANT` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Associates a participant with a shipcall'; - - -CREATE TABLE `shipcall_tug_map` ( - `id` INT(11) NOT NULL AUTO_INCREMENT, - `shipcall_id` INT(11) UNSIGNED NOT NULL COMMENT 'Ref to ship call', - `ship_id` INT(11) UNSIGNED NOT NULL COMMENT 'Ref to ship (that is a tug)', - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_SCT_SHIP` (`ship_id`), - INDEX `FK_SCT_SHIPCALL` (`shipcall_id`), - CONSTRAINT `FK_SCT_SHIP` FOREIGN KEY (`ship_id`) REFERENCES `ship` (`id`), - CONSTRAINT `FK_SCT_SHIPCALL` FOREIGN KEY (`shipcall_id`) REFERENCES `shipcall` (`id`) -) COMMENT='Mapping table that assigns tugs to a ship call' ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - - -CREATE TABLE `notification` ( - `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `times_id` INT(11) UNSIGNED NOT NULL COMMENT 'times record that caused the notification', - `participant_id` INT(11) UNSIGNED NOT NULL COMMENT 'participant ref', - `acknowledged` BIT(1) NULL DEFAULT b'0' COMMENT 'true if UI acknowledged', - `level` TINYINT(4) NULL DEFAULT NULL COMMENT 'severity of the notification', - `type` TINYINT(4) NULL DEFAULT NULL COMMENT 'Email/UI/Other', - `message` VARCHAR(256) NULL DEFAULT NULL COMMENT 'individual message', - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_NOT_TIMES` (`times_id`), - INDEX `FK_NOT_PART` (`participant_id`), - CONSTRAINT `FK_NOT_PART` FOREIGN KEY (`participant_id`) REFERENCES `participant` (`id`), - CONSTRAINT `FK_NOT_TIMES` FOREIGN KEY (`times_id`) REFERENCES `times` (`id`) -) COMMENT='An entry corresponds to an alarm given by a violated rule during times update' ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; - - -CREATE TABLE `role` ( - `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `name` VARCHAR(50) NOT NULL DEFAULT '0' COMMENT 'unique role name', - `description` VARCHAR(255) NULL DEFAULT '0' COMMENT 'role description', - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - UNIQUE INDEX `name` (`name`) -) COMMENT='logical group of securables for one or more user' DEFAULT CHARSET=utf8mb4 ENGINE=InnoDB; - - -CREATE TABLE `securable` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `name` VARCHAR(50) NOT NULL DEFAULT '', - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - UNIQUE INDEX `name` (`name`) -) COMMENT='Actual permission on a single(!) feature or operation' DEFAULT CHARSET=utf8mb4 ENGINE=InnoDB; - - -CREATE TABLE `user_role_map` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `user_id` INT(10) UNSIGNED NOT NULL DEFAULT 0, - `role_id` INT(10) UNSIGNED NOT NULL DEFAULT 0, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_USER_ROLE` (`user_id`), - INDEX `FK_ROLE_USER` (`role_id`), - CONSTRAINT `FK_ROLE_USER` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`), - CONSTRAINT `FK_USER_ROLE` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) -) COMMENT='Assigns a user to a role' DEFAULT CHARSET=utf8mb4 ENGINE=InnoDB; - - -CREATE TABLE `role_securable_map` ( - `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, - `role_id` INT(10) UNSIGNED NOT NULL, - `securable_id` INT(10) UNSIGNED NOT NULL, - `created` DATETIME NULL DEFAULT current_timestamp(), - `modified` DATETIME NULL DEFAULT NULL ON UPDATE current_timestamp(), - PRIMARY KEY (`id`), - INDEX `FK_ROLE_SECURABLE` (`role_id`), - INDEX `FK_SECURABLE_ROLE` (`securable_id`), - CONSTRAINT `FK_ROLE_SECURABLE` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`), - CONSTRAINT `FK_SECURABLE_ROLE` FOREIGN KEY (`securable_id`) REFERENCES `securable` (`id`) -) COMMENT='Assigns securables to roles' DEFAULT CHARSET=utf8mb4 ENGINE=InnoDB; +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/misc/sample_data.sql b/misc/sample_data.sql index 986d8f7..8e75954 100644 --- a/misc/sample_data.sql +++ b/misc/sample_data.sql @@ -1,140 +1,136 @@ --- MySQL dump 10.19 Distrib 10.3.38-MariaDB, for debian-linux-gnueabihf (armv8l) --- --- Host: localhost Database: bremen_calling --- ------------------------------------------------------ --- Server version 10.3.38-MariaDB-0+deb10u1 +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server Version: 8.0.34-0ubuntu0.22.04.1 - (Ubuntu) +-- Server Betriebssystem: Linux +-- HeidiSQL Version: 10.2.0.5599 +-- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8mb4 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; --- --- Dumping data for table `berth` --- - -USE `bremen_calling`; - -LOCK TABLES `berth` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.berth: ~3 rows (ungefähr) /*!40000 ALTER TABLE `berth` DISABLE KEYS */; -INSERT INTO `berth` (`id`, `name`) VALUES (1,'Roland Mühle'),(2,'Stahlwerk'),(3,'Kellogs'); +INSERT INTO `berth` (`id`, `name`, `participant_id`, `lock`, `created`, `modified`, `deleted`) VALUES + (1, 'Roland Mühle', NULL, NULL, '2023-06-26 14:01:40', NULL, b'0'), + (2, 'Stahlwerk', NULL, NULL, '2023-06-26 14:01:40', NULL, b'0'), + (3, 'Kellogs', NULL, NULL, '2023-06-26 14:01:40', NULL, b'0'); /*!40000 ALTER TABLE `berth` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `notification` --- - -LOCK TABLES `notification` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.notification: ~0 rows (ungefähr) /*!40000 ALTER TABLE `notification` DISABLE KEYS */; /*!40000 ALTER TABLE `notification` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `participant` --- - -LOCK TABLES `participant` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.participant: ~11 rows (ungefähr) /*!40000 ALTER TABLE `participant` DISABLE KEYS */; -INSERT INTO `participant` (`id`, `name`, `street`, `postal_code`, `city`, `type`, `flags`, `created`, `modified`) VALUES (1,'Schick Informatik','Gottlieb-Daimler-Str. 8','73614','Schorndorf',1,42,'2023-04-17 07:18:19',NULL); +INSERT INTO `participant` (`id`, `name`, `street`, `postal_code`, `city`, `type`, `flags`, `created`, `modified`, `deleted`) VALUES + (1, 'Schick Informatik', 'Gottlieb-Daimler-Str. 8', '73614', 'Schorndorf', 1, 42, '2023-04-17 07:18:19', '2023-08-07 11:35:37', b'0'), + (2, 'Lotsenbrüderschaft Weser 1', '', '', '', 4, 0, '2023-08-10 07:07:41', NULL, b'0'), + (3, 'Bremer Schiffsmeldedienst', 'Hafenkopf II / Überseetor 20', '28217', 'Bremen', 1, 0, '2023-08-10 07:11:10', NULL, b'0'), + (4, 'BLG Cargo Logistics GmbH', '', '', '', 2, 0, '2023-08-10 07:14:40', NULL, b'0'), + (5, 'Schiffsmakler-Verband für Küsten und Seeschiffsbefrachter e.V.', '', '', '', 8, 0, '2023-08-10 07:15:56', NULL, b'0'), + (6, 'RMS Rhenus Maritime Services GmbH', '', '', '', 8, 0, '2023-08-10 07:19:29', NULL, b'0'), + (7, 'J.MÜLLER Weser GmbH & Co. KG', '', '', '', 10, 0, '2023-08-10 07:21:43', '2023-08-10 08:47:59', b'0'), + (8, 'Schiffahrtskontor Detra GmbH & Co.KG', '', '', '', 8, 0, '2023-08-10 07:23:04', NULL, b'0'), + (9, 'Boluda Deutschland GmbH', '', '', '', 64, 0, '2023-08-10 07:24:18', NULL, b'0'), + (10, 'Weserport GmbH', '', '', '', 10, 0, '2023-08-10 07:26:42', '2023-08-10 08:48:19', b'0'), + (11, 'Port Authority Bremen', '', '', '', 32, 0, '2023-08-10 07:28:11', NULL, b'0'); /*!40000 ALTER TABLE `participant` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `role` --- - -LOCK TABLES `role` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.role: ~2 rows (ungefähr) /*!40000 ALTER TABLE `role` DISABLE KEYS */; -INSERT INTO `role` (`id`, `name`, `description`, `created`, `modified`) VALUES (1,'My first role','A very good description','2023-04-17 07:31:57',NULL),(2,'Another role','This role is very nice as well','2023-04-17 07:32:12',NULL); +INSERT INTO `role` (`id`, `name`, `description`, `created`, `modified`) VALUES + (1, 'My first role', 'A very good description', '2023-04-17 07:31:57', NULL), + (2, 'Another role', 'This role is very nice as well', '2023-04-17 07:32:12', NULL); /*!40000 ALTER TABLE `role` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `role_securable_map` --- - -LOCK TABLES `role_securable_map` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.role_securable_map: ~0 rows (ungefähr) /*!40000 ALTER TABLE `role_securable_map` DISABLE KEYS */; /*!40000 ALTER TABLE `role_securable_map` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `securable` --- - -LOCK TABLES `securable` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.securable: ~2 rows (ungefähr) /*!40000 ALTER TABLE `securable` DISABLE KEYS */; -INSERT INTO `securable` (`id`, `name`, `created`, `modified`) VALUES (1,'First secure thing','2023-04-17 07:38:12',NULL),(2,'Another secure thing','2023-04-17 07:38:22',NULL); +INSERT INTO `securable` (`id`, `name`, `created`, `modified`) VALUES + (1, 'First secure thing', '2023-04-17 07:38:12', NULL), + (2, 'Another secure thing', '2023-04-17 07:38:22', NULL); /*!40000 ALTER TABLE `securable` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `ship` --- - -LOCK TABLES `ship` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.ship: ~2 rows (ungefähr) /*!40000 ALTER TABLE `ship` DISABLE KEYS */; +INSERT INTO `ship` (`id`, `name`, `imo`, `callsign`, `participant_id`, `length`, `width`, `is_tug`, `bollard_pull`, `eni`, `created`, `modified`, `deleted`) VALUES + (1, 'Dicke Berta', 1234567, 'DEBE', 1, 100, 20, b'0', NULL, NULL, '2023-06-27 10:43:02', NULL, b'0'), + (2, 'Maersk Neston', 9632167, '9V3532', 1, 210.07, 30.2, b'0', NULL, NULL, '2023-07-27 12:34:13', NULL, b'0'); /*!40000 ALTER TABLE `ship` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `shipcall` --- - -LOCK TABLES `shipcall` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.shipcall: ~8 rows (ungefähr) /*!40000 ALTER TABLE `shipcall` DISABLE KEYS */; +INSERT INTO `shipcall` (`id`, `ship_id`, `type`, `eta`, `voyage`, `etd`, `arrival_berth_id`, `departure_berth_id`, `tug_required`, `pilot_required`, `flags`, `pier_side`, `bunkering`, `replenishing_terminal`, `replenishing_lock`, `draft`, `tidal_window_from`, `tidal_window_to`, `rain_sensitive_cargo`, `recommended_tugs`, `anchored`, `moored_lock`, `canceled`, `created`, `modified`) VALUES + (3, 1, 1, '2023-08-13 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 3, NULL, NULL, NULL, '2023-06-27 11:03:28', '2023-08-07 15:19:56'), + (4, 2, 1, '2023-08-14 10:43:02', '43', NULL, NULL, NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'0', 0, NULL, NULL, NULL, '2023-07-27 12:36:49', '2023-08-07 15:19:56'), + (5, 1, 1, '2023-07-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 2, NULL, NULL, NULL, '2023-08-11 15:11:50', NULL), + (6, 1, 1, '2023-07-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 2, NULL, NULL, NULL, '2023-08-11 15:11:53', NULL), + (7, 1, 1, '2023-07-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 2, NULL, NULL, NULL, '2023-08-13 12:12:34', NULL), + (8, 1, 1, '2023-07-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 2, NULL, NULL, NULL, '2023-08-13 12:14:52', NULL), + (9, 1, 1, '2023-07-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 2, NULL, NULL, NULL, '2023-08-13 12:17:09', NULL), + (10, 1, 1, '2023-08-23 07:18:19', '43B', NULL, NULL, NULL, b'0', b'1', 0, b'0', b'1', NULL, NULL, NULL, NULL, NULL, b'0', 3, NULL, NULL, NULL, '2023-08-14 07:55:48', '2023-08-14 07:56:52'); /*!40000 ALTER TABLE `shipcall` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `shipcall_participant_map` --- - -LOCK TABLES `shipcall_participant_map` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.shipcall_participant_map: ~6 rows (ungefähr) /*!40000 ALTER TABLE `shipcall_participant_map` DISABLE KEYS */; +INSERT INTO `shipcall_participant_map` (`id`, `shipcall_id`, `participant_id`, `created`, `modified`) VALUES + (1, 3, 2, '2023-08-11 15:01:23', NULL), + (2, 3, 4, '2023-08-11 15:01:29', NULL), + (3, 9, 2, '2023-08-13 12:17:17', NULL), + (4, 9, 4, '2023-08-13 12:17:18', NULL), + (24, 10, 3, '2023-08-14 08:48:30', NULL), + (26, 10, 9, '2023-08-14 09:03:29', NULL); /*!40000 ALTER TABLE `shipcall_participant_map` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `times` --- +-- Exportiere Daten aus Tabelle bremen_calling.shipcall_tug_map: ~0 rows (ungefähr) +/*!40000 ALTER TABLE `shipcall_tug_map` DISABLE KEYS */; +/*!40000 ALTER TABLE `shipcall_tug_map` ENABLE KEYS */; -LOCK TABLES `times` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.times: ~0 rows (ungefähr) /*!40000 ALTER TABLE `times` DISABLE KEYS */; +INSERT INTO `times` (`id`, `eta_berth`, `eta_berth_fixed`, `etd_berth`, `etd_berth_fixed`, `lock_time`, `lock_time_fixed`, `zone_entry`, `zone_entry_fixed`, `operations_start`, `operations_end`, `remarks`, `shipcall_id`, `participant_id`, `created`, `modified`) VALUES + (1, '2023-05-18 07:18:19', NULL, '2023-05-18 09:18:19', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 1, '2023-06-27 11:05:01', '2023-06-27 11:05:30'); /*!40000 ALTER TABLE `times` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `user` --- - -LOCK TABLES `user` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.user: ~21 rows (ungefähr) /*!40000 ALTER TABLE `user` DISABLE KEYS */; -INSERT INTO `user` (`id`, `participant_id`, `first_name`, `last_name`, `user_name`, `password_hash`, `api_key`, `created`, `modified`) VALUES (1,1,'Daniel','Schick','dani',NULL,'0815','2023-04-17 07:15:41',NULL); +INSERT INTO `user` (`id`, `participant_id`, `first_name`, `last_name`, `user_name`, `user_email`, `user_phone`, `password_hash`, `api_key`, `created`, `modified`) VALUES + (1, 1, 'Daniel', 'Schick', 'dani', NULL, NULL, '$2b$12$qfjw4b3XvGuu0t6HR8OYGOzF5b8gmC6PyIIBNbIXMXEayJunEEKmi', '0815', '2023-04-17 07:15:41', '2023-08-11 11:11:34'), + (2, 1, 'Londo', 'Mollari', 'Londo', 'l.mollari@centauri.gov', '+01 555 324 2313', '$2b$12$VwmwvO2dxlOixWc1HjX3j.753SDJTMR.o7av/bVGTM2tLW2jQT0yy', NULL, '2023-06-27 08:34:55', NULL), + (3, 2, 'Maik', 'Baudeck', 'maikb', NULL, NULL, '$2b$12$4SxGRlinOrpEVvqDZcE.wOusMZYsepdc6vj1vDpNhbPtApxU8VGPi', '', '2023-08-10 07:09:35', '2023-08-11 11:11:55'), + (4, 3, 'Christin', 'Hollmann', 'christinh', NULL, NULL, '$2b$12$ul0QJmcuUhktDYDjcyEpx.6yY1ieLdaCxZ6a3SFSuTq94IqK4Y/re', '', '2023-08-10 07:12:05', '2023-08-11 11:10:33'), + (5, 3, 'Bastian', 'Güttner', 'bastiang', NULL, NULL, '$2b$12$0oCX3c2WyMykmxMoLqmpNubke713xhYlEEQgnxBV6Fj/TaUn.3/U6', '', '2023-08-10 07:12:26', '2023-08-11 11:11:13'), + (6, 3, 'Benjamin', 'Wiese', 'benjaminw', NULL, NULL, '$2b$12$RRj32KdLIf3D7z7cVWFqa.yZM5.ODOS0HqU3rdCuFrJS8HJ/rtqwy', '', '2023-08-10 07:13:01', '2023-08-11 11:11:16'), + (7, 1, 'Sladjan', 'Veselinovic', 'sladjanv', NULL, NULL, '$2b$12$4DctoCbZwxTvE39lXNRzneQ2kb/lXlJ5wEZ1CGbbw.rGM3nuAYjpa', '', '2023-08-10 07:13:39', '2023-08-11 11:11:45'), + (8, 1, 'Kersten', 'Gevers', 'kersteng', NULL, NULL, '$2b$12$zKX8iLPnXRmp5wD1Yp8P7e..U9R0A4ytbiMjd.l.IGkMzahcHPNWq', '', '2023-08-10 07:13:59', '2023-08-11 11:11:49'), + (9, 4, 'Dirk', 'Brunnert', 'dirkb', NULL, NULL, '$2b$12$HTeq/Fdfse6oElk7DLsQae5dtvWJloee.VtBH.THsj2kdcxxBkCDW', '', '2023-08-10 07:15:01', '2023-08-11 11:12:01'), + (10, 5, 'Thorsten', 'Fischer', 'thorstenf', NULL, NULL, '$2b$12$NHEpTNHuKU4ruPRIfd9yc.yv5faHGemFfRI3TISniqM7QNqHiyZpK', '', '2023-08-10 07:16:20', '2023-08-11 11:12:07'), + (11, 6, 'Lisa', 'Friedhoff', 'lisaf', NULL, NULL, '$2b$12$DJKJHGrQwfY9pwzgFfPds.DHGsygHyV3KDs38Hq4AUHPPs3jBPH3y', '', '2023-08-10 07:19:52', '2023-08-11 11:12:12'), + (12, 6, 'Dario', 'Fritschi', 'dariof', NULL, NULL, '$2b$12$MwCVTMQkN6zCAzCsE572Ye.M0nRDQNld4AgorLVyWq.DcQEmAy5lu', '', '2023-08-10 07:20:11', '2023-08-11 11:12:15'), + (13, 7, 'Hergen', 'Hanke', 'hergenh', NULL, NULL, '$2b$12$MKb6BDRrTbNd0qg5BdAS.upzlqxcWOgU/VEafJKSuzE9JLIWCimq6', '', '2023-08-10 07:22:09', '2023-08-11 11:12:24'), + (14, 8, 'Hardy', 'Paasch', 'hardyp', NULL, NULL, '$2b$12$l1lE/UqnYnOvci.N4j3zBOz6HC0z87ovnO0n6BIZYO7VN8gj.qGey', '', '2023-08-10 07:23:25', '2023-08-11 11:12:28'), + (15, 8, 'Marc', 'Pagel', 'marcp', NULL, NULL, '$2b$12$UCVJKzqX92Z8xZJ4kK0BRuFXMRdqcaXaGmBrqnYWARdKlPvZvLUZq', '', '2023-08-10 07:23:41', '2023-08-11 11:12:30'), + (16, 9, 'Andreas', 'Peukert', 'andreasp', NULL, NULL, '$2b$12$jNmciJAVR6p0IflvAthmk.j0SoOBvFHwDiEDKUHfwJq7baRsKg/LG', '', '2023-08-10 07:24:37', '2023-08-11 11:12:45'), + (17, 8, 'Christina', 'Rachiele', 'christinar', NULL, NULL, '$2b$12$BCsVgPRuIWPuuor07lprF.klQxvF901O3AXUhRrBJoEvYIjNQ.HKS', '', '2023-08-10 07:25:05', '2023-08-11 11:12:33'), + (18, 9, 'Sonia', 'Rekawek', 'soniar', NULL, NULL, '$2b$12$uHCkH6gu13yqllXBibLFIOWOpvctMC7NmojtXqDd6xsLq7bmvNOMu', '', '2023-08-10 07:25:27', '2023-08-11 11:12:48'), + (19, 6, 'Frank', 'Roelfs', 'frankr', NULL, NULL, '$2b$12$cEQAhUe9VJV6uTkfOY6/R.oAVfmFZQ4vS5G6BqoNEyaVHtFRDtB56', '', '2023-08-10 07:26:04', '2023-08-11 11:12:19'), + (20, 10, 'Vera', 'Schliedermann', 'veras', NULL, NULL, '$2b$12$FKcitW6W1HPwd.cdkZLGLeTFuzjsEIrbiKInysAKN.RibZ4gVLZHi', '', '2023-08-10 07:27:01', '2023-08-11 11:12:54'), + (21, 8, 'Michael', 'Strudthoff', 'michaels', NULL, NULL, '$2b$12$doTiywWpkso1UWB5eiAW1eoACP6rN4UDVt7qFFdRFvhhWUXikCmS2', '', '2023-08-10 07:27:27', '2023-08-11 11:12:37'), + (22, 4, 'Volker', 'Viohl', 'volkerv', NULL, NULL, '$2b$12$.YavQbWNE4eJDQA.ZNSKROYvMPWifBXyMX0IL0H2z50M720fpfTJW', '', '2023-08-10 07:27:50', '2023-08-11 11:12:04'), + (23, 11, 'Frauke', 'Zabel', 'fraukez', NULL, NULL, '$2b$12$rawQg6Cjl1yECGm9DOG8degdWdD.nZjEgGp8eXO98nh11QV1sEEEO', '', '2023-08-10 07:28:33', '2023-08-11 11:12:58'), + (24, 8, 'Jan', 'Zierow', 'janz', NULL, NULL, '$2b$12$CbnjUT42cf0mkIAqAURg3OksP9G3brmsE2GQTECTZ4.cVuhPn5D2G', '', '2023-08-10 07:28:55', '2023-08-11 11:12:39'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; -UNLOCK TABLES; --- --- Dumping data for table `user_role_map` --- - -LOCK TABLES `user_role_map` WRITE; +-- Exportiere Daten aus Tabelle bremen_calling.user_role_map: ~0 rows (ungefähr) /*!40000 ALTER TABLE `user_role_map` DISABLE KEYS */; /*!40000 ALTER TABLE `user_role_map` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2023-04-27 9:09:13 diff --git a/src/server/BreCal/impl/berths.py b/src/server/BreCal/impl/berths.py index 4d71958..6c41ba9 100644 --- a/src/server/BreCal/impl/berths.py +++ b/src/server/BreCal/impl/berths.py @@ -15,7 +15,7 @@ def GetBerths(token): try: pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) - data = commands.query("SELECT id, name, participant_id, `lock`, created, modified FROM berth ORDER BY name", model=model.Berth) + data = commands.query("SELECT id, name, participant_id, `lock`, created, modified, deleted FROM berth ORDER BY name", model=model.Berth) pooledConnection.close() except Exception as ex: diff --git a/src/server/BreCal/impl/participant.py b/src/server/BreCal/impl/participant.py index e447b73..be1d7ec 100644 --- a/src/server/BreCal/impl/participant.py +++ b/src/server/BreCal/impl/participant.py @@ -17,9 +17,9 @@ def GetParticipant(options): pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) if "user_id" in options and options["user_id"]: - data = commands.query("SELECT p.id as id, p.name as name, p.street as street, p.postal_code as postal_code, p.city as city, p.type as type, p.flags as flags, p.created as created, p.modified as modified FROM participant p INNER JOIN user u WHERE u.participant_id = p.id and u.id = ?userid?", model=model.Participant, param={"userid" : options["user_id"]}) + data = commands.query("SELECT p.id as id, p.name as name, p.street as street, p.postal_code as postal_code, p.city as city, p.type as type, p.flags as flags, p.created as created, p.modified as modified, p.deleted as deleted FROM participant p INNER JOIN user u WHERE u.participant_id = p.id and u.id = ?userid?", model=model.Participant, param={"userid" : options["user_id"]}) else: - data = commands.query("SELECT p.id as id, p.name as name, p.street as street, p.postal_code as postal_code, p.city as city, p.type as type, p.flags as flags, p.created as created, p.modified as modified FROM participant p ORDER BY p.name", model=model.Participant) + data = commands.query("SELECT id, name, street, postal_code, city, type, flags, created, modified, deleted FROM participant p ORDER BY p.name", model=model.Participant) pooledConnection.close() except Exception as ex: diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index 26a05bd..d59cd83 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -18,8 +18,8 @@ def GetShipcalls(options): pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) data = commands.query("SELECT id, ship_id, type, eta, voyage, etd, arrival_berth_id, departure_berth_id, tug_required, pilot_required, " + - "flags, pier_side, bunkering, replenishing, draft, tidal_window_from, tidal_window_to, rain_sensitive_cargo, recommended_tugs, " + - "created, modified FROM shipcall WHERE eta IS NULL OR eta >= DATE(NOW() - INTERVAL 2 DAY) " + + "flags, pier_side, bunkering, replenishing_terminal, replenishing_lock, draft, tidal_window_from, tidal_window_to, rain_sensitive_cargo, recommended_tugs, " + + "anchored, moored_lock, canceled, created, modified FROM shipcall WHERE eta IS NULL OR eta >= DATE(NOW() - INTERVAL 2 DAY) " + "ORDER BY eta", model=model.Shipcall) for shipcall in data: participant_query = "SELECT participant_id FROM shipcall_participant_map WHERE shipcall_id=?shipcall_id?"; diff --git a/src/server/BreCal/impl/ships.py b/src/server/BreCal/impl/ships.py index 4345ac4..4288d7b 100644 --- a/src/server/BreCal/impl/ships.py +++ b/src/server/BreCal/impl/ships.py @@ -16,7 +16,7 @@ def GetShips(token): pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) - data = commands.query("SELECT id, name, imo, callsign, participant_id, length, width, created, modified FROM ship ORDER BY name", model=model.Ship) + data = commands.query("SELECT id, name, imo, callsign, participant_id, length, width, is_tug, bollard_pull, eni, created, modified, deleted FROM ship ORDER BY name", model=model.Ship) pooledConnection.close() except Exception as ex: diff --git a/src/server/BreCal/impl/times.py b/src/server/BreCal/impl/times.py index 6dc9bc1..359d8d0 100644 --- a/src/server/BreCal/impl/times.py +++ b/src/server/BreCal/impl/times.py @@ -18,7 +18,8 @@ def GetTimes(options): pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) - data = commands.query("SELECT id, start_planned, end_planned, duration_planned, start_actual, end_actual, duration_actual, shipcall_id, participant_id, created, modified FROM times " + + data = commands.query("SELECT id, eta_berth, eta_berth_fixed, etd_berth, etd_berth_fixed, lock_time, lock_time_fixed, " + + "zone_entry, zone_entry_fixed, operations_start, operations_end, remarks, shipcall_id, participant_id, created, modified FROM times " + "WHERE times.shipcall_id = ?scid?", model=model.Times, param={"scid" : options["shipcall_id"]}) pooledConnection.close() diff --git a/src/server/BreCal/schemas/model.py b/src/server/BreCal/schemas/model.py index 079954f..e49ee77 100644 --- a/src/server/BreCal/schemas/model.py +++ b/src/server/BreCal/schemas/model.py @@ -19,6 +19,7 @@ class Berth(Schema): lock: bool created: datetime modified: datetime + deleted: bool class Error(Schema): message = fields.String(required=True,) @@ -50,6 +51,7 @@ class Participant(Schema): flags: int created: datetime modified: datetime + deleted: bool class ParticipantList(Participant): pass @@ -73,12 +75,16 @@ class ShipcallSchema(Schema): flags = fields.Int() pier_side = fields.Bool() bunkering = fields.Bool() - replenishing = fields.Bool() + replenishing_terminal = fields.Bool() + replenishing_lock = fields.Bool() draft = fields.Float() tidal_window_from = fields.DateTime() tidal_window_to = fields.DateTime() rain_sensitive_cargo = fields.Bool() recommended_tugs = fields.Int() + anchored = fields.Bool() + moored_lock = fields.Bool() + canceled = fields.Bool() participants = fields.List(fields.Int) created = fields.DateTime() modified = fields.DateTime() @@ -99,12 +105,16 @@ class Shipcall: flags: int pier_side: bool bunkering: bool - replenishing: bool + replenishing_terminal: bool + replenishing_lock: bool draft: float tidal_window_from: datetime tidal_window_to: datetime rain_sensitive_cargo: bool recommended_tugs: int + anchored: bool + moored_lock: bool + canceled: bool created: datetime modified: datetime participants: List[int] = field(default_factory=list) @@ -120,12 +130,17 @@ class TimesSchema(Schema): pass id = fields.Int(Required=False) - start_planned = fields.DateTime(Required=False) - end_planned = fields.DateTime(Required = False) - duration_planned = fields.Int(Required = False) - start_actual = fields.DateTime(Required = False) - end_actual = fields.DateTime(Required = False) - duration_actual = fields.Int(Required = False) + eta_berth = fields.DateTime(Required = False) + eta_berth_fixed = fields.Bool(Required = False) + etd_berth = fields.DateTime(Required = False) + etd_berth_fixed = fields.Bool(Required = False) + lock_time = fields.DateTime(Required = False) + lock_time_fixed = fields.Bool(Required = False) + zone_entry = fields.DateTime(Required = False) + zone_entry_fixed = fields.Bool(Required = False) + operations_start = fields.DateTime(Required = False) + operations_end = fields.DateTime(Required = False) + remarks = fields.String(Required = False) participant_id = fields.Int(Required = True) shipcall_id = fields.Int(Required = True) created = fields.DateTime(Required = False) @@ -135,12 +150,17 @@ class TimesSchema(Schema): class Times: id: int - start_planned: datetime - end_planned: datetime - duration_planned: int - start_actual: datetime - end_actual: datetime - duration_actual: int + eta_berth: datetime + eta_berth_fixed: bool + etd_berth: datetime + etd_berth_fixed: bool + lock_time: datetime + lock_time_fixed: bool + zone_entry: datetime + zone_entry_fixed: bool + operations_start: datetime + operations_end: datetime + remarks: str participant_id: int shipcall_id: int created: datetime @@ -168,8 +188,12 @@ class Ship(Schema): participant_id: int length: float width: float + is_tug: bool + bollard_pull: int + eni: str created: datetime modified: datetime + deleted: bool class TimesId(Schema): pass