grm-shared-library 1.0.79 → 1.0.81
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/kafka/index.d.ts +3 -0
- package/dist/kafka/index.js +19 -0
- package/dist/kafka/interfaces/otp-payload.d.ts +9 -0
- package/dist/kafka/interfaces/otp-payload.js +2 -0
- package/dist/kafka/interfaces/user-created-payload.d.ts +14 -0
- package/dist/kafka/interfaces/user-created-payload.js +2 -0
- package/dist/kafka/topics/index.d.ts +2 -0
- package/dist/kafka/topics/index.js +3 -0
- package/dist/kafka/topics/topics.d.ts +13 -0
- package/dist/kafka/topics/topics.js +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export * from './modules/user/index';
|
|
|
7
7
|
export * from './modules/control-centre/index';
|
|
8
8
|
export * from './modules/email/index';
|
|
9
9
|
export * from './interfaces/server-message';
|
|
10
|
-
export * from './kafka/
|
|
10
|
+
export * from './kafka/index';
|
|
11
11
|
export * from './decorators/case-decorators';
|
|
12
12
|
export * from './exceptions/index';
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ __exportStar(require("./modules/email/index"), exports);
|
|
|
26
26
|
// Interfaces
|
|
27
27
|
__exportStar(require("./interfaces/server-message"), exports);
|
|
28
28
|
// Kafka
|
|
29
|
-
__exportStar(require("./kafka/
|
|
29
|
+
__exportStar(require("./kafka/index"), exports);
|
|
30
30
|
// Utilities
|
|
31
31
|
__exportStar(require("./decorators/case-decorators"), exports);
|
|
32
32
|
// Exceptions
|
|
@@ -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("./topics/topics"), exports);
|
|
18
|
+
__exportStar(require("./interfaces/user-created-payload"), exports);
|
|
19
|
+
__exportStar(require("./interfaces/otp-payload"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface UserCreatedPayload {
|
|
2
|
+
id: number;
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
roles: string[];
|
|
8
|
+
avatar: string;
|
|
9
|
+
otp: string;
|
|
10
|
+
otpExpireAt: Date;
|
|
11
|
+
verificationToken: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
attributes: Record<string, any>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const KAFKA_TOPICS: {
|
|
2
|
+
USER_REGISTERED: string;
|
|
3
|
+
USER_LOGGED_IN: string;
|
|
4
|
+
USER_LOGGED_OUT: string;
|
|
5
|
+
USER_CREATED: string;
|
|
6
|
+
USER_UPDATED: string;
|
|
7
|
+
USER_DELETED: string;
|
|
8
|
+
ORG_CREATED: string;
|
|
9
|
+
ORG_UPDATED: string;
|
|
10
|
+
ORG_DELETED: string;
|
|
11
|
+
OTP_VALIDATED: string;
|
|
12
|
+
OTP_REQUESTED: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KAFKA_TOPICS = void 0;
|
|
4
|
+
exports.KAFKA_TOPICS = {
|
|
5
|
+
// Auth
|
|
6
|
+
USER_REGISTERED: 'user.registered',
|
|
7
|
+
USER_LOGGED_IN: 'user.logged.in',
|
|
8
|
+
USER_LOGGED_OUT: 'user.logged.out',
|
|
9
|
+
// User
|
|
10
|
+
USER_CREATED: 'user.created',
|
|
11
|
+
USER_UPDATED: 'user.updated',
|
|
12
|
+
USER_DELETED: 'user.deleted',
|
|
13
|
+
// Org
|
|
14
|
+
ORG_CREATED: 'org.created',
|
|
15
|
+
ORG_UPDATED: 'org.updated',
|
|
16
|
+
ORG_DELETED: 'org.deleted',
|
|
17
|
+
// OTP
|
|
18
|
+
OTP_VALIDATED: 'otp.validated',
|
|
19
|
+
OTP_REQUESTED: 'otp.requested'
|
|
20
|
+
};
|