Skip to content

Commit

Permalink
group is repeated
Browse files Browse the repository at this point in the history
  • Loading branch information
miqayelsrapionyan committed Jul 31, 2024
1 parent e8147b9 commit e4fe3a9
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/GPBMetadata/Proto/Translation.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions build/TranslationPackage/Group.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions build/TranslationPackage/TranslationQuery.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/translation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message TranslationQuery {
string search = 6;
OrderBy order_by = 7;
bool find_all = 8;
TranslationGroup group = 9;
repeated Group group = 9;
}

message TranslationItem {
Expand Down Expand Up @@ -51,7 +51,7 @@ enum OrderByDirection {
DESC = 2;
}

enum TranslationGroup {
enum Group {
UNSPECIFIED_GROUP = 0; // in case of 0 it is not sending data, this field is skipping 0 value
DEFAULTS = 1;
CHECKOUT = 2;
Expand Down
6 changes: 3 additions & 3 deletions src/ValueObjects/QueryTranslationItemsValueObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
protected readonly int $page = 0,
protected readonly int $first = 10,
protected readonly bool $findAll = false,
protected readonly int $group = 1,
protected readonly array $group = [],
){
}

Expand All @@ -31,9 +31,9 @@ public function getFindAll(): bool
}

/**
* @return int
* @return array
*/
public function getGroup(): int
public function getGroup(): array
{
return $this->group;
}
Expand Down

0 comments on commit e4fe3a9

Please sign in to comment.