@fullactivities/contracts 1.0.6 → 1.0.8

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.
@@ -0,0 +1,18 @@
1
+ import { Observable } from "rxjs";
2
+ export declare const protobufPackage = "auth.v1";
3
+ export interface SendOtpRequest {
4
+ identifier: string;
5
+ type: string;
6
+ }
7
+ export interface SendOtpResponse {
8
+ ok: boolean;
9
+ }
10
+ export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
11
+ export interface AuthServiceClient {
12
+ sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
13
+ }
14
+ export interface AuthServiceController {
15
+ sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
16
+ }
17
+ export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
18
+ export declare const AUTH_SERVICE_NAME = "AuthService";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v7.34.0
6
+ // source: auth.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "auth.v1";
13
+ exports.AUTH_V1_PACKAGE_NAME = "auth.v1";
14
+ function AuthServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["sendOtp"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
20
+ }
21
+ const grpcStreamMethods = [];
22
+ for (const method of grpcStreamMethods) {
23
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
+ (0, microservices_1.GrpcStreamMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.AUTH_SERVICE_NAME = "AuthService";
package/gen/account.ts CHANGED
@@ -22,8 +22,8 @@ export interface GetAccountRequest {
22
22
 
23
23
  export interface GetAccountResponse {
24
24
  id: string;
25
- email: string;
26
- phone: string;
25
+ email?: string | undefined;
26
+ phone?: string | undefined;
27
27
  isEmailVerified: boolean;
28
28
  isPhoneVerified: boolean;
29
29
  role: Role;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullactivities/contracts",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Protobuf contracts for Full Activities microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,8 +12,8 @@ message GetAccountRequest {
12
12
 
13
13
  message GetAccountResponse {
14
14
  string id = 1;
15
- string email = 2;
16
- string phone = 3;
15
+ optional string email = 2;
16
+ optional string phone = 3;
17
17
  bool is_email_verified = 4;
18
18
  bool is_phone_verified = 5;
19
19
  Role role = 6;
File without changes
File without changes
File without changes
File without changes