Skip to content

Commit

Permalink
chore: add tags field to account api proto file
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Yuichi Okimoto <[email protected]>
  • Loading branch information
cre8ivejp committed Jan 15, 2025
1 parent d5aaa2b commit f4ea2f1
Show file tree
Hide file tree
Showing 11 changed files with 1,548 additions and 1,283 deletions.
2 changes: 2 additions & 0 deletions api-description/apidocs.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ paths:
- ENVIRONMENT_COUNT
- LAST_SEEN
- STATE
- TAGS
default: DEFAULT
- name: orderDirection
in: query
Expand Down Expand Up @@ -1563,6 +1564,7 @@ definitions:
- ENVIRONMENT_COUNT
- LAST_SEEN
- STATE
- TAGS
default: DEFAULT
accountListAccountsV2RequestOrderDirection:
type: string
Expand Down
17 changes: 17 additions & 0 deletions api-description/web-api.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ paths:
- ENVIRONMENT_COUNT
- LAST_SEEN
- STATE
- TAGS
default: DEFAULT
- name: orderDirection
in: query
Expand Down Expand Up @@ -925,6 +926,13 @@ paths:
required: false
type: integer
format: int32
- name: tags
in: query
required: false
type: array
items:
type: string
collectionFormat: multi
tags:
- Account
/v1/account/list_api_keys:
Expand Down Expand Up @@ -4776,6 +4784,10 @@ definitions:
type: string
language:
type: string
tags:
type: array
items:
type: string
accountCreateAccountV2Response:
type: object
properties:
Expand Down Expand Up @@ -4989,6 +5001,7 @@ definitions:
- ENVIRONMENT_COUNT
- LAST_SEEN
- STATE
- TAGS
default: DEFAULT
accountListAccountsV2RequestOrderDirection:
type: string
Expand Down Expand Up @@ -5092,6 +5105,10 @@ definitions:
$ref: '#/definitions/UpdateAccountV2RequestAccountV2Avatar'
disabled:
type: boolean
tags:
type: array
items:
type: string
accountUpdateAccountV2Response:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion manifests/bucketeer/charts/api/values.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifests/bucketeer/charts/web/values.yaml

Large diffs are not rendered by default.

Binary file modified proto/account/proto_descriptor.pb
Binary file not shown.
2,580 changes: 1,306 additions & 1,274 deletions proto/account/service.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions proto/account/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ message CreateAccountV2Request {
string first_name = 8;
string last_name = 9;
string language = 10;
repeated string tags = 11;
}

message CreateAccountV2Response {
Expand Down Expand Up @@ -130,6 +131,7 @@ message UpdateAccountV2Request {
google.protobuf.Int64Value last_seen = 19;
AccountV2Avatar avatar = 20;
google.protobuf.BoolValue disabled = 21;
repeated string tags = 22;
}

message UpdateAccountV2Response {
Expand Down Expand Up @@ -164,6 +166,7 @@ message ListAccountsV2Request {
ENVIRONMENT_COUNT = 5;
LAST_SEEN = 6;
STATE = 7;
TAGS = 8;
}
enum OrderDirection {
ASC = 0;
Expand All @@ -179,6 +182,7 @@ message ListAccountsV2Request {
google.protobuf.Int32Value organization_role = 8;
google.protobuf.StringValue environment_id = 9;
google.protobuf.Int32Value environment_role = 10;
repeated string tags = 11;
}

message ListAccountsV2Response {
Expand Down
Binary file modified proto/gateway/proto_descriptor.pb
Binary file not shown.
22 changes: 22 additions & 0 deletions proto/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,10 @@
{
"name": "STATE",
"integer": 7
},
{
"name": "TAGS",
"integer": 8
}
]
},
Expand Down Expand Up @@ -1084,6 +1088,12 @@
"id": 10,
"name": "language",
"type": "string"
},
{
"id": 11,
"name": "tags",
"type": "string",
"is_repeated": true
}
]
},
Expand Down Expand Up @@ -1360,6 +1370,12 @@
"id": 21,
"name": "disabled",
"type": "google.protobuf.BoolValue"
},
{
"id": 22,
"name": "tags",
"type": "string",
"is_repeated": true
}
],
"messages": [
Expand Down Expand Up @@ -1502,6 +1518,12 @@
"id": 10,
"name": "environment_role",
"type": "google.protobuf.Int32Value"
},
{
"id": 11,
"name": "tags",
"type": "string",
"is_repeated": true
}
]
},
Expand Down
19 changes: 19 additions & 0 deletions ui/web-v2/src/proto/account/service_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ export class CreateAccountV2Request extends jspb.Message {
getLanguage(): string;
setLanguage(value: string): void;

clearTagsList(): void;
getTagsList(): Array<string>;
setTagsList(value: Array<string>): void;
addTags(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateAccountV2Request.AsObject;
static toObject(
Expand Down Expand Up @@ -247,6 +252,7 @@ export namespace CreateAccountV2Request {
firstName: string;
lastName: string;
language: string;
tagsList: Array<string>;
};
}

Expand Down Expand Up @@ -645,6 +651,11 @@ export class UpdateAccountV2Request extends jspb.Message {
getDisabled(): google_protobuf_wrappers_pb.BoolValue | undefined;
setDisabled(value?: google_protobuf_wrappers_pb.BoolValue): void;

clearTagsList(): void;
getTagsList(): Array<string>;
setTagsList(value: Array<string>): void;
addTags(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateAccountV2Request.AsObject;
static toObject(
Expand Down Expand Up @@ -689,6 +700,7 @@ export namespace UpdateAccountV2Request {
lastSeen?: google_protobuf_wrappers_pb.Int64Value.AsObject;
avatar?: UpdateAccountV2Request.AccountV2Avatar.AsObject;
disabled?: google_protobuf_wrappers_pb.BoolValue.AsObject;
tagsList: Array<string>;
};

export class AccountV2Avatar extends jspb.Message {
Expand Down Expand Up @@ -982,6 +994,11 @@ export class ListAccountsV2Request extends jspb.Message {
getEnvironmentRole(): google_protobuf_wrappers_pb.Int32Value | undefined;
setEnvironmentRole(value?: google_protobuf_wrappers_pb.Int32Value): void;

clearTagsList(): void;
getTagsList(): Array<string>;
setTagsList(value: Array<string>): void;
addTags(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListAccountsV2Request.AsObject;
static toObject(
Expand Down Expand Up @@ -1015,6 +1032,7 @@ export namespace ListAccountsV2Request {
organizationRole?: google_protobuf_wrappers_pb.Int32Value.AsObject;
environmentId?: google_protobuf_wrappers_pb.StringValue.AsObject;
environmentRole?: google_protobuf_wrappers_pb.Int32Value.AsObject;
tagsList: Array<string>;
};

export interface OrderByMap {
Expand All @@ -1026,6 +1044,7 @@ export namespace ListAccountsV2Request {
ENVIRONMENT_COUNT: 5;
LAST_SEEN: 6;
STATE: 7;
TAGS: 8;
}

export const OrderBy: OrderByMap;
Expand Down
Loading

0 comments on commit f4ea2f1

Please sign in to comment.