From 43e1d4c22d5de8043c446c1d6d95f7b993944f5e Mon Sep 17 00:00:00 2001 From: Nik Spyratos <17888779+nikspyratos@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:37:58 +0200 Subject: [PATCH 1/2] Feat: Add support for operations/schema_changes endpoint --- src/Operations.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Operations.php b/src/Operations.php index 661c5974..4a7c1a5e 100644 --- a/src/Operations.php +++ b/src/Operations.php @@ -45,4 +45,13 @@ public function perform(string $operationName, array $queryParameters = []): arr $queryParameters ); } + + /** + * @return array + * @throws TypesenseClientError|HttpClientException + */ + public function getSchemaChangeStatus(): array + { + return $this->apiCall->get(sprintf('%s/%s', static::RESOURCE_PATH, 'schema_changes') + } } From 6fc88056868920c8020d53f95ccd5cb58a009195 Mon Sep 17 00:00:00 2001 From: Nik Spyratos <17888779+nikspyratos@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:45:10 +0200 Subject: [PATCH 2/2] Fix: Syntax --- src/Operations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Operations.php b/src/Operations.php index 4a7c1a5e..ea24fe94 100644 --- a/src/Operations.php +++ b/src/Operations.php @@ -52,6 +52,6 @@ public function perform(string $operationName, array $queryParameters = []): arr */ public function getSchemaChangeStatus(): array { - return $this->apiCall->get(sprintf('%s/%s', static::RESOURCE_PATH, 'schema_changes') + return $this->apiCall->get(sprintf('%s/%s', static::RESOURCE_PATH, 'schema_changes'), []); } }