@citec-spbu/common 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,17 +3,17 @@ export declare const GRPC_CLIENTS: {
3
3
  readonly package: "auth.v1";
4
4
  readonly protoPath: string;
5
5
  readonly loader: {
6
- readonly includeDirs: [string];
7
- readonly keepCase?: boolean;
8
- readonly alternateCommentMode?: boolean;
9
- readonly longs?: Function;
10
- readonly enums?: Function;
11
- readonly bytes?: Function;
12
- readonly defaults?: boolean;
13
- readonly arrays?: boolean;
14
- readonly objects?: boolean;
15
- readonly oneofs?: boolean;
16
- readonly json?: boolean;
6
+ keepCase?: boolean;
7
+ alternateCommentMode?: boolean;
8
+ longs?: Function;
9
+ enums?: Function;
10
+ bytes?: Function;
11
+ defaults?: boolean;
12
+ arrays?: boolean;
13
+ objects?: boolean;
14
+ oneofs?: boolean;
15
+ json?: boolean;
16
+ includeDirs?: string[];
17
17
  };
18
18
  };
19
19
  readonly ACCOUNT_PACKAGE: {
@@ -50,4 +50,140 @@ export declare const GRPC_CLIENTS: {
50
50
  includeDirs?: string[];
51
51
  };
52
52
  };
53
+ readonly COMMITS_PACKAGE: {
54
+ readonly package: "commits.v1";
55
+ readonly protoPath: string;
56
+ readonly loader: {
57
+ keepCase?: boolean;
58
+ alternateCommentMode?: boolean;
59
+ longs?: Function;
60
+ enums?: Function;
61
+ bytes?: Function;
62
+ defaults?: boolean;
63
+ arrays?: boolean;
64
+ objects?: boolean;
65
+ oneofs?: boolean;
66
+ json?: boolean;
67
+ includeDirs?: string[];
68
+ };
69
+ };
70
+ readonly PULL_REQUESTS_PACKAGE: {
71
+ readonly package: "pull_requests.v1";
72
+ readonly protoPath: string;
73
+ readonly loader: {
74
+ keepCase?: boolean;
75
+ alternateCommentMode?: boolean;
76
+ longs?: Function;
77
+ enums?: Function;
78
+ bytes?: Function;
79
+ defaults?: boolean;
80
+ arrays?: boolean;
81
+ objects?: boolean;
82
+ oneofs?: boolean;
83
+ json?: boolean;
84
+ includeDirs?: string[];
85
+ };
86
+ };
87
+ readonly ISUUES_PACKAGE: {
88
+ readonly package: "issues.v1";
89
+ readonly protoPath: string;
90
+ readonly loader: {
91
+ keepCase?: boolean;
92
+ alternateCommentMode?: boolean;
93
+ longs?: Function;
94
+ enums?: Function;
95
+ bytes?: Function;
96
+ defaults?: boolean;
97
+ arrays?: boolean;
98
+ objects?: boolean;
99
+ oneofs?: boolean;
100
+ json?: boolean;
101
+ includeDirs?: string[];
102
+ };
103
+ };
104
+ readonly REPOSITORIES_PACKAGE: {
105
+ readonly package: "repositories.v1";
106
+ readonly protoPath: string;
107
+ readonly loader: {
108
+ keepCase?: boolean;
109
+ alternateCommentMode?: boolean;
110
+ longs?: Function;
111
+ enums?: Function;
112
+ bytes?: Function;
113
+ defaults?: boolean;
114
+ arrays?: boolean;
115
+ objects?: boolean;
116
+ oneofs?: boolean;
117
+ json?: boolean;
118
+ includeDirs?: string[];
119
+ };
120
+ };
121
+ readonly SCM_USERS_PACKAGE: {
122
+ readonly package: "scm_users.v1";
123
+ readonly protoPath: string;
124
+ readonly loader: {
125
+ keepCase?: boolean;
126
+ alternateCommentMode?: boolean;
127
+ longs?: Function;
128
+ enums?: Function;
129
+ bytes?: Function;
130
+ defaults?: boolean;
131
+ arrays?: boolean;
132
+ objects?: boolean;
133
+ oneofs?: boolean;
134
+ json?: boolean;
135
+ includeDirs?: string[];
136
+ };
137
+ };
138
+ readonly ORGANIZATIONS_PACKAGE: {
139
+ readonly package: "organizations.v1";
140
+ readonly protoPath: string;
141
+ readonly loader: {
142
+ keepCase?: boolean;
143
+ alternateCommentMode?: boolean;
144
+ longs?: Function;
145
+ enums?: Function;
146
+ bytes?: Function;
147
+ defaults?: boolean;
148
+ arrays?: boolean;
149
+ objects?: boolean;
150
+ oneofs?: boolean;
151
+ json?: boolean;
152
+ includeDirs?: string[];
153
+ };
154
+ };
155
+ readonly ISSUE_ASSIGNEES_PACKAGE: {
156
+ readonly package: "issue_assignees.v1";
157
+ readonly protoPath: string;
158
+ readonly loader: {
159
+ keepCase?: boolean;
160
+ alternateCommentMode?: boolean;
161
+ longs?: Function;
162
+ enums?: Function;
163
+ bytes?: Function;
164
+ defaults?: boolean;
165
+ arrays?: boolean;
166
+ objects?: boolean;
167
+ oneofs?: boolean;
168
+ json?: boolean;
169
+ includeDirs?: string[];
170
+ };
171
+ };
172
+ readonly REPOSITORY_MEMBERSHIP_PACKAGE: {
173
+ readonly package: "repository_memberships.v1";
174
+ readonly protoPath: string;
175
+ readonly loader: {
176
+ keepCase?: boolean;
177
+ alternateCommentMode?: boolean;
178
+ longs?: Function;
179
+ enums?: Function;
180
+ bytes?: Function;
181
+ defaults?: boolean;
182
+ arrays?: boolean;
183
+ objects?: boolean;
184
+ oneofs?: boolean;
185
+ json?: boolean;
186
+ includeDirs?: string[];
187
+ };
188
+ };
53
189
  };
@@ -1,26 +1,31 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.GRPC_CLIENTS = void 0;
7
4
  const contracts_1 = require("@citec-spbu/contracts");
8
5
  const account_1 = require("@citec-spbu/contracts/gen/ts/account");
9
6
  const auth_1 = require("@citec-spbu/contracts/gen/ts/auth");
7
+ const commits_1 = require("@citec-spbu/contracts/gen/ts/commits");
8
+ const issue_assignees_1 = require("@citec-spbu/contracts/gen/ts/issue_assignees");
9
+ const issues_1 = require("@citec-spbu/contracts/gen/ts/issues");
10
+ const organizations_1 = require("@citec-spbu/contracts/gen/ts/organizations");
11
+ const pull_requests_1 = require("@citec-spbu/contracts/gen/ts/pull_requests");
12
+ const repositories_1 = require("@citec-spbu/contracts/gen/ts/repositories");
13
+ const repository_memberships_1 = require("@citec-spbu/contracts/gen/ts/repository_memberships");
14
+ const scm_users_1 = require("@citec-spbu/contracts/gen/ts/scm_users");
10
15
  const users_1 = require("@citec-spbu/contracts/gen/ts/users");
11
- const node_path_1 = __importDefault(require("node:path"));
12
16
  const grpcLoader = {
13
17
  keepCase: false,
14
18
  longs: String,
15
19
  enums: String,
16
20
  defaults: true,
17
- oneofs: true
21
+ oneofs: true,
22
+ includeDirs: [contracts_1.PROTO_PATHS.ROOT]
18
23
  };
19
24
  exports.GRPC_CLIENTS = {
20
25
  AUTH_PACKAGE: {
21
26
  package: auth_1.AUTH_V1_PACKAGE_NAME,
22
27
  protoPath: contracts_1.PROTO_PATHS.AUTH,
23
- loader: { ...grpcLoader, includeDirs: [node_path_1.default.dirname(contracts_1.PROTO_PATHS.ACCOUNT)] }
28
+ loader: grpcLoader
24
29
  },
25
30
  ACCOUNT_PACKAGE: {
26
31
  package: account_1.ACCOUNT_V1_PACKAGE_NAME,
@@ -31,5 +36,45 @@ exports.GRPC_CLIENTS = {
31
36
  package: users_1.USERS_V1_PACKAGE_NAME,
32
37
  protoPath: contracts_1.PROTO_PATHS.USERS,
33
38
  loader: grpcLoader
39
+ },
40
+ COMMITS_PACKAGE: {
41
+ package: commits_1.COMMITS_V1_PACKAGE_NAME,
42
+ protoPath: contracts_1.PROTO_PATHS.COMMITS,
43
+ loader: grpcLoader
44
+ },
45
+ PULL_REQUESTS_PACKAGE: {
46
+ package: pull_requests_1.PULL_REQUESTS_V1_PACKAGE_NAME,
47
+ protoPath: contracts_1.PROTO_PATHS.PULL_REQUESTS,
48
+ loader: grpcLoader
49
+ },
50
+ ISUUES_PACKAGE: {
51
+ package: issues_1.ISSUES_V1_PACKAGE_NAME,
52
+ protoPath: contracts_1.PROTO_PATHS.ISSUES,
53
+ loader: grpcLoader
54
+ },
55
+ REPOSITORIES_PACKAGE: {
56
+ package: repositories_1.REPOSITORIES_V1_PACKAGE_NAME,
57
+ protoPath: contracts_1.PROTO_PATHS.REPOSITORIES,
58
+ loader: grpcLoader
59
+ },
60
+ SCM_USERS_PACKAGE: {
61
+ package: scm_users_1.SCM_USERS_V1_PACKAGE_NAME,
62
+ protoPath: contracts_1.PROTO_PATHS.SCM_USERS,
63
+ loader: grpcLoader
64
+ },
65
+ ORGANIZATIONS_PACKAGE: {
66
+ package: organizations_1.ORGANIZATIONS_V1_PACKAGE_NAME,
67
+ protoPath: contracts_1.PROTO_PATHS.ORGANIZATIONS,
68
+ loader: grpcLoader
69
+ },
70
+ ISSUE_ASSIGNEES_PACKAGE: {
71
+ package: issue_assignees_1.ISSUE_ASSIGNEES_V1_PACKAGE_NAME,
72
+ protoPath: contracts_1.PROTO_PATHS.ISSUES_ASSIGNEES,
73
+ loader: grpcLoader
74
+ },
75
+ REPOSITORY_MEMBERSHIP_PACKAGE: {
76
+ package: repository_memberships_1.REPOSITORY_MEMBERSHIPS_V1_PACKAGE_NAME,
77
+ protoPath: contracts_1.PROTO_PATHS.REPOSITORY_MEMBERSHIPS,
78
+ loader: grpcLoader
34
79
  }
35
80
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citec-spbu/common",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Core shared components for microservices",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "typescript": "^5.9.3"
22
22
  },
23
23
  "dependencies": {
24
- "@citec-spbu/contracts": "^1.0.9",
24
+ "@citec-spbu/contracts": "^1.0.18",
25
25
  "@nestjs/common": "^11.1.12",
26
26
  "@nestjs/microservices": "^11.1.12",
27
27
  "class-transformer": "^0.5.1",