mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-12 09:05:12 +00:00
chore: move converter methods users v2 to separate converter package + add tests (#10567)
# Which Problems Are Solved As requested by @adlerhurst in https://github.com/zitadel/zitadel/pull/10415#discussion_r2298087711 , I am moving the refactoring of v2 user converter methods to a separate PR # How the Problems Are Solved Cherry-pick 648c234caf618e9b1cf9f093826d94e79883a73a # Additional Context Parent of https://github.com/zitadel/zitadel/pull/10415
This commit is contained in:
@@ -31,6 +31,11 @@ enum TimestampFilterMethod {
|
||||
TIMESTAMP_FILTER_METHOD_BEFORE_OR_EQUALS = 4;
|
||||
}
|
||||
|
||||
enum ByteFilterMethod {
|
||||
BYTE_FILTER_METHOD_EQUALS = 0;
|
||||
BYTE_FILTER_METHOD_NOT_EQUALS = 1;
|
||||
}
|
||||
|
||||
message PaginationRequest {
|
||||
// Starting point for retrieval, in combination of offset used to query a set list of objects.
|
||||
uint64 offset = 1 [
|
||||
|
||||
@@ -54,4 +54,20 @@ message MetadataKeyFilter {
|
||||
description: "defines which text equality method is used";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message MetadataValueFilter {
|
||||
bytes value = 1 [
|
||||
(validate.rules).bytes = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"bXkgdmFsdWU=\""
|
||||
description: "A base64 encoded value"
|
||||
}
|
||||
];
|
||||
zitadel.filter.v2.ByteFilterMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines which bytes equality method is used";
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
import "zitadel/user/v2/user.proto";
|
||||
import "zitadel/object/v2/object.proto";
|
||||
import "zitadel/metadata/v2/metadata.proto";
|
||||
|
||||
message SearchQuery {
|
||||
oneof query {
|
||||
@@ -31,6 +32,8 @@ message SearchQuery {
|
||||
InUserEmailsQuery in_user_emails_query = 14;
|
||||
OrganizationIdQuery organization_id_query = 15;
|
||||
PhoneQuery phone_query = 16;
|
||||
zitadel.metadata.v2.MetadataKeyFilter metadata_key_filter = 17;
|
||||
zitadel.metadata.v2.MetadataValueFilter metadata_value_filter = 18;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user