@candesk/contracts 6.19.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.
- package/dist/gen/account.d.ts +2 -0
- package/dist/gen/account.js +1 -0
- package/dist/nest/account.d.ts +2 -0
- package/dist/nest/account.js +1 -0
- package/package.json +1 -1
- package/proto/account.proto +2 -0
package/dist/gen/account.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -90,6 +91,7 @@ export interface SetIdentityVerifiedResponse {
|
|
|
90
91
|
export interface CreateStaffAccountRequest {
|
|
91
92
|
email: string;
|
|
92
93
|
role: Role;
|
|
94
|
+
adminId: string;
|
|
93
95
|
}
|
|
94
96
|
export interface CreateStaffAccountResponse {
|
|
95
97
|
account: StaffAccount | undefined;
|
package/dist/gen/account.js
CHANGED
|
@@ -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 = {}));
|
package/dist/nest/account.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -91,6 +92,7 @@ export interface SetIdentityVerifiedResponse {
|
|
|
91
92
|
export interface CreateStaffAccountRequest {
|
|
92
93
|
email: string;
|
|
93
94
|
role: Role;
|
|
95
|
+
adminId: string;
|
|
94
96
|
}
|
|
95
97
|
export interface CreateStaffAccountResponse {
|
|
96
98
|
account: StaffAccount | undefined;
|
package/dist/nest/account.js
CHANGED
|
@@ -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
package/proto/account.proto
CHANGED
|
@@ -123,6 +123,7 @@ message SetIdentityVerifiedResponse {
|
|
|
123
123
|
message CreateStaffAccountRequest {
|
|
124
124
|
string email = 1;
|
|
125
125
|
Role role = 2;
|
|
126
|
+
string admin_id = 3;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
message CreateStaffAccountResponse {
|
|
@@ -184,4 +185,5 @@ enum Role {
|
|
|
184
185
|
ADMIN = 1;
|
|
185
186
|
DOCTOR = 2;
|
|
186
187
|
SUPPORT = 3;
|
|
188
|
+
SUPER_ADMIN = 4;
|
|
187
189
|
}
|