diff --git a/README.md b/README.md index 1283945..4f0ed84 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies: ```swift dependencies: [ - .package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "12.0.0"), + .package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "12.1.0"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index 6047fe5..cc5e009 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -23,7 +23,7 @@ open class Client { "x-sdk-name": "Apple", "x-sdk-platform": "client", "x-sdk-language": "apple", - "x-sdk-version": "12.0.0", + "x-sdk-version": "12.1.0", "x-appwrite-response-format": "1.8.0" ] diff --git a/Sources/Appwrite/Query.swift b/Sources/Appwrite/Query.swift index 5af7f4a..e4f06b5 100644 --- a/Sources/Appwrite/Query.swift +++ b/Sources/Appwrite/Query.swift @@ -280,6 +280,12 @@ public struct Query : Codable, CustomStringConvertible { ).description } + public static func orderRandom() -> String { + return Query( + method: "orderRandom" + ).description + } + public static func cursorBefore(_ id: String) -> String { return Query( method: "cursorBefore", diff --git a/Sources/AppwriteModels/Execution.swift b/Sources/AppwriteModels/Execution.swift index baaf71e..069264b 100644 --- a/Sources/AppwriteModels/Execution.swift +++ b/Sources/AppwriteModels/Execution.swift @@ -55,7 +55,7 @@ open class Execution: Codable { /// HTTP request path and query. public let requestPath: String - /// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. + /// HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. public let requestHeaders: [Headers] /// HTTP response status code.