diff --git a/CHANGELOG.md b/CHANGELOG.md index 7033bbdd..7e337941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 18.1.0 + +* Add `orderRandom` query support + ## 18.0.0 * Rename `CreditCard` enum value `unionChinaPay` to `unionPay` diff --git a/README.md b/README.md index 8d896938..36f787b4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - dart_appwrite: ^18.0.0 + dart_appwrite: ^18.1.0 ``` You can install packages from the command line: diff --git a/docs/examples/databases/create-line-attribute.md b/docs/examples/databases/create-line-attribute.md index aceaeb92..74e8e406 100644 --- a/docs/examples/databases/create-line-attribute.md +++ b/docs/examples/databases/create-line-attribute.md @@ -12,5 +12,5 @@ AttributeLine result = await databases.createLineAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) ); diff --git a/docs/examples/databases/create-point-attribute.md b/docs/examples/databases/create-point-attribute.md index 1c3bee66..7a630825 100644 --- a/docs/examples/databases/create-point-attribute.md +++ b/docs/examples/databases/create-point-attribute.md @@ -12,5 +12,5 @@ AttributePoint result = await databases.createPointAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [1, 2], // (optional) ); diff --git a/docs/examples/databases/create-polygon-attribute.md b/docs/examples/databases/create-polygon-attribute.md index 7c259739..b0fa8d6a 100644 --- a/docs/examples/databases/create-polygon-attribute.md +++ b/docs/examples/databases/create-polygon-attribute.md @@ -12,5 +12,5 @@ AttributePolygon result = await databases.createPolygonAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) ); diff --git a/docs/examples/databases/update-line-attribute.md b/docs/examples/databases/update-line-attribute.md index e29549c0..8787e844 100644 --- a/docs/examples/databases/update-line-attribute.md +++ b/docs/examples/databases/update-line-attribute.md @@ -12,6 +12,6 @@ AttributeLine result = await databases.updateLineAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/databases/update-point-attribute.md b/docs/examples/databases/update-point-attribute.md index 68cf1c53..d1a64941 100644 --- a/docs/examples/databases/update-point-attribute.md +++ b/docs/examples/databases/update-point-attribute.md @@ -12,6 +12,6 @@ AttributePoint result = await databases.updatePointAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [1, 2], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/databases/update-polygon-attribute.md b/docs/examples/databases/update-polygon-attribute.md index fc310666..35964759 100644 --- a/docs/examples/databases/update-polygon-attribute.md +++ b/docs/examples/databases/update-polygon-attribute.md @@ -12,6 +12,6 @@ AttributePolygon result = await databases.updatePolygonAttribute( collectionId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/tablesdb/create-line-column.md b/docs/examples/tablesdb/create-line-column.md index 60f00790..e9b578f4 100644 --- a/docs/examples/tablesdb/create-line-column.md +++ b/docs/examples/tablesdb/create-line-column.md @@ -12,5 +12,5 @@ ColumnLine result = await tablesDB.createLineColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) ); diff --git a/docs/examples/tablesdb/create-point-column.md b/docs/examples/tablesdb/create-point-column.md index 48b759ba..6e055170 100644 --- a/docs/examples/tablesdb/create-point-column.md +++ b/docs/examples/tablesdb/create-point-column.md @@ -12,5 +12,5 @@ ColumnPoint result = await tablesDB.createPointColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [1, 2], // (optional) ); diff --git a/docs/examples/tablesdb/create-polygon-column.md b/docs/examples/tablesdb/create-polygon-column.md index 550c0862..5e851f86 100644 --- a/docs/examples/tablesdb/create-polygon-column.md +++ b/docs/examples/tablesdb/create-polygon-column.md @@ -12,5 +12,5 @@ ColumnPolygon result = await tablesDB.createPolygonColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) ); diff --git a/docs/examples/tablesdb/update-line-column.md b/docs/examples/tablesdb/update-line-column.md index 26d879d3..53d7999d 100644 --- a/docs/examples/tablesdb/update-line-column.md +++ b/docs/examples/tablesdb/update-line-column.md @@ -12,6 +12,6 @@ ColumnLine result = await tablesDB.updateLineColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/tablesdb/update-point-column.md b/docs/examples/tablesdb/update-point-column.md index e0444b7f..5658393b 100644 --- a/docs/examples/tablesdb/update-point-column.md +++ b/docs/examples/tablesdb/update-point-column.md @@ -12,6 +12,6 @@ ColumnPoint result = await tablesDB.updatePointColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [1, 2], // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/tablesdb/update-polygon-column.md b/docs/examples/tablesdb/update-polygon-column.md index 60ae79b3..b98e8615 100644 --- a/docs/examples/tablesdb/update-polygon-column.md +++ b/docs/examples/tablesdb/update-polygon-column.md @@ -12,6 +12,6 @@ ColumnPolygon result = await tablesDB.updatePolygonColumn( tableId: '', key: '', xrequired: false, - xdefault: [[1,2], [3, 4]], // (optional) + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) newKey: '', // (optional) ); diff --git a/lib/query.dart b/lib/query.dart index 0bfc4796..bb1d2474 100644 --- a/lib/query.dart +++ b/lib/query.dart @@ -153,6 +153,9 @@ class Query { static String orderDesc(String attribute) => Query._('orderDesc', attribute).toString(); + /// Sort results randomly. + static String orderRandom() => Query._('orderRandom').toString(); + /// Return results before [id]. /// /// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination) diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index c105ecb1..2a92ede3 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -30,7 +30,7 @@ class ClientBrowser extends ClientBase with ClientMixin { 'x-sdk-name': 'Dart', 'x-sdk-platform': 'server', 'x-sdk-language': 'dart', - 'x-sdk-version': '18.0.0', + 'x-sdk-version': '18.1.0', 'X-Appwrite-Response-Format': '1.8.0', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index 50acd980..f4b867c4 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -36,9 +36,9 @@ class ClientIO extends ClientBase with ClientMixin { 'x-sdk-name': 'Dart', 'x-sdk-platform': 'server', 'x-sdk-language': 'dart', - 'x-sdk-version': '18.0.0', + 'x-sdk-version': '18.1.0', 'user-agent': - 'AppwriteDartSDK/18.0.0 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})', + 'AppwriteDartSDK/18.1.0 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})', 'X-Appwrite-Response-Format': '1.8.0', }; diff --git a/lib/src/models/deployment.dart b/lib/src/models/deployment.dart index 448c62c7..976976ea 100644 --- a/lib/src/models/deployment.dart +++ b/lib/src/models/deployment.dart @@ -62,9 +62,6 @@ class Deployment implements Model { /// The url of the vcs provider repository final String providerRepositoryUrl; - /// The branch of the vcs repository - final String providerBranch; - /// The commit hash of the vcs commit final String providerCommitHash; @@ -80,6 +77,9 @@ class Deployment implements Model { /// The url of the vcs commit final String providerCommitUrl; + /// The branch of the vcs repository + final String providerBranch; + /// The branch of the vcs repository final String providerBranchUrl; @@ -104,12 +104,12 @@ class Deployment implements Model { required this.providerRepositoryName, required this.providerRepositoryOwner, required this.providerRepositoryUrl, - required this.providerBranch, required this.providerCommitHash, required this.providerCommitAuthorUrl, required this.providerCommitAuthor, required this.providerCommitMessage, required this.providerCommitUrl, + required this.providerBranch, required this.providerBranchUrl, }); @@ -135,12 +135,12 @@ class Deployment implements Model { providerRepositoryName: map['providerRepositoryName'].toString(), providerRepositoryOwner: map['providerRepositoryOwner'].toString(), providerRepositoryUrl: map['providerRepositoryUrl'].toString(), - providerBranch: map['providerBranch'].toString(), providerCommitHash: map['providerCommitHash'].toString(), providerCommitAuthorUrl: map['providerCommitAuthorUrl'].toString(), providerCommitAuthor: map['providerCommitAuthor'].toString(), providerCommitMessage: map['providerCommitMessage'].toString(), providerCommitUrl: map['providerCommitUrl'].toString(), + providerBranch: map['providerBranch'].toString(), providerBranchUrl: map['providerBranchUrl'].toString(), ); } @@ -167,12 +167,12 @@ class Deployment implements Model { "providerRepositoryName": providerRepositoryName, "providerRepositoryOwner": providerRepositoryOwner, "providerRepositoryUrl": providerRepositoryUrl, - "providerBranch": providerBranch, "providerCommitHash": providerCommitHash, "providerCommitAuthorUrl": providerCommitAuthorUrl, "providerCommitAuthor": providerCommitAuthor, "providerCommitMessage": providerCommitMessage, "providerCommitUrl": providerCommitUrl, + "providerBranch": providerBranch, "providerBranchUrl": providerBranchUrl, }; } diff --git a/lib/src/models/execution.dart b/lib/src/models/execution.dart index 8dfbeab6..0da5c52f 100644 --- a/lib/src/models/execution.dart +++ b/lib/src/models/execution.dart @@ -32,7 +32,7 @@ class Execution implements Model { /// HTTP request path and query. final String requestPath; - /// 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. final List requestHeaders; /// HTTP response status code. diff --git a/lib/src/models/health_antivirus.dart b/lib/src/models/health_antivirus.dart index fa402e97..60db4b88 100644 --- a/lib/src/models/health_antivirus.dart +++ b/lib/src/models/health_antivirus.dart @@ -5,7 +5,7 @@ class HealthAntivirus implements Model { /// Antivirus version. final String version; - /// Antivirus status. Possible values can are: `disabled`, `offline`, `online` + /// Antivirus status. Possible values are: `disabled`, `offline`, `online` final String status; HealthAntivirus({required this.version, required this.status}); diff --git a/lib/src/models/health_status.dart b/lib/src/models/health_status.dart index 59b7092c..fe60eed5 100644 --- a/lib/src/models/health_status.dart +++ b/lib/src/models/health_status.dart @@ -8,7 +8,7 @@ class HealthStatus implements Model { /// Duration in milliseconds how long the health check took. final int ping; - /// Service status. Possible values can are: `pass`, `fail` + /// Service status. Possible values are: `pass`, `fail` final String status; HealthStatus({required this.name, required this.ping, required this.status}); diff --git a/pubspec.yaml b/pubspec.yaml index 0afd93b1..577eb12a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_appwrite -version: 18.0.0 +version: 18.1.0 description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API homepage: https://appwrite.io repository: https://github.com/appwrite/sdk-for-dart diff --git a/test/query_test.dart b/test/query_test.dart index 14dcb151..169f345e 100644 --- a/test/query_test.dart +++ b/test/query_test.dart @@ -186,6 +186,13 @@ void main() { expect(query['method'], 'orderDesc'); }); + test('returns orderRandom', () { + final query = jsonDecode(Query.orderRandom()); + expect(query['attribute'], null); + expect(query['values'], null); + expect(query['method'], 'orderRandom'); + }); + test('returns cursorBefore', () { final query = jsonDecode(Query.cursorBefore('custom')); expect(query['attribute'], null); diff --git a/test/services/functions_test.dart b/test/services/functions_test.dart index c7eac047..f77ebb15 100644 --- a/test/services/functions_test.dart +++ b/test/services/functions_test.dart @@ -334,12 +334,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -383,12 +383,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -427,12 +427,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -474,12 +474,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -519,12 +519,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -592,12 +592,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; diff --git a/test/services/sites_test.dart b/test/services/sites_test.dart index e10012eb..728022d8 100644 --- a/test/services/sites_test.dart +++ b/test/services/sites_test.dart @@ -340,12 +340,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -389,12 +389,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -433,12 +433,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -480,12 +480,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -525,12 +525,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; @@ -598,12 +598,12 @@ void main() { 'providerRepositoryName': 'database', 'providerRepositoryOwner': 'utopia', 'providerRepositoryUrl': 'https://github.com/vermakhushboo/g4-node-function', - 'providerBranch': '0.7.x', 'providerCommitHash': '7c3f25d', 'providerCommitAuthorUrl': 'https://github.com/vermakhushboo', 'providerCommitAuthor': 'Khushboo Verma', 'providerCommitMessage': 'Update index.js', 'providerCommitUrl': 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + 'providerBranch': '0.7.x', 'providerBranchUrl': 'https://github.com/vermakhushboo/appwrite/tree/0.7.x',}; diff --git a/test/src/models/deployment_test.dart b/test/src/models/deployment_test.dart index 80c2c9b9..68ce2045 100644 --- a/test/src/models/deployment_test.dart +++ b/test/src/models/deployment_test.dart @@ -25,12 +25,12 @@ void main() { providerRepositoryName: 'database', providerRepositoryOwner: 'utopia', providerRepositoryUrl: 'https://github.com/vermakhushboo/g4-node-function', - providerBranch: '0.7.x', providerCommitHash: '7c3f25d', providerCommitAuthorUrl: 'https://github.com/vermakhushboo', providerCommitAuthor: 'Khushboo Verma', providerCommitMessage: 'Update index.js', providerCommitUrl: 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb', + providerBranch: '0.7.x', providerBranchUrl: 'https://github.com/vermakhushboo/appwrite/tree/0.7.x', ); @@ -57,12 +57,12 @@ void main() { expect(result.providerRepositoryName, 'database'); expect(result.providerRepositoryOwner, 'utopia'); expect(result.providerRepositoryUrl, 'https://github.com/vermakhushboo/g4-node-function'); - expect(result.providerBranch, '0.7.x'); expect(result.providerCommitHash, '7c3f25d'); expect(result.providerCommitAuthorUrl, 'https://github.com/vermakhushboo'); expect(result.providerCommitAuthor, 'Khushboo Verma'); expect(result.providerCommitMessage, 'Update index.js'); expect(result.providerCommitUrl, 'https://github.com/vermakhushboo/g4-node-function/commit/60c0416257a9cbcdd96b2d370c38d8f8d150ccfb'); + expect(result.providerBranch, '0.7.x'); expect(result.providerBranchUrl, 'https://github.com/vermakhushboo/appwrite/tree/0.7.x'); }); });