Skip to content

Commit 33323f5

Browse files
committed
Add support for expand=originalStoragePath in SearchRequest.
1 parent cf46b45 commit 33323f5

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

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

3+
## 9.4.2 - 2025-09-29
4+
5+
Add support for expand=originalStoragePath in SearchRequest.
6+
37
## 9.4.1 - 2025-09-11
48

59
Return ProcessResponse from AssetUpdateStartRequest.
610

711
## 9.4.0 - 2025-09-10
812

9-
Added support for AssetUpdateStartRequest (private API).
13+
Add support for AssetUpdateStartRequest (private API).
1014

1115
## 9.3.0 - 2025-08-18
1216

src/Service/AssetResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function __construct(
2323
#[MapFromJson] readonly string $previewUrl = '',
2424
#[MapFromJson] readonly string $thumbnailUrl = '',
2525
#[MapFromJson] readonly array $relation = [],
26-
readonly ?AssetResponseList $thumbnailHits = null
26+
readonly ?AssetResponseList $thumbnailHits = null,
27+
#[MapFromJson] readonly string $originalStoragePath = '',
2728
)
2829
{
2930
}

src/Service/SearchRequest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class SearchRequest extends Request
2121
const bool APPEND_REQUEST_SECRET_DEFAULT = false;
2222
const bool RETURN_HIGHLIGHTED_TEXT_DEFAULT = true;
2323
const bool RETURN_THUMBNAIL_HITS_DEFAULT = false;
24+
const string EXPAND_ORIGINAL_STORAGE_PATH = 'originalStoragePath';
2425

2526

2627
public function __construct(
@@ -34,7 +35,8 @@ public function __construct(
3435
readonly bool $appendRequestSecret = self::APPEND_REQUEST_SECRET_DEFAULT,
3536
readonly bool $returnHighlightedText = self::RETURN_HIGHLIGHTED_TEXT_DEFAULT,
3637
readonly bool $returnThumbnailHits = self::RETURN_THUMBNAIL_HITS_DEFAULT,
37-
readonly string $json = ''
38+
readonly string $json = '',
39+
readonly array $expand = [],
3840
) {
3941
parent::__construct($assetsClient);
4042
}
@@ -89,6 +91,10 @@ protected function toArray(): array
8991
$params['metadataToReturn'] = implode(',', $this->metadataToReturn);
9092
}
9193

94+
if (count($this->expand) > 0) {
95+
$params['expand'] = implode(',', $this->expand);
96+
}
97+
9298
if (count($this->facets) > 0) {
9399
$params['facets'] = implode(',', $this->facets);
94100
}

0 commit comments

Comments
 (0)