Skip to content

Commit 4319bd1

Browse files
committed
update version and add changelog
1 parent bced7cd commit 4319bd1

File tree

11 files changed

+36
-35
lines changed

11 files changed

+36
-35
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;net462</TargetFrameworks>
44
<PackageId>Appwrite</PackageId>
5-
<Version>0.14.1</Version>
5+
<Version>0.15.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.14.1 ({Environment.OSVersion.Platform}; {Environment.OSVersion.VersionString})"},
72+
{ "user-agent" , $"AppwriteDotNetSDK/0.15.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.14.1"},
76+
{ "x-sdk-version", "0.15.0"},
7777
{ "X-Appwrite-Response-Format", "1.7.0" }
7878
};
7979

Appwrite/Services/Account.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public Task<object> DeleteMfaAuthenticator(Appwrite.Enums.AuthenticatorType type
384384

385385
var apiParameters = new Dictionary<string, object?>()
386386
{
387-
{ "factor", factor }
387+
{ "factor", factor?.Value }
388388
};
389389

390390
var apiHeaders = new Dictionary<string, string>()

Appwrite/Services/Databases.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,11 +925,11 @@ static Models.AttributeIp Convert(Dictionary<string, object> it) =>
925925
var apiParameters = new Dictionary<string, object?>()
926926
{
927927
{ "relatedCollectionId", relatedCollectionId },
928-
{ "type", type },
928+
{ "type", type?.Value },
929929
{ "twoWay", twoWay },
930930
{ "key", key },
931931
{ "twoWayKey", twoWayKey },
932-
{ "onDelete", onDelete }
932+
{ "onDelete", onDelete?.Value }
933933
};
934934

935935
var apiHeaders = new Dictionary<string, string>()
@@ -1177,7 +1177,7 @@ public Task<object> DeleteAttribute(string databaseId, string collectionId, stri
11771177

11781178
var apiParameters = new Dictionary<string, object?>()
11791179
{
1180-
{ "onDelete", onDelete },
1180+
{ "onDelete", onDelete?.Value },
11811181
{ "newKey", newKey }
11821182
};
11831183

@@ -1690,7 +1690,7 @@ static Models.IndexList Convert(Dictionary<string, object> it) =>
16901690
var apiParameters = new Dictionary<string, object?>()
16911691
{
16921692
{ "key", key },
1693-
{ "type", type },
1693+
{ "type", type?.Value },
16941694
{ "attributes", attributes },
16951695
{ "orders", orders },
16961696
{ "lengths", lengths }

Appwrite/Services/Functions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static Models.FunctionList Convert(Dictionary<string, object> it) =>
6161
{
6262
{ "functionId", functionId },
6363
{ "name", name },
64-
{ "runtime", runtime },
64+
{ "runtime", runtime?.Value },
6565
{ "execute", execute },
6666
{ "events", events },
6767
{ "schedule", schedule },
@@ -197,7 +197,7 @@ static Models.Function Convert(Dictionary<string, object> it) =>
197197
var apiParameters = new Dictionary<string, object?>()
198198
{
199199
{ "name", name },
200-
{ "runtime", runtime },
200+
{ "runtime", runtime?.Value },
201201
{ "execute", execute },
202202
{ "events", events },
203203
{ "schedule", schedule },
@@ -466,7 +466,7 @@ static Models.Deployment Convert(Dictionary<string, object> it) =>
466466

467467
var apiParameters = new Dictionary<string, object?>()
468468
{
469-
{ "type", type },
469+
{ "type", type?.Value },
470470
{ "reference", reference },
471471
{ "activate", activate }
472472
};
@@ -563,7 +563,7 @@ public Task<byte[]> GetDeploymentDownload(string functionId, string deploymentId
563563

564564
var apiParameters = new Dictionary<string, object?>()
565565
{
566-
{ "type", type }
566+
{ "type", type?.Value }
567567
};
568568

569569
var apiHeaders = new Dictionary<string, string>()
@@ -665,7 +665,7 @@ static Models.ExecutionList Convert(Dictionary<string, object> it) =>
665665
{ "body", body },
666666
{ "async", xasync },
667667
{ "path", xpath },
668-
{ "method", method },
668+
{ "method", method?.Value },
669669
{ "headers", headers },
670670
{ "scheduledAt", scheduledAt }
671671
};

Appwrite/Services/Messaging.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static Models.Message Convert(Dictionary<string, object> it) =>
160160
{ "scheduledAt", scheduledAt },
161161
{ "contentAvailable", contentAvailable },
162162
{ "critical", critical },
163-
{ "priority", priority }
163+
{ "priority", priority?.Value }
164164
};
165165

166166
var apiHeaders = new Dictionary<string, string>()
@@ -212,7 +212,7 @@ static Models.Message Convert(Dictionary<string, object> it) =>
212212
{ "scheduledAt", scheduledAt },
213213
{ "contentAvailable", contentAvailable },
214214
{ "critical", critical },
215-
{ "priority", priority }
215+
{ "priority", priority?.Value }
216216
};
217217

218218
var apiHeaders = new Dictionary<string, string>()
@@ -851,7 +851,7 @@ static Models.Provider Convert(Dictionary<string, object> it) =>
851851
{ "port", port },
852852
{ "username", username },
853853
{ "password", password },
854-
{ "encryption", encryption },
854+
{ "encryption", encryption?.Value },
855855
{ "autoTLS", autoTLS },
856856
{ "mailer", mailer },
857857
{ "fromName", fromName },
@@ -895,7 +895,7 @@ static Models.Provider Convert(Dictionary<string, object> it) =>
895895
{ "port", port },
896896
{ "username", username },
897897
{ "password", password },
898-
{ "encryption", encryption },
898+
{ "encryption", encryption?.Value },
899899
{ "autoTLS", autoTLS },
900900
{ "mailer", mailer },
901901
{ "fromName", fromName },

Appwrite/Services/Sites.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ static Models.SiteList Convert(Dictionary<string, object> it) =>
5858
{
5959
{ "siteId", siteId },
6060
{ "name", name },
61-
{ "framework", framework },
61+
{ "framework", framework?.Value },
6262
{ "enabled", enabled },
6363
{ "logging", logging },
6464
{ "timeout", timeout },
6565
{ "installCommand", installCommand },
6666
{ "buildCommand", buildCommand },
6767
{ "outputDirectory", outputDirectory },
68-
{ "buildRuntime", buildRuntime },
69-
{ "adapter", adapter },
68+
{ "buildRuntime", buildRuntime?.Value },
69+
{ "adapter", adapter?.Value },
7070
{ "installationId", installationId },
7171
{ "fallbackFile", fallbackFile },
7272
{ "providerRepositoryId", providerRepositoryId },
@@ -195,15 +195,15 @@ static Models.Site Convert(Dictionary<string, object> it) =>
195195
var apiParameters = new Dictionary<string, object?>()
196196
{
197197
{ "name", name },
198-
{ "framework", framework },
198+
{ "framework", framework?.Value },
199199
{ "enabled", enabled },
200200
{ "logging", logging },
201201
{ "timeout", timeout },
202202
{ "installCommand", installCommand },
203203
{ "buildCommand", buildCommand },
204204
{ "outputDirectory", outputDirectory },
205-
{ "buildRuntime", buildRuntime },
206-
{ "adapter", adapter },
205+
{ "buildRuntime", buildRuntime?.Value },
206+
{ "adapter", adapter?.Value },
207207
{ "fallbackFile", fallbackFile },
208208
{ "installationId", installationId },
209209
{ "providerRepositoryId", providerRepositoryId },
@@ -457,7 +457,7 @@ static Models.Deployment Convert(Dictionary<string, object> it) =>
457457

458458
var apiParameters = new Dictionary<string, object?>()
459459
{
460-
{ "type", type },
460+
{ "type", type?.Value },
461461
{ "reference", reference },
462462
{ "activate", activate }
463463
};
@@ -554,7 +554,7 @@ public Task<byte[]> GetDeploymentDownload(string siteId, string deploymentId, Ap
554554

555555
var apiParameters = new Dictionary<string, object?>()
556556
{
557-
{ "type", type }
557+
{ "type", type?.Value }
558558
};
559559

560560
var apiHeaders = new Dictionary<string, string>()

Appwrite/Services/Storage.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static Models.BucketList Convert(Dictionary<string, object> it) =>
6363
{ "enabled", enabled },
6464
{ "maximumFileSize", maximumFileSize },
6565
{ "allowedFileExtensions", allowedFileExtensions },
66-
{ "compression", compression },
66+
{ "compression", compression?.Value },
6767
{ "encryption", encryption },
6868
{ "antivirus", antivirus }
6969
};
@@ -134,7 +134,7 @@ static Models.Bucket Convert(Dictionary<string, object> it) =>
134134
{ "enabled", enabled },
135135
{ "maximumFileSize", maximumFileSize },
136136
{ "allowedFileExtensions", allowedFileExtensions },
137-
{ "compression", compression },
137+
{ "compression", compression?.Value },
138138
{ "encryption", encryption },
139139
{ "antivirus", antivirus }
140140
};
@@ -420,15 +420,15 @@ public Task<byte[]> GetFilePreview(string bucketId, string fileId, long? width =
420420
{
421421
{ "width", width },
422422
{ "height", height },
423-
{ "gravity", gravity },
423+
{ "gravity", gravity?.Value },
424424
{ "quality", quality },
425425
{ "borderWidth", borderWidth },
426426
{ "borderColor", borderColor },
427427
{ "borderRadius", borderRadius },
428428
{ "opacity", opacity },
429429
{ "rotation", rotation },
430430
{ "background", background },
431-
{ "output", output },
431+
{ "output", output?.Value },
432432
{ "token", token }
433433
};
434434

Appwrite/Services/Users.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static Models.User Convert(Dictionary<string, object> it) =>
387387
{ "userId", userId },
388388
{ "email", email },
389389
{ "password", password },
390-
{ "passwordVersion", passwordVersion },
390+
{ "passwordVersion", passwordVersion?.Value },
391391
{ "name", name }
392392
};
393393

@@ -1190,7 +1190,7 @@ static Models.TargetList Convert(Dictionary<string, object> it) =>
11901190
var apiParameters = new Dictionary<string, object?>()
11911191
{
11921192
{ "targetId", targetId },
1193-
{ "providerType", providerType },
1193+
{ "providerType", providerType?.Value },
11941194
{ "identifier", identifier },
11951195
{ "providerId", providerId },
11961196
{ "name", name }

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Change Log
22

3-
## 0.14.1
3+
## 0.15.0
44

55
* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service
66
* Add `encrypt` support to `StringAttribute` model
77
* Add `sequence` support to `Document` model
8+
* Fix: pass enum value as string in API params
89

910
## 0.14.0
1011

0 commit comments

Comments
 (0)