@shipsync-software/contracts 1.1.3 → 1.1.4

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.
package/gen/account.ts CHANGED
@@ -10,19 +10,13 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "account.v1";
12
12
 
13
- export enum CompanyType {
14
- CONTRACTOR = 0,
15
- CUSTOMER = 1,
16
- UNRECOGNIZED = -1,
17
- }
18
-
19
13
  export interface CreateAccountRequest {
20
14
  email: string;
21
15
  phone?: string | undefined;
22
16
  isExternal: boolean;
23
17
  roleId?: string | undefined;
24
18
  companyId?: string | undefined;
25
- companyType?: CompanyType | undefined;
19
+ companyType?: string | undefined;
26
20
  }
27
21
 
28
22
  export interface CreateAccountResponse {
@@ -37,7 +31,7 @@ export interface UpdateAccountRequest {
37
31
  isExternal?: boolean | undefined;
38
32
  roleId?: string | undefined;
39
33
  companyId?: string | undefined;
40
- companyType?: CompanyType | undefined;
34
+ companyType?: string | undefined;
41
35
  }
42
36
 
43
37
  export interface UpdateAccountResponse {
@@ -57,7 +51,7 @@ export interface FindOneAccountResponse {
57
51
  isExternal: boolean;
58
52
  roleId?: string | undefined;
59
53
  companyId?: string | undefined;
60
- companyType?: CompanyType | undefined;
54
+ companyType?: string | undefined;
61
55
  }
62
56
 
63
57
  export interface DeleteAccountRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipsync-software/contracts",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -2,11 +2,6 @@ syntax = "proto3";
2
2
 
3
3
  package account.v1;
4
4
 
5
- enum CompanyType {
6
- CONTRACTOR = 0;
7
- CUSTOMER = 1;
8
- }
9
-
10
5
  service AccountsService{
11
6
  rpc Create (CreateAccountRequest) returns (CreateAccountResponse);
12
7
  rpc Update (UpdateAccountRequest) returns (UpdateAccountResponse);
@@ -20,7 +15,7 @@ message CreateAccountRequest {
20
15
  bool is_external = 3;
21
16
  optional string role_id = 4;
22
17
  optional string company_id = 5;
23
- optional CompanyType company_type = 6;
18
+ optional string company_type = 6;
24
19
  }
25
20
  message CreateAccountResponse {
26
21
  string id = 1;
@@ -34,7 +29,7 @@ message UpdateAccountRequest {
34
29
  optional bool is_external = 4;
35
30
  optional string role_id = 5;
36
31
  optional string company_id = 6;
37
- optional CompanyType company_type = 7;
32
+ optional string company_type = 7;
38
33
  }
39
34
 
40
35
  message UpdateAccountResponse {
@@ -56,7 +51,7 @@ message FindOneAccountResponse {
56
51
  bool is_external = 4;
57
52
  optional string role_id = 5;
58
53
  optional string company_id = 6;
59
- optional CompanyType company_type = 7;
54
+ optional string company_type = 7;
60
55
  }
61
56
 
62
57
  message DeleteAccountRequest {
@@ -1,46 +0,0 @@
1
- import { Observable } from "rxjs";
2
- export declare const protobufPackage = "auth.v1";
3
- export interface LoginRequest {
4
- identifier: string;
5
- method: string;
6
- }
7
- export interface LoginResponse {
8
- reqId: string;
9
- }
10
- export interface VerifyRequest {
11
- reqId: string;
12
- code: string;
13
- }
14
- export interface VerifyResponse {
15
- accessToken: string;
16
- refreshToken: string;
17
- redirectUrl: string;
18
- }
19
- export interface RefreshRequest {
20
- refreshToken: string;
21
- }
22
- export interface RefreshResponse {
23
- accessToken: string;
24
- refreshToken: string;
25
- }
26
- export interface LogoutRequest {
27
- refreshToken: string;
28
- }
29
- export interface LogoutResponse {
30
- ok: boolean;
31
- }
32
- export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
33
- export interface AuthServiceClient {
34
- login(request: LoginRequest): Observable<LoginResponse>;
35
- verify(request: VerifyRequest): Observable<VerifyResponse>;
36
- refresh(request: RefreshRequest): Observable<RefreshResponse>;
37
- logout(request: LogoutRequest): Observable<LogoutResponse>;
38
- }
39
- export interface AuthServiceController {
40
- login(request: LoginRequest): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
41
- verify(request: VerifyRequest): Promise<VerifyResponse> | Observable<VerifyResponse> | VerifyResponse;
42
- refresh(request: RefreshRequest): Promise<RefreshResponse> | Observable<RefreshResponse> | RefreshResponse;
43
- logout(request: LogoutRequest): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
44
- }
45
- export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
46
- export declare const AUTH_SERVICE_NAME = "AuthService";
package/dist/gen/auth.js DELETED
@@ -1,28 +0,0 @@
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 v6.33.5
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 = ["login", "verify", "refresh", "logout"];
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";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes