law-common 1.1.8 → 1.1.10

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.
@@ -10,3 +10,4 @@ export * from "./interface/login.response.interface";
10
10
  export * from "./interface/jwt.payload.interface";
11
11
  export * from "./interface/user.update.dto.interface";
12
12
  export * from "./interface/designation.entity.response";
13
+ export * from "./interface/login.dto.interface";
package/dist/api/index.js CHANGED
@@ -26,3 +26,4 @@ __exportStar(require("./interface/login.response.interface"), exports);
26
26
  __exportStar(require("./interface/jwt.payload.interface"), exports);
27
27
  __exportStar(require("./interface/user.update.dto.interface"), exports);
28
28
  __exportStar(require("./interface/designation.entity.response"), exports);
29
+ __exportStar(require("./interface/login.dto.interface"), exports);
@@ -0,0 +1,4 @@
1
+ export interface ILoginDto {
2
+ username: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const createDto = {
4
+ name: 'string',
5
+ };
@@ -1,5 +1,6 @@
1
1
  import { ConvertToArray } from "../../misc";
2
2
  import { Modify } from "../../misc/interface/modify.interface";
3
+ import { IAuditColumnEntity } from "./audit-column.entity.interface";
3
4
  export type IApiEntity<T extends {
4
5
  createdOn: Date;
5
6
  updatedOn: Date;
@@ -7,8 +8,8 @@ export type IApiEntity<T extends {
7
8
  createdOn: string;
8
9
  updatedOn: string;
9
10
  }>;
10
- export type IEntityCreateDto<T> = Omit<T, 'id' | 'updatedOn' | 'updatedBy' | 'createdBy' | 'createdOn'>;
11
- export type IEntityUpdateDto<T> = Omit<Partial<T>, 'id' | 'updatedOn' | 'updatedBy' | 'createdBy' | 'createdOn'>;
11
+ export type IEntityCreateDto<T> = Omit<T, 'id' | keyof IAuditColumnEntity>;
12
+ export type IEntityUpdateDto<T> = Omit<Partial<T>, 'id' | keyof IAuditColumnEntity>;
12
13
  export type IEntityApiResponse<T extends {
13
14
  createdOn: Date;
14
15
  updatedOn: Date;
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "law-common",
3
- "version": "1.1.8",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist/**/*"
8
- ],
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1",
11
- "clean": "rm -rf dist",
12
- "build": "npm run clean && tsc",
13
- "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
14
- "publish:patch": "npm version patch && git push && npm run build && npm publish",
15
- "publish:minor": "npm version minor && git push && npm run build && npm publish",
16
- "link": "npm run build && npm link"
17
- },
18
- "keywords": [],
19
- "author": "",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@types/node": "^22.6.1",
23
- "typescript": "^5.6.2"
24
- },
25
- "dependencies": {
26
- "@types/express": "^5.0.0",
27
- "@types/multer": "^1.4.12"
28
- }
29
- }
1
+ {
2
+ "name": "law-common",
3
+ "version": "1.1.10",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist/**/*"
8
+ ],
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1",
11
+ "clean": "rm -rf dist",
12
+ "build": "npm run clean && tsc",
13
+ "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
14
+ "publish:patch": "npm version patch && git push && npm run build && npm publish",
15
+ "publish:minor": "npm version minor && git push && npm run build && npm publish",
16
+ "link": "npm run build && npm link"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@types/node": "^22.6.1",
23
+ "typescript": "^5.6.2"
24
+ },
25
+ "dependencies": {
26
+ "@types/express": "^5.0.0",
27
+ "@types/multer": "^1.4.12"
28
+ }
29
+ }