8 Commits

Author SHA1 Message Date
Дмитрий
add54d15e5 update: package json version 2026-03-30 18:32:23 +03:00
Дмитрий
4f1a68df5a update: update publish file add git
Some checks failed
Publish / Publish Job (push) Failing after 2m31s
2026-03-30 18:28:41 +03:00
Дмитрий
9f5afc5a36 fix: ganerate proto file for golang
All checks were successful
Publish / Publish Job (push) Successful in 2m34s
2026-03-30 18:12:33 +03:00
Дмитрий
6666bb1a74 add: add go repository
All checks were successful
Publish / Publish Job (push) Successful in 2m28s
2026-03-30 16:40:36 +03:00
Дмитрий
f6366f14b5 fix: remove imports google any and status protobufs and add go package proto files
All checks were successful
Publish / Publish Job (push) Successful in 2m6s
2026-03-30 16:30:22 +03:00
Дмитрий
39d0e360a2 fix: remove imports google any and status protobufs
Some checks failed
Publish / Publish Job (push) Failing after 2m0s
2026-03-30 16:24:42 +03:00
Дмитрий
4f038b0f92 fix: remove imports google any and status protobufs
Some checks failed
Publish / Publish Job (push) Has been cancelled
2026-03-30 16:23:40 +03:00
Дмитрий
f592ccc021 fix: remove imports google any and status protobufs 2026-03-30 16:22:49 +03:00
9 changed files with 21 additions and 60 deletions

View File

@@ -48,10 +48,22 @@ jobs:
- name: Generate Protobuf - name: Generate Protobuf
run: | run: |
npm install -g ts-proto npm install -g ts-proto
mkdir -p ./gen/go # Создаем вложенную папку для Go
protoc -I ./proto ./proto/*.proto \ protoc -I ./proto ./proto/*.proto \
--ts_proto_out=nestJs=true,package=omit:./gen \ --ts_proto_out=nestJs=true,package=omit:./gen \
--go_out=Mgoogle/protobuf/any.proto=google.golang.org/protobuf/types/known/anypb,paths=source_relative:./gen \ --go_out=paths=source_relative:./gen/go \
--go-grpc_out=paths=source_relative:./gen --go-grpc_out=paths=source_relative:./gen/go
- name: Commit and push changes
run: |
# Представляемся Git-ботом
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Добавляем папку gen в индекс
git add ./gen
# Проверяем, есть ли изменения. Если есть — коммитим и пушим.
git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-generate protobuf files [skip ci]" && git push)
- name: Publish package - name: Publish package
run: npm publish run: npm publish

View File

@@ -1,16 +0,0 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.11.6
// protoc v7.34.1
// source: google/protobuf/any.proto
/* eslint-disable */
export const protobufPackage = "google.protobuf";
export interface Any {
typeUrl: string;
value: Uint8Array;
}
export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";

View File

@@ -1,18 +0,0 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.11.6
// protoc v7.34.1
// source: google/rpc/status.proto
/* eslint-disable */
import { Any } from "../protobuf/any";
export const protobufPackage = "google.rpc";
export interface Status {
code: number;
message: string;
details: Any[];
}
export const GOOGLE_RPC_PACKAGE_NAME = "google.rpc";

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module git.lendry.ru/lendry-erp/proto
go 1.26.1

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lendry-erp/contracts", "name": "@lendry-erp/contracts",
"version": "1.0.13", "version": "1.0.12",
"description": "Protobuf definitions and generated TypeScript types", "description": "Protobuf definitions and generated TypeScript types",
"type": "commonjs", "type": "commonjs",
"main": "./dist/index.js", "main": "./dist/index.js",

View File

@@ -1,9 +0,0 @@
syntax = "proto3";
package google.protobuf;
message Any {
string type_url = 1;
bytes value = 2;
}

View File

@@ -1,12 +0,0 @@
syntax = "proto3";
package google.rpc;
import "google/protobuf/any.proto";
message Status {
int32 code = 1;
string message = 2;
repeated google.protobuf.Any details = 3;
}

View File

@@ -1,8 +1,8 @@
syntax = "proto3"; syntax = "proto3";
package identity; package identity;
import "google/rpc/status.proto";
option go_package = './gen';
service AuthService { service AuthService {
rpc Login (LoginRequest) returns (LoginResponse); rpc Login (LoginRequest) returns (LoginResponse);
@@ -36,7 +36,6 @@ message LoginResponse {
optional string temp_token = 5; optional string temp_token = 5;
optional string message = 6; optional string message = 6;
optional string error_code = 7; optional string error_code = 7;
optional google.rpc.Status error = 8;
} }
message RefreshRequest { message RefreshRequest {

View File

@@ -2,6 +2,8 @@ syntax = "proto3";
package ldap_service; package ldap_service;
option go_package = "git.lendry.ru/lendry-erp/gen;ldap_service";
service LdapAuth { service LdapAuth {
rpc VerifyUser (VerifyRequest) returns (VerifyResponse); rpc VerifyUser (VerifyRequest) returns (VerifyResponse);
} }