Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add billing related data in Org Search API #383

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
8 changes: 6 additions & 2 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -865,12 +865,16 @@ message SearchOrganizationsResponse {
string state = 6;
string avatar = 7;
string created_by = 8;
string billing_plan_name = 9;
string plan = 9;
string payment_mode = 10 [(validate.rules).string = {in: ["prepaid", "postpaid"]}];
google.protobuf.Timestamp billing_cycle_ends_at = 11;
google.protobuf.Timestamp cycle_end_at = 11;
string country = 12;
string subscription_state = 14;
string plan_interval = 15;
string plan_id = 16;
}

repeated OrganizationResult organizations = 1;
RQLQueryPaginationResponse pagination = 2;
RQLQueryGroupResponse group = 3;
}
12 changes: 11 additions & 1 deletion raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ message RQLFilter {
}

message RQLSort {
string key = 1;
string name = 1;
string order = 2 [(validate.rules).string = {in: ["asc", "desc"]}];
}

Expand All @@ -1002,3 +1002,13 @@ message RQLQueryPaginationResponse {
uint32 limit = 2;
uint32 total_count = 3;
}

message RQLQueryGroupResponse {
string name = 1;
repeated RQLQueryGroupData data = 2;
}

message RQLQueryGroupData {
string name = 1;
uint32 count = 2;
}
Loading