diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..3729ff0
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/azds.yaml
+**/bin
+**/charts
+**/docker-compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index e071329..154e127 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,477 @@
-.idea
-.vscode
-.vs
-.DS_Store
-*.sln.DotSettings.user
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
[Bb]in/
[Oo]bj/
-[Ll]og/
\ No newline at end of file
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# Tye
+.tye/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.tlog
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio 6 auto-generated project file (contains which files were open etc.)
+*.vbp
+
+# Visual Studio 6 workspace and project file (working project files containing files to include in project)
+*.dsw
+*.dsp
+
+# Visual Studio 6 technical files
+*.ncb
+*.aps
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# Visual Studio History (VSHistory) files
+.vshistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
+
+# VS Code files for those working on multiple tools
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+*.code-workspace
+
+# Local History for Visual Studio Code
+.history/
+
+# Windows Installer files from build outputs
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# JetBrains Rider
+*.sln.iml
+
+##
+## Visual studio for Mac
+##
+
+
+# globs
+Makefile.in
+*.userprefs
+*.usertasks
+config.make
+config.status
+aclocal.m4
+install-sh
+autom4te.cache/
+*.tar.gz
+tarballs/
+test-results/
+
+# Mac bundle stuff
+*.dmg
+*.app
+
+# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
+# Windows thumbnail cache files
+Thumbs.db
+ehthumbs.db
+ehthumbs_vista.db
+
+# Dump file
+*.stackdump
+
+# Folder config file
+[Dd]esktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
diff --git a/.idea/.idea.TodoistSync/.idea/.gitignore b/.idea/.idea.TodoistSync/.idea/.gitignore
new file mode 100644
index 0000000..f0d50f0
--- /dev/null
+++ b/.idea/.idea.TodoistSync/.idea/.gitignore
@@ -0,0 +1,13 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Rider ignored files
+/modules.xml
+/.idea.TodoistSync.iml
+/projectSettingsUpdater.xml
+/contentModel.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/.idea.TodoistSync/.idea/encodings.xml b/.idea/.idea.TodoistSync/.idea/encodings.xml
new file mode 100644
index 0000000..df87cf9
--- /dev/null
+++ b/.idea/.idea.TodoistSync/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.TodoistSync/.idea/indexLayout.xml b/.idea/.idea.TodoistSync/.idea/indexLayout.xml
new file mode 100644
index 0000000..7b08163
--- /dev/null
+++ b/.idea/.idea.TodoistSync/.idea/indexLayout.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.TodoistSync/.idea/vcs.xml b/.idea/.idea.TodoistSync/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/.idea.TodoistSync/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TodoistSync.sln b/TodoistSync.sln
index 4618b16..1b97147 100644
--- a/TodoistSync.sln
+++ b/TodoistSync.sln
@@ -1,6 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TodoistSync", "TodoistSync\TodoistSync.csproj", "{CAC9D405-2208-4E7C-B518-612A2B99B8A7}"
+# Visual Studio Version 17
+VisualStudioVersion = 17.7.34221.43
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TodoistSync", "TodoistSync\TodoistSync.csproj", "{5EC12E74-C583-42B9-AEDF-E6DD20D11DA8}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A56EF0DE-ACBA-45A1-A2D8-DDADDF9FAA23}"
+ ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
+ .gitignore = .gitignore
+ README.md = README.md
+ EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -8,9 +18,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {CAC9D405-2208-4E7C-B518-612A2B99B8A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CAC9D405-2208-4E7C-B518-612A2B99B8A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CAC9D405-2208-4E7C-B518-612A2B99B8A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CAC9D405-2208-4E7C-B518-612A2B99B8A7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5EC12E74-C583-42B9-AEDF-E6DD20D11DA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5EC12E74-C583-42B9-AEDF-E6DD20D11DA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5EC12E74-C583-42B9-AEDF-E6DD20D11DA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5EC12E74-C583-42B9-AEDF-E6DD20D11DA8}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {3105CC69-4986-4F47-8AB0-38DA58F5BFD8}
EndGlobalSection
EndGlobal
diff --git a/TodoistSync/Controllers/ClickupController.cs b/TodoistSync/Controllers/ClickupController.cs
deleted file mode 100644
index 9664ea0..0000000
--- a/TodoistSync/Controllers/ClickupController.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Mvc;
-using TodoistSync.Repositories;
-using Clickup = TodoistSync.Models.Clickup;
-using TodoistSync.Services;
-
-namespace TodoistSync.Controllers
-{
- [Route("[controller]")]
- [ApiController]
- public class ClickupController : ControllerBase
- {
- private readonly ClickupService _clickupService;
-
- public ClickupController(ClickupService clickupService)
- {
- _clickupService = clickupService;
- }
-
- [HttpPost("webhook")]
- public async Task Webhook(Clickup.WebhookEvent webhookEvent)
- {
- if (webhookEvent.Event == Clickup.WebhookEventType.TaskDeleted)
- {
- await _clickupService.DeleteTodoistTaskIfExists(webhookEvent.TaskId);
- return Ok();
- }
-
- await _clickupService.CreateOrUpdateTodoistTask(webhookEvent.TaskId);
-
- return Ok();
- }
- }
-}
diff --git a/TodoistSync/Controllers/TodoistController.cs b/TodoistSync/Controllers/TodoistController.cs
deleted file mode 100644
index 36793e3..0000000
--- a/TodoistSync/Controllers/TodoistController.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Mvc;
-using Newtonsoft.Json;
-using TodoistSync.Repositories;
-using TodoistSync.Services;
-using Todoist = TodoistSync.Models.Todoist;
-
-namespace TodoistSync.Controllers
-{
- [Route("[controller]")]
- [ApiController]
- public class TodoistController : ControllerBase
- {
- private readonly ClickupService _clickupService;
- private readonly TodoistService _todoistService;
-
- public TodoistController(
- ClickupService clickupService,
- TodoistService todoistService)
- {
- _clickupService = clickupService;
- _todoistService = todoistService;
- }
-
- [HttpPost("webhook")]
- public async Task Webhook(Todoist.WebhookEvent webhookEvent)
- {
- if (!webhookEvent.EventData.Labels.Contains(_todoistService.ClickupLabelId))
- {
- return Ok();
- }
-
- var clickupTaskId = _clickupService.GetClickupIdFromTodoistContent(webhookEvent.EventData.Content);
-
- if (clickupTaskId == null)
- {
- return Ok();
- }
-
- switch (webhookEvent.EventName)
- {
- case "item:completed":
- await _clickupService.CompleteTask(clickupTaskId);
- break;
- case "item:updated":
- await _clickupService.UpdateClickupTask(clickupTaskId, webhookEvent.EventData.Due?.Date);
- break;
- }
-
- return Ok();
- }
- }
-}
diff --git a/TodoistSync/Controllers/WeatherForecastController.cs b/TodoistSync/Controllers/WeatherForecastController.cs
new file mode 100644
index 0000000..0ecf3df
--- /dev/null
+++ b/TodoistSync/Controllers/WeatherForecastController.cs
@@ -0,0 +1,33 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace TodoistSync.Controllers
+{
+ [ApiController]
+ [Route("[controller]")]
+ public class WeatherForecastController : ControllerBase
+ {
+ private static readonly string[] Summaries = new[]
+ {
+ "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
+ };
+
+ private readonly ILogger _logger;
+
+ public WeatherForecastController(ILogger logger)
+ {
+ _logger = logger;
+ }
+
+ [HttpGet(Name = "GetWeatherForecast")]
+ public IEnumerable Get()
+ {
+ return Enumerable.Range(1, 5).Select(index => new WeatherForecast
+ {
+ Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
+ TemperatureC = Random.Shared.Next(-20, 55),
+ Summary = Summaries[Random.Shared.Next(Summaries.Length)]
+ })
+ .ToArray();
+ }
+ }
+}
\ No newline at end of file
diff --git a/TodoistSync/Dockerfile b/TodoistSync/Dockerfile
new file mode 100644
index 0000000..28026c5
--- /dev/null
+++ b/TodoistSync/Dockerfile
@@ -0,0 +1,22 @@
+#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
+
+FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
+WORKDIR /app
+EXPOSE 80
+EXPOSE 443
+
+FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
+WORKDIR /src
+COPY ["TodoistSync/TodoistSync.csproj", "TodoistSync/"]
+RUN dotnet restore "TodoistSync/TodoistSync.csproj"
+COPY . .
+WORKDIR "/src/TodoistSync"
+RUN dotnet build "TodoistSync.csproj" -c Release -o /app/build
+
+FROM build AS publish
+RUN dotnet publish "TodoistSync.csproj" -c Release -o /app/publish /p:UseAppHost=false
+
+FROM base AS final
+WORKDIR /app
+COPY --from=publish /app/publish .
+ENTRYPOINT ["dotnet", "TodoistSync.dll"]
\ No newline at end of file
diff --git a/TodoistSync/LambdaEntryPoint.cs b/TodoistSync/LambdaEntryPoint.cs
deleted file mode 100644
index e46e07f..0000000
--- a/TodoistSync/LambdaEntryPoint.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-
-namespace TodoistSync
-{
- ///
- /// This class extends from APIGatewayProxyFunction which contains the method FunctionHandlerAsync which is the
- /// actual Lambda function entry point. The Lambda handler field should be set to
- ///
- /// TodoistSync::TodoistSync.LambdaEntryPoint::FunctionHandlerAsync
- ///
- public class LambdaEntryPoint :
-
- // The base class must be set to match the AWS service invoking the Lambda function. If not Amazon.Lambda.AspNetCoreServer
- // will fail to convert the incoming request correctly into a valid ASP.NET Core request.
- //
- // API Gateway REST API -> Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
- // API Gateway HTTP API payload version 1.0 -> Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
- // API Gateway HTTP API payload version 2.0 -> Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction
- // Application Load Balancer -> Amazon.Lambda.AspNetCoreServer.ApplicationLoadBalancerFunction
- //
- // Note: When using the AWS::Serverless::Function resource with an event type of "HttpApi" then payload version 2.0
- // will be the default and you must make Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction the base class.
- Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction
- {
- ///
- /// The builder has configuration, logging and Amazon API Gateway already configured. The startup class
- /// needs to be configured in this method using the UseStartup<>() method.
- ///
- ///
- protected override void Init(IWebHostBuilder builder)
- {
- builder
- .UseStartup()
- .UseSentry();
- }
-
- ///
- /// Use this override to customize the services registered with the IHostBuilder.
- ///
- /// It is recommended not to call ConfigureWebHostDefaults to configure the IWebHostBuilder inside this method.
- /// Instead customize the IWebHostBuilder in the Init(IWebHostBuilder) overload.
- ///
- ///
- protected override void Init(IHostBuilder builder)
- {
- }
- }
-}
diff --git a/TodoistSync/LocalEntryPoint.cs b/TodoistSync/LocalEntryPoint.cs
deleted file mode 100644
index c01af57..0000000
--- a/TodoistSync/LocalEntryPoint.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Hosting;
-
-namespace TodoistSync
-{
- ///
- /// The Main function can be used to run the ASP.NET Core application locally using the Kestrel webserver.
- ///
- public class LocalEntryPoint
- {
- public static void Main(string[] args)
- {
- CreateHostBuilder(args).Build().Run();
- }
-
- public static IHostBuilder CreateHostBuilder(string[] args) =>
- Host.CreateDefaultBuilder(args)
- .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); });
- }
-}
diff --git a/TodoistSync/Middleware/SentryEventsFlusherMiddleware.cs b/TodoistSync/Middleware/SentryEventsFlusherMiddleware.cs
deleted file mode 100644
index 5eee4fa..0000000
--- a/TodoistSync/Middleware/SentryEventsFlusherMiddleware.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Http;
-using Sentry;
-
-namespace TodoistSync.Middleware
-{
- public class SentryEventsFlusherMiddleware
- {
- private readonly RequestDelegate _next;
-
- public SentryEventsFlusherMiddleware(RequestDelegate next)
- {
- _next = next;
- }
-
- public async Task InvokeAsync(HttpContext context, ISentryClient sentryClient)
- {
- context.Response.OnCompleted(async () =>
- {
- await sentryClient.FlushAsync(timeout: TimeSpan.FromSeconds(10));
- });
-
- await _next(context);
- }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Attachment.cs b/TodoistSync/Models/Clickup/Attachment.cs
deleted file mode 100644
index cb7e20c..0000000
--- a/TodoistSync/Models/Clickup/Attachment.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Attachment
- {
- [JsonProperty("id")]
- public string Id { get; set; }
-
- [JsonProperty("date")]
- public string Date { get; set; }
-
- [JsonProperty("title")]
- public string Title { get; set; }
-
- [JsonProperty("type")]
- public long Type { get; set; }
-
- [JsonProperty("source")]
- public long Source { get; set; }
-
- [JsonProperty("version")]
- public long Version { get; set; }
-
- [JsonProperty("extension")]
- public string Extension { get; set; }
-
- [JsonProperty("thumbnail_small")]
- public Uri ThumbnailSmall { get; set; }
-
- [JsonProperty("thumbnail_large")]
- public Uri ThumbnailLarge { get; set; }
-
- [JsonProperty("is_folder")]
- public bool? IsFolder { get; set; }
-
- [JsonProperty("mimetype")]
- public string Mimetype { get; set; }
-
- [JsonProperty("hidden")]
- public bool Hidden { get; set; }
-
- [JsonProperty("parentid")]
- public string ParentId { get; set; }
-
- [JsonProperty("size")]
- public long Size { get; set; }
-
- [JsonProperty("total_comments")]
- public long TotalComments { get; set; }
-
- [JsonProperty("resolved_comments")]
- public long ResolvedComments { get; set; }
-
- [JsonProperty("user")]
- public User User { get; set; }
-
- [JsonProperty("deleted")]
- public bool Deleted { get; set; }
-
- [JsonProperty("url")]
- public Uri Url { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Checklist.cs b/TodoistSync/Models/Clickup/Checklist.cs
deleted file mode 100644
index 0a39209..0000000
--- a/TodoistSync/Models/Clickup/Checklist.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Checklist
- {
- [JsonProperty("id")]
- public string Id { get; set; }
-
- [JsonProperty("task_id")]
- public string TaskId { get; set; }
-
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("date_created")]
- public string DateCreated { get; set; }
-
- [JsonProperty("orderindex")]
- public long Orderindex { get; set; }
-
- [JsonProperty("creator")]
- public long Creator { get; set; }
-
- [JsonProperty("resolved")]
- public long Resolved { get; set; }
-
- [JsonProperty("unresolved")]
- public long Unresolved { get; set; }
-
- [JsonProperty("items")]
- public List Items { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/ChecklistItem.cs b/TodoistSync/Models/Clickup/ChecklistItem.cs
deleted file mode 100644
index 78d4d00..0000000
--- a/TodoistSync/Models/Clickup/ChecklistItem.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class ChecklistItem
- {
- [JsonProperty("id")]
- public string Id { get; set; }
-
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("orderindex")]
- public long Orderindex { get; set; }
-
- [JsonProperty("assignee")]
- public User Assignee { get; set; }
-
- [JsonProperty("resolved")]
- public bool Resolved { get; set; }
-
- [JsonProperty("parent")]
- public string Parent { get; set; }
-
- [JsonProperty("date_created")]
- public string DateCreated { get; set; }
-
- [JsonProperty("children")]
- public List Children { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Dependency.cs b/TodoistSync/Models/Clickup/Dependency.cs
deleted file mode 100644
index 4fc11d1..0000000
--- a/TodoistSync/Models/Clickup/Dependency.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Dependency
- {
- [JsonProperty("task_id")]
- public string TaskId { get; set; }
-
- [JsonProperty("depends_on")]
- public string DependsOn { get; set; }
-
- [JsonProperty("type")]
- public int Type { get; set; }
-
- [JsonProperty("date_created")]
- public string DateCreated { get; set; }
-
- [JsonProperty("user_id")]
- public string UserId { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Folder.cs b/TodoistSync/Models/Clickup/Folder.cs
deleted file mode 100644
index ec3df3d..0000000
--- a/TodoistSync/Models/Clickup/Folder.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Folder
- {
- [JsonProperty("id")]
- public long Id { get; set; }
-
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("access")]
- public bool Access { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Project.cs b/TodoistSync/Models/Clickup/Project.cs
deleted file mode 100644
index bda0527..0000000
--- a/TodoistSync/Models/Clickup/Project.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Project
- {
- [JsonProperty("id")]
- public long Id { get; set; }
-
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("access")]
- public bool Access { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Space.cs b/TodoistSync/Models/Clickup/Space.cs
deleted file mode 100644
index 7ca138c..0000000
--- a/TodoistSync/Models/Clickup/Space.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Space
- {
- [JsonProperty("id")]
- public long Id { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Tag.cs b/TodoistSync/Models/Clickup/Tag.cs
deleted file mode 100644
index 9ee9d1a..0000000
--- a/TodoistSync/Models/Clickup/Tag.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using Newtonsoft.Json;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Tag
- {
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("tag_fg")]
- public string TagFg { get; set; }
-
- [JsonProperty("tag_bg")]
- public string TagBg { get; set; }
-
- [JsonProperty("creator")]
- public User Creator { get; set; }
- }
-}
diff --git a/TodoistSync/Models/Clickup/Task.cs b/TodoistSync/Models/Clickup/Task.cs
deleted file mode 100644
index fa610b9..0000000
--- a/TodoistSync/Models/Clickup/Task.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using TodoistSync.Utilities;
-
-namespace TodoistSync.Models.Clickup
-{
- public class Task
- {
- [JsonProperty("id")]
- public string Id { get; set; }
-
- [JsonProperty("name")]
- public string Name { get; set; }
-
- [JsonProperty("text_content")]
- public string TextContent { get; set; }
-
- [JsonProperty("description")]
- public string Description { get; set; }
-
- [JsonProperty("status")]
- public TaskStatus Status { get; set; }
-
- [JsonProperty("orderindex")]
- public string Orderindex { get; set; }
-
- [JsonProperty("date_created")]
- [JsonConverter(typeof(EpochDateTimeOffsetConverter))]
- public DateTimeOffset? DateCreated { get; set; }
-
- [JsonProperty("date_updated")]
- [JsonConverter(typeof(EpochDateTimeOffsetConverter))]
- public DateTimeOffset? DateUpdated { get; set; }
-
- [JsonProperty("date_closed")]
- [JsonConverter(typeof(EpochDateTimeOffsetConverter))]
- public DateTimeOffset? DateClosed { get; set; }
-
- [JsonProperty("archived")]
- public bool Archived { get; set; }
-
- [JsonProperty("creator")]
- public User Creator { get; set; }
-
- [JsonProperty("assignees")]
- public List Assignees { get; set; }
-
- [JsonProperty("watchers")]
- public List Watchers { get; set; }
-
- [JsonProperty("checklists")]
- public List Checklists { get; set; }
-
- [JsonProperty("tags")]
- public List Tags { get; set; }
-
- [JsonProperty("parent")]
- public string Parent { get; set; }
-
- [JsonProperty("priority")]
- public TaskPriority Priority { get; set; }
-
- [JsonProperty("due_date")]
- [JsonConverter(typeof(EpochDateTimeOffsetConverter))]
- public DateTimeOffset? DueDate { get; set; }
-
- [JsonProperty("start_date")]
- public string StartDate { get; set; }
-
- [JsonProperty("time_estimate")]
- public string TimeEstimate { get; set; }
-
- [JsonProperty("time_spent")]
- public long TimeSpent { get; set; }
-
- [JsonProperty("custom_fields")]
- public List