@vsniksnet/contracts 1.0.5 → 1.2.1

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.
@@ -0,0 +1,5 @@
1
+ export interface EmailChangeInitedEvent {
2
+ email: string;
3
+ code: string;
4
+ }
5
+ export declare const ACCOUNT_EMAIL_CHANGE_INITED = "account.email.chang-inited";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_EMAIL_CHANGE_INITED = void 0;
4
+ exports.ACCOUNT_EMAIL_CHANGE_INITED = 'account.email.chang-inited';
@@ -0,0 +1,5 @@
1
+ export interface EmailChangedEvent {
2
+ email: string;
3
+ userId: string;
4
+ }
5
+ export declare const ACCOUNT_EMAIL_CHANGED = "account.email.changed";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_EMAIL_CHANGED = void 0;
4
+ exports.ACCOUNT_EMAIL_CHANGED = 'account.email.changed';
@@ -0,0 +1,3 @@
1
+ export * from './email-change-inited.event';
2
+ export * from './password-reset-inited.event';
3
+ export * from './email-changed.event';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./email-change-inited.event"), exports);
18
+ __exportStar(require("./password-reset-inited.event"), exports);
19
+ __exportStar(require("./email-changed.event"), exports);
@@ -0,0 +1,5 @@
1
+ export interface PasswordResetInitedEvent {
2
+ email: string;
3
+ code: string;
4
+ }
5
+ export declare const ACCOUNT_PASSWORD_RESET_INITED = "account.password.reset-inited";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_PASSWORD_RESET_INITED = void 0;
4
+ exports.ACCOUNT_PASSWORD_RESET_INITED = 'account.password.reset-inited';
@@ -0,0 +1,5 @@
1
+ export interface AccountCreatedEvent {
2
+ email: string;
3
+ code: string;
4
+ }
5
+ export declare const AUTH_ACCOUNT_CREATED = "auth.account.created";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTH_ACCOUNT_CREATED = void 0;
4
+ exports.AUTH_ACCOUNT_CREATED = 'auth.account.created';
@@ -0,0 +1,2 @@
1
+ export * from './otp-requested.event';
2
+ export * from './account-created.event';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./otp-requested.event"), exports);
18
+ __exportStar(require("./account-created.event"), exports);
@@ -0,0 +1,5 @@
1
+ export interface OtpRequestedEvent {
2
+ email: string;
3
+ code: string;
4
+ }
5
+ export declare const AUTH_OTP_REQUESTED = "auth.otp.requested";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTH_OTP_REQUESTED = void 0;
4
+ exports.AUTH_OTP_REQUESTED = 'auth.otp.requested';
@@ -0,0 +1,2 @@
1
+ export * from './auth';
2
+ export * from './account';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./account"), exports);
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './events';
1
2
  export * from './proto';
package/dist/index.js CHANGED
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./events"), exports);
17
18
  __exportStar(require("./proto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vsniksnet/contracts",
3
- "version": "1.0.5",
3
+ "version": "1.2.1",
4
4
  "description": "Protobuf definitions and generated typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",