From 47e9aa47b9ef984900abbc314f8251f7116cc29d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Apr 2026 05:18:19 +0000 Subject: [PATCH] chore: auto-generate protobuf files [skip ci] --- gen/account.ts | 4 ++-- gen/go/account.pb.go | 29 +++++++++++++++-------------- gen/go/account_grpc.pb.go | 4 ++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/gen/account.ts b/gen/account.ts index 1be5286..4770e53 100644 --- a/gen/account.ts +++ b/gen/account.ts @@ -9,7 +9,7 @@ import type { Metadata } from "@grpc/grpc-js"; import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; -export const protobufPackage = "account"; +export const protobufPackage = "account.v1"; export enum Presence { PRESENCE_UNSPECIFIED = 0, @@ -43,7 +43,7 @@ export interface GetAccountResponse { hasPin: boolean; } -export const ACCOUNT_PACKAGE_NAME = "account"; +export const ACCOUNT_V1_PACKAGE_NAME = "account.v1"; export interface AccountServiceClient { getAccount(request: GetAccountRequest, metadata?: Metadata): Observable; diff --git a/gen/go/account.pb.go b/gen/go/account.pb.go index 7c9c933..f26f747 100644 --- a/gen/go/account.pb.go +++ b/gen/go/account.pb.go @@ -126,7 +126,7 @@ type GetAccountResponse struct { Roles []string `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"` AvatarUrl string `protobuf:"bytes,9,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` EmployeeId *string `protobuf:"bytes,10,opt,name=employee_id,json=employeeId,proto3,oneof" json:"employee_id,omitempty"` - Presence Presence `protobuf:"varint,11,opt,name=presence,proto3,enum=account.Presence" json:"presence,omitempty"` + Presence Presence `protobuf:"varint,11,opt,name=presence,proto3,enum=account.v1.Presence" json:"presence,omitempty"` LastActive string `protobuf:"bytes,12,opt,name=last_active,json=lastActive,proto3" json:"last_active,omitempty"` CustomStatusText string `protobuf:"bytes,13,opt,name=custom_status_text,json=customStatusText,proto3" json:"custom_status_text,omitempty"` CustomStatusEmoji string `protobuf:"bytes,14,opt,name=custom_status_emoji,json=customStatusEmoji,proto3" json:"custom_status_emoji,omitempty"` @@ -298,9 +298,10 @@ var File_account_proto protoreflect.FileDescriptor const file_account_proto_rawDesc = "" + "\n" + - "\raccount.proto\x12\aaccount\"#\n" + + "\raccount.proto\x12\n" + + "account.v1\"#\n" + "\x11GetAccountRequest\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"\xca\x04\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\xcd\x04\n" + "\x12GetAccountResponse\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" + "\busername\x18\x02 \x01(\tR\busername\x12\x14\n" + @@ -314,8 +315,8 @@ const file_account_proto_rawDesc = "" + "avatar_url\x18\t \x01(\tR\tavatarUrl\x12$\n" + "\vemployee_id\x18\n" + " \x01(\tH\x00R\n" + - "employeeId\x88\x01\x01\x12-\n" + - "\bpresence\x18\v \x01(\x0e2\x11.account.PresenceR\bpresence\x12\x1f\n" + + "employeeId\x88\x01\x01\x120\n" + + "\bpresence\x18\v \x01(\x0e2\x14.account.v1.PresenceR\bpresence\x12\x1f\n" + "\vlast_active\x18\f \x01(\tR\n" + "lastActive\x12,\n" + "\x12custom_status_text\x18\r \x01(\tR\x10customStatusText\x12.\n" + @@ -329,10 +330,10 @@ const file_account_proto_rawDesc = "" + "\x14PRESENCE_UNSPECIFIED\x10\x00\x12\v\n" + "\aOFFLINE\x10\x01\x12\n" + "\n" + - "\x06ONLINE\x10\x022W\n" + - "\x0eAccountService\x12E\n" + + "\x06ONLINE\x10\x022]\n" + + "\x0eAccountService\x12K\n" + "\n" + - "GetAccount\x12\x1a.account.GetAccountRequest\x1a\x1b.account.GetAccountResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3" + "GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3" var ( file_account_proto_rawDescOnce sync.Once @@ -349,14 +350,14 @@ func file_account_proto_rawDescGZIP() []byte { var file_account_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_account_proto_goTypes = []any{ - (Presence)(0), // 0: account.Presence - (*GetAccountRequest)(nil), // 1: account.GetAccountRequest - (*GetAccountResponse)(nil), // 2: account.GetAccountResponse + (Presence)(0), // 0: account.v1.Presence + (*GetAccountRequest)(nil), // 1: account.v1.GetAccountRequest + (*GetAccountResponse)(nil), // 2: account.v1.GetAccountResponse } var file_account_proto_depIdxs = []int32{ - 0, // 0: account.GetAccountResponse.presence:type_name -> account.Presence - 1, // 1: account.AccountService.GetAccount:input_type -> account.GetAccountRequest - 2, // 2: account.AccountService.GetAccount:output_type -> account.GetAccountResponse + 0, // 0: account.v1.GetAccountResponse.presence:type_name -> account.v1.Presence + 1, // 1: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest + 2, // 2: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse 2, // [2:3] is the sub-list for method output_type 1, // [1:2] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name diff --git a/gen/go/account_grpc.pb.go b/gen/go/account_grpc.pb.go index bce451c..6fe6054 100644 --- a/gen/go/account_grpc.pb.go +++ b/gen/go/account_grpc.pb.go @@ -19,7 +19,7 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - AccountService_GetAccount_FullMethodName = "/account.AccountService/GetAccount" + AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount" ) // AccountServiceClient is the client API for AccountService service. @@ -108,7 +108,7 @@ func _AccountService_GetAccount_Handler(srv interface{}, ctx context.Context, de // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AccountService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "account.AccountService", + ServiceName: "account.v1.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ {