Skip to content

Commit e335392

Browse files
committed
Add support for 1.7
1 parent 048f4e5 commit e335392

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2540
-215
lines changed

Appwrite/Appwrite.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
44
<PackageId>Appwrite</PackageId>
5-
<Version>0.13.0-rc.1</Version>
5+
<Version>0.14.0</Version>
66
<Authors>Appwrite Team</Authors>
77
<Company>Appwrite Team</Company>
88
<Description>

Appwrite/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public Client(
6969
_headers = new Dictionary<string, string>()
7070
{
7171
{ "content-type", "application/json" },
72-
{ "user-agent" , "AppwriteDotNetSDK/0.13.0-rc.1 (${Environment.OSVersion.Platform}; ${Environment.OSVersion.VersionString})"},
72+
{ "user-agent" , "AppwriteDotNetSDK/0.14.0 (${Environment.OSVersion.Platform}; ${Environment.OSVersion.VersionString})"},
7373
{ "x-sdk-name", ".NET" },
7474
{ "x-sdk-platform", "server" },
7575
{ "x-sdk-language", "dotnet" },
76-
{ "x-sdk-version", "0.13.0-rc.1"}, { "X-Appwrite-Response-Format", "1.6.0" }
76+
{ "x-sdk-version", "0.14.0"}, { "X-Appwrite-Response-Format", "1.7.0" }
7777
};
7878

7979
_config = new Dictionary<string, string>();

Appwrite/Enums/Adapter.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class Adapter : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public Adapter(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static Adapter Static => new Adapter("static");
15+
public static Adapter Ssr => new Adapter("ssr");
16+
}
17+
}

Appwrite/Enums/BuildRuntime.cs

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class BuildRuntime : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public BuildRuntime(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static BuildRuntime Node145 => new BuildRuntime("node-14.5");
15+
public static BuildRuntime Node160 => new BuildRuntime("node-16.0");
16+
public static BuildRuntime Node180 => new BuildRuntime("node-18.0");
17+
public static BuildRuntime Node190 => new BuildRuntime("node-19.0");
18+
public static BuildRuntime Node200 => new BuildRuntime("node-20.0");
19+
public static BuildRuntime Node210 => new BuildRuntime("node-21.0");
20+
public static BuildRuntime Node22 => new BuildRuntime("node-22");
21+
public static BuildRuntime Php80 => new BuildRuntime("php-8.0");
22+
public static BuildRuntime Php81 => new BuildRuntime("php-8.1");
23+
public static BuildRuntime Php82 => new BuildRuntime("php-8.2");
24+
public static BuildRuntime Php83 => new BuildRuntime("php-8.3");
25+
public static BuildRuntime Ruby30 => new BuildRuntime("ruby-3.0");
26+
public static BuildRuntime Ruby31 => new BuildRuntime("ruby-3.1");
27+
public static BuildRuntime Ruby32 => new BuildRuntime("ruby-3.2");
28+
public static BuildRuntime Ruby33 => new BuildRuntime("ruby-3.3");
29+
public static BuildRuntime Python38 => new BuildRuntime("python-3.8");
30+
public static BuildRuntime Python39 => new BuildRuntime("python-3.9");
31+
public static BuildRuntime Python310 => new BuildRuntime("python-3.10");
32+
public static BuildRuntime Python311 => new BuildRuntime("python-3.11");
33+
public static BuildRuntime Python312 => new BuildRuntime("python-3.12");
34+
public static BuildRuntime PythonMl311 => new BuildRuntime("python-ml-3.11");
35+
public static BuildRuntime PythonMl312 => new BuildRuntime("python-ml-3.12");
36+
public static BuildRuntime Deno121 => new BuildRuntime("deno-1.21");
37+
public static BuildRuntime Deno124 => new BuildRuntime("deno-1.24");
38+
public static BuildRuntime Deno135 => new BuildRuntime("deno-1.35");
39+
public static BuildRuntime Deno140 => new BuildRuntime("deno-1.40");
40+
public static BuildRuntime Deno146 => new BuildRuntime("deno-1.46");
41+
public static BuildRuntime Deno20 => new BuildRuntime("deno-2.0");
42+
public static BuildRuntime Dart215 => new BuildRuntime("dart-2.15");
43+
public static BuildRuntime Dart216 => new BuildRuntime("dart-2.16");
44+
public static BuildRuntime Dart217 => new BuildRuntime("dart-2.17");
45+
public static BuildRuntime Dart218 => new BuildRuntime("dart-2.18");
46+
public static BuildRuntime Dart219 => new BuildRuntime("dart-2.19");
47+
public static BuildRuntime Dart30 => new BuildRuntime("dart-3.0");
48+
public static BuildRuntime Dart31 => new BuildRuntime("dart-3.1");
49+
public static BuildRuntime Dart33 => new BuildRuntime("dart-3.3");
50+
public static BuildRuntime Dart35 => new BuildRuntime("dart-3.5");
51+
public static BuildRuntime Dotnet60 => new BuildRuntime("dotnet-6.0");
52+
public static BuildRuntime Dotnet70 => new BuildRuntime("dotnet-7.0");
53+
public static BuildRuntime Dotnet80 => new BuildRuntime("dotnet-8.0");
54+
public static BuildRuntime Java80 => new BuildRuntime("java-8.0");
55+
public static BuildRuntime Java110 => new BuildRuntime("java-11.0");
56+
public static BuildRuntime Java170 => new BuildRuntime("java-17.0");
57+
public static BuildRuntime Java180 => new BuildRuntime("java-18.0");
58+
public static BuildRuntime Java210 => new BuildRuntime("java-21.0");
59+
public static BuildRuntime Java22 => new BuildRuntime("java-22");
60+
public static BuildRuntime Swift55 => new BuildRuntime("swift-5.5");
61+
public static BuildRuntime Swift58 => new BuildRuntime("swift-5.8");
62+
public static BuildRuntime Swift59 => new BuildRuntime("swift-5.9");
63+
public static BuildRuntime Swift510 => new BuildRuntime("swift-5.10");
64+
public static BuildRuntime Kotlin16 => new BuildRuntime("kotlin-1.6");
65+
public static BuildRuntime Kotlin18 => new BuildRuntime("kotlin-1.8");
66+
public static BuildRuntime Kotlin19 => new BuildRuntime("kotlin-1.9");
67+
public static BuildRuntime Kotlin20 => new BuildRuntime("kotlin-2.0");
68+
public static BuildRuntime Cpp17 => new BuildRuntime("cpp-17");
69+
public static BuildRuntime Cpp20 => new BuildRuntime("cpp-20");
70+
public static BuildRuntime Bun10 => new BuildRuntime("bun-1.0");
71+
public static BuildRuntime Bun11 => new BuildRuntime("bun-1.1");
72+
public static BuildRuntime Go123 => new BuildRuntime("go-1.23");
73+
public static BuildRuntime Static1 => new BuildRuntime("static-1");
74+
public static BuildRuntime Flutter324 => new BuildRuntime("flutter-3.24");
75+
public static BuildRuntime Flutter327 => new BuildRuntime("flutter-3.27");
76+
public static BuildRuntime Flutter329 => new BuildRuntime("flutter-3.29");
77+
}
78+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class DeploymentDownloadType : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public DeploymentDownloadType(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static DeploymentDownloadType Source => new DeploymentDownloadType("source");
15+
public static DeploymentDownloadType Output => new DeploymentDownloadType("output");
16+
}
17+
}

Appwrite/Enums/Framework.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class Framework : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public Framework(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static Framework Analog => new Framework("analog");
15+
public static Framework Angular => new Framework("angular");
16+
public static Framework Nextjs => new Framework("nextjs");
17+
public static Framework React => new Framework("react");
18+
public static Framework Nuxt => new Framework("nuxt");
19+
public static Framework Vue => new Framework("vue");
20+
public static Framework Sveltekit => new Framework("sveltekit");
21+
public static Framework Astro => new Framework("astro");
22+
public static Framework Remix => new Framework("remix");
23+
public static Framework Lynx => new Framework("lynx");
24+
public static Framework Flutter => new Framework("flutter");
25+
public static Framework ReactNative => new Framework("react-native");
26+
public static Framework Vite => new Framework("vite");
27+
public static Framework Other => new Framework("other");
28+
}
29+
}

Appwrite/Enums/ImageFormat.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public ImageFormat(string value)
1313

1414
public static ImageFormat Jpg => new ImageFormat("jpg");
1515
public static ImageFormat Jpeg => new ImageFormat("jpeg");
16-
public static ImageFormat Gif => new ImageFormat("gif");
1716
public static ImageFormat Png => new ImageFormat("png");
1817
public static ImageFormat Webp => new ImageFormat("webp");
1918
public static ImageFormat Heic => new ImageFormat("heic");

Appwrite/Enums/Runtime.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public Runtime(string value)
3232
public static Runtime Python311 => new Runtime("python-3.11");
3333
public static Runtime Python312 => new Runtime("python-3.12");
3434
public static Runtime PythonMl311 => new Runtime("python-ml-3.11");
35+
public static Runtime PythonMl312 => new Runtime("python-ml-3.12");
3536
public static Runtime Deno121 => new Runtime("deno-1.21");
3637
public static Runtime Deno124 => new Runtime("deno-1.24");
3738
public static Runtime Deno135 => new Runtime("deno-1.35");
@@ -42,6 +43,7 @@ public Runtime(string value)
4243
public static Runtime Dart216 => new Runtime("dart-2.16");
4344
public static Runtime Dart217 => new Runtime("dart-2.17");
4445
public static Runtime Dart218 => new Runtime("dart-2.18");
46+
public static Runtime Dart219 => new Runtime("dart-2.19");
4547
public static Runtime Dart30 => new Runtime("dart-3.0");
4648
public static Runtime Dart31 => new Runtime("dart-3.1");
4749
public static Runtime Dart33 => new Runtime("dart-3.3");
@@ -70,5 +72,7 @@ public Runtime(string value)
7072
public static Runtime Go123 => new Runtime("go-1.23");
7173
public static Runtime Static1 => new Runtime("static-1");
7274
public static Runtime Flutter324 => new Runtime("flutter-3.24");
75+
public static Runtime Flutter327 => new Runtime("flutter-3.27");
76+
public static Runtime Flutter329 => new Runtime("flutter-3.29");
7377
}
7478
}

Appwrite/Enums/VCSDeploymentType.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
3+
namespace Appwrite.Enums
4+
{
5+
public class VCSDeploymentType : IEnum
6+
{
7+
public string Value { get; private set; }
8+
9+
public VCSDeploymentType(string value)
10+
{
11+
Value = value;
12+
}
13+
14+
public static VCSDeploymentType Branch => new VCSDeploymentType("branch");
15+
public static VCSDeploymentType Commit => new VCSDeploymentType("commit");
16+
public static VCSDeploymentType Tag => new VCSDeploymentType("tag");
17+
}
18+
}

Appwrite/Models/Build.cs

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)