@hedhog/admin 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,409 @@
1
+ # <p align="center">hedhog/admin</p>
2
+
3
+ <p align="center">
4
+ <img src="https://avatars.githubusercontent.com/u/177489127?s=200&v=4" alt="Hedhog Avatar" />
5
+ </p>
6
+
7
+ ## Table of Contents
8
+
9
+ - [Overview](#overview)
10
+ - [Hedhog Auth](#hedhog-auth)
11
+ - [Hedhog Menu](#hedhog-menu)
12
+
13
+ # Overview
14
+
15
+ The **Hedhog Admin** module is a collection of core modules essential for managing and administering applications within the HedHog framework. It brings together various modules that provide key functionalities such as authentication, menu configuration, permissions, screen management and user management.
16
+
17
+ Whether you need to secure access to resources, manage user roles, or handle file uploads, the `@hedhog/admin` module provides everything required to manage a modern web application’s backend with minimal setup.
18
+
19
+ ### Included Modules<
20
+
21
+ - **@hedhog/auth**: Provides authentication and authorization mechanisms, ensuring secure access to application resources.
22
+ - **@hedhog/menu**: Allows for the creation and management of dynamic menus within the application interface.
23
+ - **@hedhog/permission**: Facilitates the management of permissions and roles, controlling access to specific features or areas.
24
+ - **@hedhog/screen**: Provides a structure for managing different screens and UI components.
25
+ - **@hedhog/user**: Manages user accounts, including creation, updates, and deletion, along with password encryption and secure access.
26
+
27
+ ### Installation
28
+
29
+ To install the `@hedhog/admin` module, use npm:
30
+
31
+ ```bash
32
+ npm install @hedhog/admin
33
+ ```
34
+
35
+ ### Usage
36
+
37
+ The `@hedhog/admin` module acts as a base for administrative tasks in HedHog applications. Once installed, you can integrate the included modules into your project to quickly set up and manage essential features for your admin interface.
38
+
39
+ ```typescript
40
+ import { AdminModule } from '@hedhog/admin';
41
+
42
+ @Module({
43
+ imports: [AdminModule],
44
+ })
45
+ export class AppModule {}
46
+ ```
47
+
48
+ By importing the AdminModule, you gain access to all the functionality provided by the individual modules, making it easier to manage authentication, permissions, users, and more.
49
+
50
+ ---
51
+
52
+ # Hedhog Auth
53
+
54
+ **HedHog Auth** is a library designed to handle authentication tasks within the HedHog framework. It provides functionalities for user login, token management, multi-factor authentication (MFA), and password reset, ensuring secure and reliable user authentication processes.
55
+
56
+ ### Features
57
+
58
+ - **Token Verification**: Verify authentication tokens for users.
59
+ - **Login**: Authenticate users with email and password, and handle multi-factor authentication if required.
60
+ - **OTP Management**: Manage one-time passwords (OTP) for multi-factor authentication.
61
+ - **Password Reset**: Facilitate password reset requests through email.
62
+
63
+ #### Controller
64
+
65
+ The `AuthController` defines the following endpoints:
66
+
67
+ - `GET /auth/verify`: Verify the authentication status of the user.
68
+ - `POST /auth/login`: Authenticate a user using email and password.
69
+ - `POST /auth/otp`: Verify an OTP code for multi-factor authentication.
70
+ - `POST /auth/forget`: Request a password reset link via email.
71
+
72
+ #### AuthService
73
+
74
+ The `AuthService` provides methods for:
75
+
76
+ - `verifyToken(token: string)`: Verify the provided JWT token.
77
+ - `generateRandomString(length: number)`: Generate a random string of specified length.
78
+ - `generateRandomNumber()`: Generate a random 6-digit number.
79
+ - `loginWithEmailAndPassword(email: string, password: string)`: Authenticate users with email and password and handle multi-factor authentication if required.
80
+ - `getToken(user)`: Generate a JWT token for the authenticated user.
81
+ - `forget({ email }: ForgetDTO)`: Initiate a password reset process for the specified email.
82
+ - `otp({ token, code }: OtpDTO)`: Verify the OTP code provided by the user.
83
+
84
+ ### Folder Structure
85
+
86
+ ```plaintext
87
+ auth/
88
+ ├── dist/ # Compiled JavaScript files from build
89
+ ├── node_modules/ # Discardable folder with all module dependencies
90
+ ├── src/
91
+ │ ├── auth.controller.ts # Defines routes for authentication
92
+ │ ├── auth.service.ts # Contains authentication logic
93
+ │ ├── auth.module.ts # Authentication module
94
+ │ ├── index.ts # Entry point for auth files
95
+ │ ├── dto/
96
+ │ │ ├── forget.dto.ts # Data Transfer Object for password reset
97
+ │ │ ├── login.dto.ts # Data Transfer Object for login
98
+ │ │ └── otp.dto.ts # Data Transfer Object for OTP verification
99
+ │ ├── decorators/
100
+ │ │ ├── public.decorator.ts # Custom decorator to mark public routes
101
+ │ │ └── user.decorator.ts # Custom decorator to get user from request
102
+ │ ├── types/
103
+ │ │ └── user.type.ts # Type definitions for user-related data
104
+ │ ├── enums/
105
+ │ │ └── multifactor-type.enum.ts # Enumeration for multi-factor authentication types
106
+ │ ├── guards/
107
+ │ │ └── auth.guard.ts # Guard for protecting routes
108
+ │ ├── migrations/
109
+ │ │ └── index.ts # Migration scripts
110
+ ├── .gitignore # Specifies which files Git should ignore
111
+ ├── package.json # Manages dependencies and scripts for the library
112
+ ├── package-lock.json # Lock file for package dependencies
113
+ ├── README.md # Documentation for the library
114
+ ├── tsconfig.lib.json # TypeScript configuration for the library
115
+ └── tsconfig.production.json # TypeScript configuration for production builds
116
+ ```
117
+
118
+ ---
119
+
120
+ # Hedhog Menu
121
+
122
+ **HedHog Menu** is a library for managing menus within the HedHog framework. It provides a set of RESTful endpoints for CRUD operations on menu items, as well as functionalities to handle pagination and ordering of menus.
123
+
124
+ ### Features
125
+
126
+ - **CRUD Operations**: Create, Read, Update, and Delete menu items.
127
+ - **Pagination**: Paginate menu items for efficient data retrieval.
128
+ - **Ordering**: Update the order of menu items.
129
+
130
+ ### MenuController
131
+
132
+ The `MenuController` exposes the following endpoints:
133
+
134
+ - **GET /menus**: Retrieve a list of menus with pagination.
135
+ - **GET /menus/:menuId**: Retrieve a specific menu by ID.
136
+ - **POST /menus**: Create a new menu item.
137
+ - **PATCH /menus/:menuId**: Update an existing menu item by ID.
138
+ - **DELETE /menus**: Delete menu items based on provided IDs.
139
+ - **PATCH /menus/order**: Update the order of menu items.
140
+
141
+ ### MenuService
142
+
143
+ The `MenuService` class contains the business logic for handling menu operations, including querying the database and processing data.
144
+
145
+ - **getMenu(paginationParams: PaginationDTO)**: Retrieves a paginated list of menu items.
146
+ - **get(menuId: number)**: Retrieves a menu item by ID.
147
+ - **create(data: CreateDTO)**: Creates a new menu item.
148
+ - **update({ id, data }: { id: number; data: UpdateDTO })**: Updates an existing menu item by ID.
149
+ - **delete(data: DeleteDTO)**: Deletes menu items based on provided IDs.
150
+ - **updateOrder(data: OrderDTO)**: Updates the order of menu items.
151
+
152
+ ### Folder Structure
153
+
154
+ ```plaintext
155
+ menu/
156
+ ├── dist/ # Compiled JavaScript files from build
157
+ ├── node_modules/ # Discardable folder with all module dependencies
158
+ ├── src/
159
+ │ ├── menu.controller.ts # Handles HTTP requests related to menus
160
+ │ ├── menu.service.ts # Contains business logic for menu operations
161
+ │ ├── menu.module.ts # Module definition for menu functionalities
162
+ │ ├── index.ts # Entry point for menu files
163
+ │ ├── dto/
164
+ │ │ ├── create.dto.ts # Data Transfer Object for creating a menu
165
+ │ │ ├── delete.dto.ts # Data Transfer Object for deleting menus
166
+ │ │ ├── update.dto.ts # Data Transfer Object for updating a menu
167
+ │ │ └── order.dto.ts # Data Transfer Object for updating menu order
168
+ │ ├── migrations/
169
+ │ └── index.ts # Migration scripts
170
+ ├── .gitignore # Specifies which files Git should ignore
171
+ ├── package.json # Manages dependencies and scripts for the library
172
+ ├── package-lock.json # Lock file for dependencies
173
+ ├── README.md # Documentation for the library
174
+ └── tsconfig.lib.json # TypeScript configuration for the library
175
+ └── tsconfig.production.json # TypeScript configuration for production builds
176
+ ```
177
+
178
+ ---
179
+
180
+ # Hedhog Screen
181
+
182
+ **Hedhog Screen** module is part of the HedHog framework and provides functionalities for managing screens in your application. It offers a set of RESTful API endpoints and service methods to handle CRUD operations and pagination for screens.
183
+
184
+ ### Features
185
+
186
+ - Create, Read, Update, and Delete (**CRUD**) operations for screens.
187
+ - **Pagination** for listing screens.
188
+ - **Search** functionality to filter screens based on various attributes.
189
+
190
+ ### Controller Endpoints
191
+
192
+ #### `GET /screens`
193
+
194
+ - **Description**: Retrieve a paginated list of screens.
195
+ - **Authentication**: Required (uses `AuthGuard`).
196
+ - **Pagination**: Supports pagination through query parameters.
197
+
198
+ #### `GET /screens/:screenId`
199
+
200
+ - **Description**: Retrieve a specific screen by its ID.
201
+ - **Authentication**: Required (uses `AuthGuard`).
202
+ - **Parameters**:
203
+ - `screenId` (number): The ID of the screen to retrieve.
204
+
205
+ #### `POST /screens`
206
+
207
+ - **Description**: Create a new screen.
208
+ - **Authentication**: Required (uses `AuthGuard`).
209
+ - **Body**:
210
+ - `name` (string): Name of the screen.
211
+ - `slug` (string): Unique identifier for the screen.
212
+ - `description` (string): Description of the screen.
213
+ - `icon` (string): Icon associated with the screen.
214
+
215
+ #### `PATCH /screens/:screenId`
216
+
217
+ - **Description**: Update an existing screen.
218
+ - **Authentication**: Required (uses `AuthGuard`).
219
+ - **Parameters**:
220
+ - `screenId` (number): The ID of the screen to update.
221
+ - **Body**:
222
+ - `name` (string, optional): Updated name of the screen.
223
+ - `slug` (string, optional): Updated slug of the screen.
224
+ - `description` (string, optional): Updated description of the screen.
225
+ - `icon` (string, optional): Updated icon of the screen.
226
+
227
+ #### `DELETE /screens`
228
+
229
+ - **Description**: Delete one or more screens.
230
+ - **Authentication**: Required (uses `AuthGuard`).
231
+ - **Body**:
232
+ - `ids` (number[]): Array of screen IDs to delete.
233
+
234
+ ### Service Methods
235
+
236
+ #### `getScreens(paginationParams: PaginationDTO)`
237
+
238
+ - **Description**: Retrieves a paginated list of screens with optional search functionality.
239
+ - **Parameters**:
240
+ - `paginationParams`: Includes pagination and search criteria.
241
+
242
+ #### `get(screenId: number)`
243
+
244
+ - **Description**: Retrieves a specific screen by its ID.
245
+ - **Parameters**:
246
+ - `screenId`: ID of the screen to retrieve.
247
+
248
+ #### `create(data: CreateDTO)`
249
+
250
+ - **Description**: Creates a new screen.
251
+ - **Parameters**:
252
+ - `data`: Includes `name`, `slug`, `description`, and `icon`.
253
+
254
+ #### `update(id: number, data: UpdateDTO)`
255
+
256
+ - **Description**: Updates an existing screen.
257
+ - **Parameters**:
258
+ - `id`: ID of the screen to update.
259
+ - `data`: Includes updated `name`, `slug`, `description`, and `icon`.
260
+
261
+ #### `delete(data: DeleteDTO)`
262
+
263
+ - **Description**: Deletes one or more screens.
264
+ - **Parameters**:
265
+ - `data`: Includes array of `ids` to delete.
266
+
267
+ ### Folder Structure
268
+
269
+ ```plaintext
270
+ screen/
271
+ ├── dist/ # Compiled JavaScript files from build
272
+ ├── node_modules/ # Discardable folder with all module dependencies
273
+ ├── src/
274
+ │ ├── dto/ # Data Transfer Objects
275
+ │ │ ├── create.dto.ts # DTO for creating a screen
276
+ │ │ ├── update.dto.ts # DTO for updating a screen
277
+ │ │ └── delete.dto.ts # DTO for deleting a screen
278
+ │ ├── migrations/ # Database migration files
279
+ │ │ └── <migration-files> # Migration scripts
280
+ │ ├── index.ts # Entry point for the screen module
281
+ │ ├── screen.controller.ts # Handles HTTP requests related to screens
282
+ │ ├── screen.module.ts # Module definition for the screen
283
+ │ └── screen.service.ts # Service class for screen-related logic
284
+ ├── .gitignore # Specifies which files Git should ignore
285
+ ├── package.json # Manages dependencies and scripts for the module
286
+ ├── package-lock.json # Lock file for dependencies
287
+ ├── README.md # Documentation for the library
288
+ ├── tsconfig.lib.json # TypeScript configuration for library builds
289
+ ├── tsconfig.production.json # TypeScript configuration for production builds
290
+ ```
291
+
292
+ ---
293
+
294
+ # Hedhog User
295
+
296
+ The **Hedhog User** module in HedHog provides functionality to manage user data within an application. This module leverages the HedHog framework components, including pagination and [**Prisma**](https://www.prisma.io/) integration, to offer a robust user management system.
297
+
298
+ ### Integrations
299
+
300
+ - **Pagination**: Utilizes `@hedhog/pagination` for managing paginated results of user queries.
301
+ - **Database Interaction**: Uses `@hedhog/prisma` to interface with the database for user data management.
302
+ - **Authentication**: Secured with Auth Module from `@hedhog/admin` to ensure that only authorized users can access or modify user data.
303
+
304
+ ### Controller Endpoints
305
+
306
+ #### `GET /users`
307
+
308
+ - **Description**: Retrieve a paginated list of users.
309
+ - **Authentication**: Required (uses `AuthGuard`).
310
+ - **Pagination**: Supports pagination through query parameters.
311
+
312
+ #### `GET /users/:userId`
313
+
314
+ - **Description**: Retrieve a specific user by its ID.
315
+ - **Authentication**: Required (uses `AuthGuard`).
316
+ - **Parameters**:
317
+ - **userId** (number): The ID of the user to retrieve.
318
+
319
+ #### `POST /users`
320
+
321
+ - **Description**: Create a new user.
322
+ - **Authentication**: Required (uses `AuthGuard`).
323
+ - **Body**:
324
+ - **email** (string): Email address of the user.
325
+ - **name** (string): Name of the user.
326
+ - **password** (string): Password of the user.
327
+
328
+ #### `PATCH /users/:userId`
329
+
330
+ - **Description**: Update an existing user.
331
+ - **Authentication**: Required (uses `AuthGuard`).
332
+ - **Parameters**:
333
+ - **userId** (number): The ID of the user to update.
334
+ - **Body**:
335
+ - **email** (string, optional): Updated email address of the user.
336
+ - **name** (string, optional): Updated name of the user.
337
+ - **password** (string, optional): Updated password of the user.
338
+
339
+ #### `DELETE /users`
340
+
341
+ - **Description**: Delete one or more users.
342
+ - **Authentication**: Required (uses `AuthGuard`).
343
+ - **Body**:
344
+ - **ids** (number[]): Array of user IDs to delete.
345
+
346
+ ### Service Methods
347
+
348
+ **getUsers(paginationParams: PaginationDTO)**
349
+
350
+ - **Description**: Retrieves a paginated list of users with optional search functionality.
351
+ - **Parameters**:
352
+ - **paginationParams**: Includes pagination and search criteria.
353
+
354
+ **get(userId: number)**
355
+
356
+ - **Description**: Retrieves a specific user by its ID.
357
+ - **Parameters**:
358
+ - **userId**: ID of the user to retrieve.
359
+
360
+ **hashPassword(password: string): Promise<string>**
361
+
362
+ - **Description**: Hashes a password using bcrypt.
363
+ - **Parameters**:
364
+ - **password**: The password to be hashed.
365
+
366
+ **create(data: CreateDTO)**
367
+
368
+ - **Description**: Creates a new user.
369
+ - **Parameters**:
370
+ - **data**: Includes email, name, and password.
371
+
372
+ **update(id: number, data: UpdateDTO)**
373
+
374
+ - **Description**: Updates an existing user.
375
+ - **Parameters**:
376
+ - **id**: ID of the user to update.
377
+ - **data**: Includes updated email, name, and password.
378
+
379
+ **delete(data: DeleteDTO)**
380
+
381
+ - **Description**: Deletes one or more users.
382
+ - **Parameters**:
383
+ - **data**: Includes array of user IDs to delete.
384
+
385
+ ### Folder Structure
386
+
387
+ ```plaintext
388
+ user/
389
+ ├── dist/ # Compiled JavaScript files from build
390
+ ├── node_modules/ # Discardable folder with all module dependencies
391
+ ├── src/
392
+ │ ├── constants/
393
+ │ │ └── user.constants.ts # Constants related to user module
394
+ │ ├── dto/
395
+ │ │ ├── create.dto.ts # Data Transfer Object for creating a user
396
+ │ │ ├── delete.dto.ts # Data Transfer Object for deleting a user
397
+ │ │ └── update.dto.ts # Data Transfer Object for updating a user
398
+ │ ├── migrations/ # Migration files for database schema changes
399
+ | ├── user.module.ts # Module for UserService
400
+ │ ├── user.service.spec.ts # Unit tests for UserService
401
+ │ ├── user.controller.ts # Controller for user-related endpoints
402
+ │ └── user.service.ts # Service handling business logic for users
403
+ ├── .gitignore # Specifies which files Git should ignore
404
+ ├── package.json # Manages dependencies and scripts for the module
405
+ ├── package-lock.json # Lock file for dependencies
406
+ ├── README.md # Documentation for the library
407
+ ├── tsconfig.lib.json # TypeScript configuration for library builds
408
+ ├── tsconfig.production.json # TypeScript configuration for production builds
409
+ ```
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAcA,qBAca,WAAW;CAAG"}
1
+ {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAWA,qBAWa,WAAW;CAAG"}
@@ -18,14 +18,11 @@ exports.AdminModule = AdminModule = __decorate([
18
18
  (0, common_1.Module)({
19
19
  imports: [
20
20
  (0, common_1.forwardRef)(() => _1.AuthModule),
21
- (0, common_1.forwardRef)(() => _1.FileModule),
22
- (0, common_1.forwardRef)(() => _1.MailModule),
23
21
  (0, common_1.forwardRef)(() => _1.MenuModule),
24
22
  (0, common_1.forwardRef)(() => pagination_1.PaginationModule),
25
23
  (0, common_1.forwardRef)(() => _1.PermissionModule),
26
24
  (0, common_1.forwardRef)(() => prisma_1.PrismaModule),
27
25
  (0, common_1.forwardRef)(() => _1.ScreenModule),
28
- (0, common_1.forwardRef)(() => _1.SettingModule),
29
26
  (0, common_1.forwardRef)(() => _1.UserModule),
30
27
  ],
31
28
  })
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8C;AAC9C,mDAAsD;AACtD,yBASY;AACZ,2CAAoD;AAgB7C,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAdvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,eAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gBAAa,CAAC;YAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;SAC7B;KACF,CAAC;GACW,WAAW,CAAG"}
1
+ {"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8C;AAC9C,mDAAsD;AACtD,yBAMY;AACZ,2CAAoD;AAa7C,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAXvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,eAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,aAAU,CAAC;SAC7B;KACF,CAAC;GACW,WAAW,CAAG"}
@@ -14,7 +14,7 @@ const prisma_1 = require("@hedhog/prisma");
14
14
  const jwt_1 = require("@nestjs/jwt");
15
15
  const core_1 = require("@nestjs/core");
16
16
  const auth_guard_1 = require("./guards/auth.guard");
17
- const __1 = require("../../");
17
+ const mail_1 = require("@hedhog/mail");
18
18
  let AuthModule = class AuthModule {
19
19
  };
20
20
  exports.AuthModule = AuthModule;
@@ -34,7 +34,7 @@ exports.AuthModule = AuthModule = __decorate([
34
34
  },
35
35
  })),
36
36
  (0, common_1.forwardRef)(() => prisma_1.PrismaModule),
37
- (0, common_1.forwardRef)(() => __1.MailModule),
37
+ (0, common_1.forwardRef)(() => mail_1.MailModule),
38
38
  ],
39
39
  controllers: [auth_controller_1.AuthController],
40
40
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/auth/src/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,iDAA6C;AAC7C,uDAAmD;AACnD,2CAA8C;AAC9C,qCAAwC;AACxC,uCAAyC;AACzC,oDAAgD;AAChD,8BAAoC;AA+B7B,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA7BtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC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AS,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,KAAK;yBAC/C;qBACF,CAAC;gBACJ,CAAC;aACF,CAAC,CACH;YACD,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;SAC7B;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,0BAAW;YACX;gBACE,OAAO,EAAE,gBAAS;gBAClB,QAAQ,EAAE,sBAAS;aACpB;SACF;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
@@ -3,7 +3,7 @@ import { JwtService } from '@nestjs/jwt';
3
3
  import { ForgetDTO } from './dto/forget.dto';
4
4
  import { LoginDTO } from './dto/login.dto';
5
5
  import { OtpDTO } from './dto/otp.dto';
6
- import { MailService } from '../../';
6
+ import { MailService } from '@hedhog/mail';
7
7
  export declare class AuthService {
8
8
  private readonly prisma;
9
9
  private readonly jwt;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../../src/auth/src/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAEpB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAJJ,MAAM,EAAE,aAAa,EAErB,GAAG,EAA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AM,EAAE,QAAQ,EAAE,MAAM;;;;;;IAgDzD,QAAQ,CAAC,IAAI,KAAA;;;IAUb,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS;IAkC3B,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IA0BjC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAInC,MAAM,CAAC,EAAE,EAAE,MAAM;CAGlB"}
@@ -18,7 +18,7 @@ const common_1 = require("@nestjs/common");
18
18
  const jwt_1 = require("@nestjs/jwt");
19
19
  const bcrypt_1 = require("bcrypt");
20
20
  const multifactor_type_enum_1 = require("./enums/multifactor-type.enum");
21
- const __1 = require("../../");
21
+ const mail_1 = require("@hedhog/mail");
22
22
  let AuthService = class AuthService {
23
23
  constructor(prisma, jwt, mail) {
24
24
  this.prisma = prisma;
@@ -154,9 +154,9 @@ exports.AuthService = AuthService = __decorate([
154
154
  (0, common_1.Injectable)(),
155
155
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => prisma_1.PrismaService))),
156
156
  __param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => jwt_1.JwtService))),
157
- __param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => __1.MailService))),
157
+ __param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => mail_1.MailService))),
158
158
  __metadata("design:paramtypes", [prisma_1.PrismaService,
159
159
  jwt_1.JwtService,
160
- __1.MailService])
160
+ mail_1.MailService])
161
161
  ], AuthService);
162
162
  //# sourceMappingURL=auth.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../src/auth/src/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+C;AAC/C,2CAKwB;AACxB,qCAAyC;AACzC,mCAAiC;AAIjC,yEAAgE;AAChE,8BAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAE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AAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,cAAc,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;YAC7B,KAAK,EAAE;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI;aACX;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAY;QACjC,OAAO,IAAI,CAAC,yBAAyB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AA9JY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gBAAU,CAAC,CAAC,CAAA;IAEpC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC,CAAC,CAAA;qCAHb,sBAAa;QAEhB,gBAAU;QAET,kBAAW;GAPzB,WAAW,CA8JvB"}
package/dist/index.d.ts CHANGED
@@ -4,12 +4,6 @@ export * from './auth/src/auth.service';
4
4
  export * from './auth/src/decorators/public.decorator';
5
5
  export * from './auth/src/decorators/user.decorator';
6
6
  export * from './auth/src/guards/auth.guard';
7
- export * from './file/src/file.module';
8
- export * from './file/src/file.service';
9
- export * from './mail/src/enums/mail-configuration-type.enum';
10
- export * from './mail/src/interfaces';
11
- export * from './mail/src/mail.module';
12
- export * from './mail/src/mail.service';
13
7
  export * from './menu/src/menu.module';
14
8
  export * from './menu/src/menu.service';
15
9
  export * from './permission/src/permission.module';
@@ -18,8 +12,6 @@ export * from './permission/src/types/permission.types';
18
12
  export * from './permission/src/decorators/permission.decorator';
19
13
  export * from './screen/src/screen.module';
20
14
  export * from './screen/src/screen.service';
21
- export * from './setting/src/settings.module';
22
- export * from './setting/src/settings.service';
23
15
  export * from './user/src/constants/user.constants';
24
16
  export * from './user/src/user.module';
25
17
  export * from './user/src/user.service';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAG7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AAGjE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAG5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAG/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAG7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AAGjE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAG5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -22,14 +22,6 @@ __exportStar(require("./auth/src/auth.service"), exports);
22
22
  __exportStar(require("./auth/src/decorators/public.decorator"), exports);
23
23
  __exportStar(require("./auth/src/decorators/user.decorator"), exports);
24
24
  __exportStar(require("./auth/src/guards/auth.guard"), exports);
25
- // File Module
26
- __exportStar(require("./file/src/file.module"), exports);
27
- __exportStar(require("./file/src/file.service"), exports);
28
- // Mail Module
29
- __exportStar(require("./mail/src/enums/mail-configuration-type.enum"), exports);
30
- __exportStar(require("./mail/src/interfaces"), exports);
31
- __exportStar(require("./mail/src/mail.module"), exports);
32
- __exportStar(require("./mail/src/mail.service"), exports);
33
25
  // Menu Module
34
26
  __exportStar(require("./menu/src/menu.module"), exports);
35
27
  __exportStar(require("./menu/src/menu.service"), exports);
@@ -41,9 +33,6 @@ __exportStar(require("./permission/src/decorators/permission.decorator"), export
41
33
  // Screen Module
42
34
  __exportStar(require("./screen/src/screen.module"), exports);
43
35
  __exportStar(require("./screen/src/screen.service"), exports);
44
- // Setting Module
45
- __exportStar(require("./setting/src/settings.module"), exports);
46
- __exportStar(require("./setting/src/settings.service"), exports);
47
36
  // User Module
48
37
  __exportStar(require("./user/src/constants/user.constants"), exports);
49
38
  __exportStar(require("./user/src/user.module"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,iDAA+B;AAE/B,cAAc;AACd,yDAAuC;AACvC,0DAAwC;AACxC,yEAAuD;AACvD,uEAAqD;AACrD,+DAA6C;AAE7C,cAAc;AACd,yDAAuC;AACvC,0DAAwC;AAExC,cAAc;AACd,gFAA8D;AAC9D,wDAAsC;AACtC,yDAAuC;AACvC,0DAAwC;AAExC,cAAc;AACd,yDAAuC;AACvC,0DAAwC;AAExC,oBAAoB;AACpB,qEAAmD;AACnD,sEAAoD;AACpD,0EAAwD;AACxD,mFAAiE;AAEjE,gBAAgB;AAChB,6DAA2C;AAC3C,8DAA4C;AAE5C,iBAAiB;AACjB,gEAA8C;AAC9C,iEAA+C;AAE/C,cAAc;AACd,sEAAoD;AACpD,yDAAuC;AACvC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,iDAA+B;AAE/B,cAAc;AACd,yDAAuC;AACvC,0DAAwC;AACxC,yEAAuD;AACvD,uEAAqD;AACrD,+DAA6C;AAE7C,cAAc;AACd,yDAAuC;AACvC,0DAAwC;AAExC,oBAAoB;AACpB,qEAAmD;AACnD,sEAAoD;AACpD,0EAAwD;AACxD,mFAAiE;AAEjE,gBAAgB;AAChB,6DAA2C;AAC3C,8DAA4C;AAE5C,cAAc;AACd,sEAAoD;AACpD,yDAAuC;AACvC,0DAAwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- MailModule.forRoot({ global: true, type: 'SMTP', host: 'changeme', port: 465, secure: false, username: 'changeme', password: 'changeme' })