trast-audit-core 1.0.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.
@@ -0,0 +1 @@
1
+ export * from './interfaces';
@@ -0,0 +1,10 @@
1
+ import { ICreateUserInput, IUserResponse } from "./user.interface";
2
+
3
+ export interface ISignInInput {
4
+ username: string;
5
+ password: string;
6
+ }
7
+
8
+ export interface ISignUpInput extends ICreateUserInput {}
9
+
10
+ export interface AuthSignUpResponse extends IUserResponse {}
@@ -0,0 +1,2 @@
1
+ export * from './auth.interface';
2
+ export * from './user.interface';
@@ -0,0 +1,17 @@
1
+ export interface IGetUserInput {
2
+ id: number;
3
+ username: string;
4
+ }
5
+
6
+ export interface ICreateUserInput {
7
+ fullname: string;
8
+ username: string;
9
+ password: string;
10
+ roleId: number;
11
+ }
12
+
13
+ export interface IUserResponse extends ICreateUserInput {
14
+ id: number;
15
+ createdAt: Date | string;
16
+ updatedAt: Date | string;
17
+ }
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './common';
2
+ export * from './microservices';
@@ -0,0 +1,10 @@
1
+ export const AuthServiceMessagePatterns = {
2
+ Auth: {
3
+ V1: {
4
+ ADMIN: {
5
+ SIGNUP: 'auth.v1.admin.signup',
6
+ SIGNIN: 'auth.v1.admin.signin',
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1 @@
1
+ export * from './auth-service.message-pattern';
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "trast-audit-core",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }