@candesk/contracts 6.23.0 → 6.25.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.
@@ -8,4 +8,7 @@ export declare const AUTH_EVENTS: {
8
8
  readonly ACCOUNT_DELETED: 'auth.account.deleted';
9
9
  readonly STAFF_INVITED: 'auth.staff.invited';
10
10
  readonly STAFF_EMAIL_CHANGED: 'auth.staff-email.changed';
11
+ readonly STAFF_EMAIL_ASSIGNED: 'auth.staff-email.assigned';
12
+ readonly STAFF_DEACTIVATED: 'auth.staff.deactivated';
13
+ readonly STAFF_ACTIVATED: 'auth.staff.activated';
11
14
  };
@@ -10,5 +10,8 @@ exports.AUTH_EVENTS = {
10
10
  ACCOUNT_DELETION_REQUESTED: 'auth.account-deletion.requested',
11
11
  ACCOUNT_DELETED: 'auth.account.deleted',
12
12
  STAFF_INVITED: 'auth.staff.invited',
13
- STAFF_EMAIL_CHANGED: 'auth.staff-email.changed'
13
+ STAFF_EMAIL_CHANGED: 'auth.staff-email.changed',
14
+ STAFF_EMAIL_ASSIGNED: 'auth.staff-email.assigned',
15
+ STAFF_DEACTIVATED: 'auth.staff.deactivated',
16
+ STAFF_ACTIVATED: 'auth.staff.activated'
14
17
  };
@@ -4,6 +4,9 @@ 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';
9
+ export * from './staff-email-assigned.interface';
7
10
  export * from './staff-email-changed.interface';
8
11
  export * from './staff-invited.interface';
9
12
  export * from './telegram-linked.interface';
@@ -20,6 +20,9 @@ __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);
25
+ __exportStar(require("./staff-email-assigned.interface"), exports);
23
26
  __exportStar(require("./staff-email-changed.interface"), exports);
24
27
  __exportStar(require("./staff-invited.interface"), exports);
25
28
  __exportStar(require("./telegram-linked.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 });
@@ -0,0 +1,4 @@
1
+ export interface StaffEmailAssignedEvent {
2
+ email: string;
3
+ firstName: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,4 @@
1
1
  export interface StaffEmailChangedEvent {
2
2
  previousEmail: string;
3
- email: string;
4
3
  firstName: string | null;
5
4
  }
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.23.0",
3
+ "version": "6.25.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 {