@candesk/contracts 6.24.0 → 6.26.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.
@@ -9,4 +9,6 @@ export declare const AUTH_EVENTS: {
9
9
  readonly STAFF_INVITED: 'auth.staff.invited';
10
10
  readonly STAFF_EMAIL_CHANGED: 'auth.staff-email.changed';
11
11
  readonly STAFF_EMAIL_ASSIGNED: 'auth.staff-email.assigned';
12
+ readonly STAFF_DEACTIVATED: 'auth.staff.deactivated';
13
+ readonly STAFF_ACTIVATED: 'auth.staff.activated';
12
14
  };
@@ -11,5 +11,7 @@ exports.AUTH_EVENTS = {
11
11
  ACCOUNT_DELETED: 'auth.account.deleted',
12
12
  STAFF_INVITED: 'auth.staff.invited',
13
13
  STAFF_EMAIL_CHANGED: 'auth.staff-email.changed',
14
- STAFF_EMAIL_ASSIGNED: 'auth.staff-email.assigned'
14
+ STAFF_EMAIL_ASSIGNED: 'auth.staff-email.assigned',
15
+ STAFF_DEACTIVATED: 'auth.staff.deactivated',
16
+ STAFF_ACTIVATED: 'auth.staff.activated'
15
17
  };
@@ -4,6 +4,8 @@ export * from './auth.events';
4
4
  export * from './email-change-requested.interface';
5
5
  export * from './email-changed.interface';
6
6
  export * from './otp-requested.interface';
7
+ export * from './staff-activated.interface';
8
+ export * from './staff-deactivated.interface';
7
9
  export * from './staff-email-assigned.interface';
8
10
  export * from './staff-email-changed.interface';
9
11
  export * from './staff-invited.interface';
@@ -20,6 +20,8 @@ __exportStar(require("./auth.events"), exports);
20
20
  __exportStar(require("./email-change-requested.interface"), exports);
21
21
  __exportStar(require("./email-changed.interface"), exports);
22
22
  __exportStar(require("./otp-requested.interface"), exports);
23
+ __exportStar(require("./staff-activated.interface"), exports);
24
+ __exportStar(require("./staff-deactivated.interface"), exports);
23
25
  __exportStar(require("./staff-email-assigned.interface"), exports);
24
26
  __exportStar(require("./staff-email-changed.interface"), exports);
25
27
  __exportStar(require("./staff-invited.interface"), exports);
@@ -0,0 +1,4 @@
1
+ export interface StaffActivatedEvent {
2
+ email: string;
3
+ firstName: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface StaffDeactivatedEvent {
2
+ email: string;
3
+ firstName: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -132,6 +132,7 @@ export interface SetStaffActiveRequest {
132
132
  id: string;
133
133
  active: boolean;
134
134
  adminId: string;
135
+ firstName?: string | undefined;
135
136
  }
136
137
  export interface SetStaffActiveResponse {
137
138
  account: StaffAccount | undefined;
@@ -151,6 +152,8 @@ export interface StaffAccount {
151
152
  role: Role;
152
153
  createdAt: string;
153
154
  isActive: boolean;
155
+ isEmailVerified: boolean;
156
+ lastActiveAt?: string | undefined;
154
157
  }
155
158
  export interface AccountService {
156
159
  getAccount(request: GetAccountRequest): Promise<GetAccountResponse>;
@@ -133,6 +133,7 @@ export interface SetStaffActiveRequest {
133
133
  id: string;
134
134
  active: boolean;
135
135
  adminId: string;
136
+ firstName?: string | undefined;
136
137
  }
137
138
  export interface SetStaffActiveResponse {
138
139
  account: StaffAccount | undefined;
@@ -152,6 +153,8 @@ export interface StaffAccount {
152
153
  role: Role;
153
154
  createdAt: string;
154
155
  isActive: boolean;
156
+ isEmailVerified: boolean;
157
+ lastActiveAt?: string | undefined;
155
158
  }
156
159
  export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
157
160
  export interface AccountServiceClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.24.0",
3
+ "version": "6.26.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -177,6 +177,7 @@ message SetStaffActiveRequest {
177
177
  string id = 1;
178
178
  bool active = 2;
179
179
  string admin_id = 3;
180
+ optional string first_name = 4;
180
181
  }
181
182
 
182
183
  message SetStaffActiveResponse {
@@ -200,6 +201,8 @@ message StaffAccount {
200
201
  Role role = 3;
201
202
  string created_at = 4;
202
203
  bool is_active = 5;
204
+ bool is_email_verified = 6;
205
+ optional string last_active_at = 7;
203
206
  }
204
207
 
205
208
  enum Role {