@shipsync-software/contracts 1.1.2 → 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.2",
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 {