@mamindom/contracts 1.0.12 → 1.0.13

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.
@@ -2,4 +2,5 @@ export declare const PROTO_PATHS: {
2
2
  readonly AUTH: string;
3
3
  readonly ACCOUNT: string;
4
4
  readonly USERS: string;
5
+ readonly CATEGORIES: string;
5
6
  };
@@ -5,5 +5,6 @@ const node_path_1 = require("node:path");
5
5
  exports.PROTO_PATHS = {
6
6
  AUTH: (0, node_path_1.join)(__dirname, '../../proto/auth.proto'),
7
7
  ACCOUNT: (0, node_path_1.join)(__dirname, '../../proto/account.proto'),
8
- USERS: (0, node_path_1.join)(__dirname, '../../proto/users.proto')
8
+ USERS: (0, node_path_1.join)(__dirname, '../../proto/users.proto'),
9
+ CATEGORIES: (0, node_path_1.join)(__dirname, '../../proto/categories.proto')
9
10
  };
@@ -0,0 +1,35 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.4
4
+ // protoc v3.21.12
5
+ // source: categorie.proto
6
+
7
+ /* eslint-disable */
8
+ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
+
10
+ export const protobufPackage = "categories.v1";
11
+
12
+ export const CATEGORIES_V1_PACKAGE_NAME = "categories.v1";
13
+
14
+ export interface CategoriesServiceClient {
15
+ }
16
+
17
+ export interface CategoriesServiceController {
18
+ }
19
+
20
+ export function CategoriesServiceControllerMethods() {
21
+ return function (constructor: Function) {
22
+ const grpcMethods: string[] = [];
23
+ for (const method of grpcMethods) {
24
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
25
+ GrpcMethod("CategoriesService", method)(constructor.prototype[method], method, descriptor);
26
+ }
27
+ const grpcStreamMethods: string[] = [];
28
+ for (const method of grpcStreamMethods) {
29
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
30
+ GrpcStreamMethod("CategoriesService", method)(constructor.prototype[method], method, descriptor);
31
+ }
32
+ };
33
+ }
34
+
35
+ export const CATEGORIES_SERVICE_NAME = "CategoriesService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "proto",
5
5
  "main": "./dist/index.js",
6
6
  "type": "./dist/index.d.ts",
@@ -0,0 +1,7 @@
1
+ syntax = "proto3";
2
+
3
+ package categories.v1;
4
+
5
+ service CategoriesService {
6
+
7
+ }