trast-audit-core 1.0.1 → 1.0.3

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,17 @@
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("./interfaces"), exports);
@@ -0,0 +1,9 @@
1
+ import { ICreateUserInput, IUserResponse } from "./user.interface";
2
+ export interface ISignInInput {
3
+ username: string;
4
+ password: string;
5
+ }
6
+ export interface ISignUpInput extends ICreateUserInput {
7
+ }
8
+ export interface AuthSignUpResponse extends IUserResponse {
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './auth.interface';
2
+ export * from './user.interface';
@@ -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.interface"), exports);
18
+ __exportStar(require("./user.interface"), exports);
@@ -0,0 +1,15 @@
1
+ export interface IGetUserInput {
2
+ id: number;
3
+ username: string;
4
+ }
5
+ export interface ICreateUserInput {
6
+ fullname: string;
7
+ username: string;
8
+ password: string;
9
+ roleId: number;
10
+ }
11
+ export interface IUserResponse extends Omit<ICreateUserInput, 'password'> {
12
+ id: number;
13
+ createdAt: Date | string;
14
+ updatedAt: Date | string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './common';
2
+ export * from './microservices';
package/dist/index.js ADDED
@@ -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("./common"), exports);
18
+ __exportStar(require("./microservices"), exports);
@@ -0,0 +1,10 @@
1
+ export declare const AuthServiceMessagePatterns: {
2
+ Auth: {
3
+ V1: {
4
+ ADMIN: {
5
+ SIGNUP: string;
6
+ SIGNIN: string;
7
+ };
8
+ };
9
+ };
10
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthServiceMessagePatterns = void 0;
4
+ exports.AuthServiceMessagePatterns = {
5
+ Auth: {
6
+ V1: {
7
+ ADMIN: {
8
+ SIGNUP: 'auth.v1.admin.signup',
9
+ SIGNIN: 'auth.v1.admin.signin',
10
+ }
11
+ }
12
+ }
13
+ };
@@ -0,0 +1 @@
1
+ export * from './auth-service.message-pattern';
@@ -0,0 +1,17 @@
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-service.message-pattern"), exports);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "trast-audit-core",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
8
8
  "prepublishOnly": "npm run build"
@@ -10,7 +10,7 @@ export interface ICreateUserInput {
10
10
  roleId: number;
11
11
  }
12
12
 
13
- export interface IUserResponse extends ICreateUserInput {
13
+ export interface IUserResponse extends Omit<ICreateUserInput, 'password'> {
14
14
  id: number;
15
15
  createdAt: Date | string;
16
16
  updatedAt: Date | string;
package/tsconfig.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "outDir": "./dist",
4
+ "baseUrl": "./src",
4
5
  "declaration": true,
5
6
  "module": "commonjs",
6
- "target": "es6",
7
+ "target": "es6"
7
8
  },
8
9
  "include": ["./src/**/*"],
9
- "exclude": ["node_modules", "./dist"]
10
+ "exclude": ["node_modules"]
10
11
  }
package/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './src';