@candesk/contracts 3.0.0 → 3.1.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.
@@ -1,3 +1,5 @@
1
1
  export declare const AUTH_EVENTS: {
2
2
  readonly OTP_REQUESTED: 'auth.otp.requested';
3
+ readonly EMAIL_CHANGE_REQUESTED: 'auth.email-change.requested';
4
+ readonly EMAIL_CHANGED: 'auth.email.changed';
3
5
  };
@@ -2,5 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AUTH_EVENTS = void 0;
4
4
  exports.AUTH_EVENTS = {
5
- OTP_REQUESTED: 'auth.otp.requested'
5
+ OTP_REQUESTED: 'auth.otp.requested',
6
+ EMAIL_CHANGE_REQUESTED: 'auth.email-change.requested',
7
+ EMAIL_CHANGED: 'auth.email.changed'
6
8
  };
@@ -0,0 +1,4 @@
1
+ export interface EmailChangeRequestedEvent {
2
+ email: string;
3
+ code: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface EmailChangedEvent {
2
+ previousEmail: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
1
  export * from './auth.events';
2
+ export * from './email-change-requested.interface';
3
+ export * from './email-changed.interface';
2
4
  export * from './otp-requested.interface';
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth.events"), exports);
18
+ __exportStar(require("./email-change-requested.interface"), exports);
19
+ __exportStar(require("./email-changed.interface"), exports);
18
20
  __exportStar(require("./otp-requested.interface"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Protobuf contracts for Candesk microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",