Skip to content

Commit f110d17

Browse files
committed
chore: update sdks for appwrite 1.6
1 parent ff1e187 commit f110d17

Some content is hidden

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

46 files changed

+250
-10
lines changed

Sources/AppwriteModels/AlgoArgon2.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ public class AlgoArgon2 {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// Memory used to compute hash.
1112
public let memoryCost: Int
1213

14+
1315
/// Amount of time consumed to compute hash
1416
public let timeCost: Int
1517

18+
1619
/// Number of threads used to compute hash.
1720
public let threads: Int
1821

1922

23+
2024
init(
2125
type: String,
2226
memoryCost: Int,

Sources/AppwriteModels/AlgoBcrypt.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoBcrypt {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoMd5.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoMd5 {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoPhpass.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoPhpass {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/AlgoScrypt.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,24 @@ public class AlgoScrypt {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// CPU complexity of computed hash.
1112
public let costCpu: Int
1213

14+
1315
/// Memory complexity of computed hash.
1416
public let costMemory: Int
1517

18+
1619
/// Parallelization of computed hash.
1720
public let costParallel: Int
1821

22+
1923
/// Length used to compute hash.
2024
public let length: Int
2125

2226

27+
2328
init(
2429
type: String,
2530
costCpu: Int,

Sources/AppwriteModels/AlgoScryptModified.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ public class AlgoScryptModified {
77
/// Algo type.
88
public let type: String
99

10+
1011
/// Salt used to compute hash.
1112
public let salt: String
1213

14+
1315
/// Separator used to compute hash.
1416
public let saltSeparator: String
1517

18+
1619
/// Key used to compute hash.
1720
public let signerKey: String
1821

1922

23+
2024
init(
2125
type: String,
2226
salt: String,

Sources/AppwriteModels/AlgoSha.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class AlgoSha {
88
public let type: String
99

1010

11+
1112
init(
1213
type: String
1314
) {

Sources/AppwriteModels/Continent.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class Continent {
77
/// Continent name.
88
public let name: String
99

10+
1011
/// Continent two letter code.
1112
public let code: String
1213

1314

15+
1416
init(
1517
name: String,
1618
code: String

Sources/AppwriteModels/ContinentList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class ContinentList {
77
/// Total number of continents documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of continents.
1112
public let continents: [Continent]
1213

1314

15+
1416
init(
1517
total: Int,
1618
continents: [Continent]

Sources/AppwriteModels/Country.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class Country {
77
/// Country name.
88
public let name: String
99

10+
1011
/// Country two-character ISO 3166-1 alpha code.
1112
public let code: String
1213

1314

15+
1416
init(
1517
name: String,
1618
code: String

Sources/AppwriteModels/CountryList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class CountryList {
77
/// Total number of countries documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of countries.
1112
public let countries: [Country]
1213

1314

15+
1416
init(
1517
total: Int,
1618
countries: [Country]

Sources/AppwriteModels/Currency.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,32 @@ public class Currency {
77
/// Currency symbol.
88
public let symbol: String
99

10+
1011
/// Currency name.
1112
public let name: String
1213

14+
1315
/// Currency native symbol.
1416
public let symbolNative: String
1517

18+
1619
/// Number of decimal digits.
1720
public let decimalDigits: Int
1821

22+
1923
/// Currency digit rounding.
2024
public let rounding: Double
2125

26+
2227
/// Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
2328
public let code: String
2429

30+
2531
/// Currency plural name
2632
public let namePlural: String
2733

2834

35+
2936
init(
3037
symbol: String,
3138
name: String,

Sources/AppwriteModels/CurrencyList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class CurrencyList {
77
/// Total number of currencies documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of currencies.
1112
public let currencies: [Currency]
1213

1314

15+
1416
init(
1517
total: Int,
1618
currencies: [Currency]

Sources/AppwriteModels/Document.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,27 @@ public class Document<T : Codable> {
77
/// Document ID.
88
public let id: String
99

10+
1011
/// Collection ID.
1112
public let collectionId: String
1213

14+
1315
/// Database ID.
1416
public let databaseId: String
1517

18+
1619
/// Document creation date in ISO 8601 format.
1720
public let createdAt: String
1821

22+
1923
/// Document update date in ISO 8601 format.
2024
public let updatedAt: String
2125

26+
2227
/// Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
2328
public let permissions: [Any]
2429

30+
2531
/// Additional properties
2632
public let data: T
2733

Sources/AppwriteModels/DocumentList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class DocumentList<T : Codable> {
77
/// Total number of documents documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of documents.
1112
public let documents: [Document<T>]
1213

1314

15+
1416
init(
1517
total: Int,
1618
documents: [Document<T>]

Sources/AppwriteModels/Execution.swift

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,70 @@ public class Execution {
77
/// Execution ID.
88
public let id: String
99

10+
1011
/// Execution creation date in ISO 8601 format.
1112
public let createdAt: String
1213

14+
1315
/// Execution upate date in ISO 8601 format.
1416
public let updatedAt: String
1517

18+
1619
/// Execution roles.
1720
public let permissions: [Any]
1821

22+
1923
/// Function ID.
2024
public let functionId: String
2125

26+
2227
/// The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
2328
public let trigger: String
2429

30+
2531
/// The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
2632
public let status: String
2733

34+
2835
/// HTTP request method type.
2936
public let requestMethod: String
3037

38+
3139
/// HTTP request path and query.
3240
public let requestPath: String
3341

42+
3443
/// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
3544
public let requestHeaders: [Headers]
3645

46+
3747
/// HTTP response status code.
3848
public let responseStatusCode: Int
3949

50+
4051
/// HTTP response body. This will return empty unless execution is created as synchronous.
4152
public let responseBody: String
4253

54+
4355
/// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
4456
public let responseHeaders: [Headers]
4557

58+
4659
/// Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
4760
public let logs: String
4861

62+
4963
/// Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
5064
public let errors: String
5165

66+
5267
/// Function execution duration in seconds.
5368
public let duration: Double
5469

70+
5571
/// The scheduled time for execution. If left empty, execution will be queued immediately.
56-
public let scheduledAt: String??
72+
public let scheduledAt: String?
73+
5774

5875

5976
init(
@@ -73,7 +90,7 @@ public class Execution {
7390
logs: String,
7491
errors: String,
7592
duration: Double,
76-
scheduledAt: String??
93+
scheduledAt: String?
7794
) {
7895
self.id = id
7996
self.createdAt = createdAt

Sources/AppwriteModels/ExecutionList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class ExecutionList {
77
/// Total number of executions documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of executions.
1112
public let executions: [Execution]
1213

1314

15+
1416
init(
1517
total: Int,
1618
executions: [Execution]

Sources/AppwriteModels/File.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,48 @@ public class File {
77
/// File ID.
88
public let id: String
99

10+
1011
/// Bucket ID.
1112
public let bucketId: String
1213

14+
1315
/// File creation date in ISO 8601 format.
1416
public let createdAt: String
1517

18+
1619
/// File update date in ISO 8601 format.
1720
public let updatedAt: String
1821

22+
1923
/// File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
2024
public let permissions: [Any]
2125

26+
2227
/// File name.
2328
public let name: String
2429

30+
2531
/// File MD5 signature.
2632
public let signature: String
2733

34+
2835
/// File mime type.
2936
public let mimeType: String
3037

38+
3139
/// File original size in bytes.
3240
public let sizeOriginal: Int
3341

42+
3443
/// Total number of chunks available
3544
public let chunksTotal: Int
3645

46+
3747
/// Total number of chunks uploaded
3848
public let chunksUploaded: Int
3949

4050

51+
4152
init(
4253
id: String,
4354
bucketId: String,

Sources/AppwriteModels/FileList.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ public class FileList {
77
/// Total number of files documents that matched your query.
88
public let total: Int
99

10+
1011
/// List of files.
1112
public let files: [File]
1213

1314

15+
1416
init(
1517
total: Int,
1618
files: [File]

0 commit comments

Comments
 (0)