@candesk/contracts 6.20.0 → 6.21.0

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.
@@ -5,6 +5,7 @@ export declare enum Role {
5
5
  ADMIN = 1,
6
6
  DOCTOR = 2,
7
7
  SUPPORT = 3,
8
+ SUPER_ADMIN = 4,
8
9
  UNRECOGNIZED = -1
9
10
  }
10
11
  export interface GetAccountRequest {
@@ -19,7 +20,6 @@ export interface GetAccountResponse {
19
20
  role: Role;
20
21
  isTelegramLinked: boolean;
21
22
  isIdentityVerified: boolean;
22
- isOwner: boolean;
23
23
  }
24
24
  export interface InitEmailChangeRequest {
25
25
  email: string;
@@ -91,6 +91,7 @@ export interface SetIdentityVerifiedResponse {
91
91
  export interface CreateStaffAccountRequest {
92
92
  email: string;
93
93
  role: Role;
94
+ adminId: string;
94
95
  }
95
96
  export interface CreateStaffAccountResponse {
96
97
  account: StaffAccount | undefined;
@@ -134,7 +135,6 @@ export interface StaffAccount {
134
135
  role: Role;
135
136
  createdAt: string;
136
137
  isActive: boolean;
137
- isOwner: boolean;
138
138
  }
139
139
  export interface AccountService {
140
140
  getAccount(request: GetAccountRequest): Promise<GetAccountResponse>;
@@ -15,5 +15,6 @@ var Role;
15
15
  Role[Role["ADMIN"] = 1] = "ADMIN";
16
16
  Role[Role["DOCTOR"] = 2] = "DOCTOR";
17
17
  Role[Role["SUPPORT"] = 3] = "SUPPORT";
18
+ Role[Role["SUPER_ADMIN"] = 4] = "SUPER_ADMIN";
18
19
  Role[Role["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
19
20
  })(Role || (exports.Role = Role = {}));
@@ -6,6 +6,7 @@ export declare enum Role {
6
6
  ADMIN = 1,
7
7
  DOCTOR = 2,
8
8
  SUPPORT = 3,
9
+ SUPER_ADMIN = 4,
9
10
  UNRECOGNIZED = -1
10
11
  }
11
12
  export interface GetAccountRequest {
@@ -20,7 +21,6 @@ export interface GetAccountResponse {
20
21
  role: Role;
21
22
  isTelegramLinked: boolean;
22
23
  isIdentityVerified: boolean;
23
- isOwner: boolean;
24
24
  }
25
25
  export interface InitEmailChangeRequest {
26
26
  email: string;
@@ -92,6 +92,7 @@ export interface SetIdentityVerifiedResponse {
92
92
  export interface CreateStaffAccountRequest {
93
93
  email: string;
94
94
  role: Role;
95
+ adminId: string;
95
96
  }
96
97
  export interface CreateStaffAccountResponse {
97
98
  account: StaffAccount | undefined;
@@ -135,7 +136,6 @@ export interface StaffAccount {
135
136
  role: Role;
136
137
  createdAt: string;
137
138
  isActive: boolean;
138
- isOwner: boolean;
139
139
  }
140
140
  export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
141
141
  export interface AccountServiceClient {
@@ -17,6 +17,7 @@ var Role;
17
17
  Role[Role["ADMIN"] = 1] = "ADMIN";
18
18
  Role[Role["DOCTOR"] = 2] = "DOCTOR";
19
19
  Role[Role["SUPPORT"] = 3] = "SUPPORT";
20
+ Role[Role["SUPER_ADMIN"] = 4] = "SUPER_ADMIN";
20
21
  Role[Role["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
22
  })(Role || (exports.Role = Role = {}));
22
23
  exports.ACCOUNT_V1_PACKAGE_NAME = "account.v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.20.0",
3
+ "version": "6.21.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -39,7 +39,6 @@ message GetAccountResponse {
39
39
  Role role = 6;
40
40
  bool is_telegram_linked = 7;
41
41
  bool is_identity_verified = 8;
42
- bool is_owner = 9;
43
42
  }
44
43
 
45
44
  message InitEmailChangeRequest {
@@ -124,6 +123,7 @@ message SetIdentityVerifiedResponse {
124
123
  message CreateStaffAccountRequest {
125
124
  string email = 1;
126
125
  Role role = 2;
126
+ string admin_id = 3;
127
127
  }
128
128
 
129
129
  message CreateStaffAccountResponse {
@@ -178,7 +178,6 @@ message StaffAccount {
178
178
  Role role = 3;
179
179
  string created_at = 4;
180
180
  bool is_active = 5;
181
- bool is_owner = 6;
182
181
  }
183
182
 
184
183
  enum Role {
@@ -186,4 +185,5 @@ enum Role {
186
185
  ADMIN = 1;
187
186
  DOCTOR = 2;
188
187
  SUPPORT = 3;
188
+ SUPER_ADMIN = 4;
189
189
  }