law-common 6.0.0 → 6.0.1-beta.1
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/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/interface/country.entity.response.d.ts +4 -0
- package/dist/src/api/interface/country.entity.response.js +2 -0
- package/dist/src/entities/enums/country.entity.enum.d.ts +0 -18
- package/dist/src/entities/enums/country.entity.enum.js +41 -42
- package/dist/src/entities/index.d.ts +1 -1
- package/dist/src/entities/index.js +2 -1
- package/dist/src/entities/interface/client.entity.interface.d.ts +1 -2
- package/dist/src/entities/interface/country.entity.interface.d.ts +11 -0
- package/dist/src/entities/interface/country.entity.interface.js +2 -0
- package/dist/src/entities/interface/office.location.entity.d.ts +1 -2
- package/dist/src/entities/interface/user.entity.interface.d.ts +2 -3
- package/dist/src/misc/interface/optional.interface.js +4 -2
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -72,3 +72,4 @@ export * from "./interface/work.from.home.api";
|
|
|
72
72
|
export * from "./interface/work.from.home.create.dto.interface";
|
|
73
73
|
export * from "./interface/work.from.home.update.interface";
|
|
74
74
|
export * from "./interface/work_from_home_history.api";
|
|
75
|
+
export * from "./interface/country.entity.response";
|
package/dist/src/api/index.js
CHANGED
|
@@ -88,3 +88,4 @@ __exportStar(require("./interface/work.from.home.api"), exports);
|
|
|
88
88
|
__exportStar(require("./interface/work.from.home.create.dto.interface"), exports);
|
|
89
89
|
__exportStar(require("./interface/work.from.home.update.interface"), exports);
|
|
90
90
|
__exportStar(require("./interface/work_from_home_history.api"), exports);
|
|
91
|
+
__exportStar(require("./interface/country.entity.response"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum CountryEnum {
|
|
2
|
-
India = "India",
|
|
3
|
-
USA = "USA",
|
|
4
|
-
UK = "UK",
|
|
5
|
-
Singapore = "Singapore",
|
|
6
|
-
Japan = "Japan",
|
|
7
|
-
Israel = "Israel",
|
|
8
|
-
France = "France",
|
|
9
|
-
Mauritius = "Mauritius",
|
|
10
|
-
China = "China",
|
|
11
|
-
South_Korea = "South Korea"
|
|
12
|
-
}
|
|
13
|
-
export declare namespace CountryEnum {
|
|
14
|
-
function values(): string[];
|
|
15
|
-
function keys(): string[];
|
|
16
|
-
function getCountryTimezone(country: CountryEnum): string;
|
|
17
|
-
function getNames(): string[];
|
|
18
|
-
}
|
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})(CountryEnum || (exports.CountryEnum = CountryEnum = {}));
|
|
2
|
+
// export enum CountryEnum {
|
|
3
|
+
// India = "India",
|
|
4
|
+
// USA = "USA",
|
|
5
|
+
// UK = "UK",
|
|
6
|
+
// Singapore = "Singapore",
|
|
7
|
+
// Japan = "Japan",
|
|
8
|
+
// Israel = "Israel",
|
|
9
|
+
// France = "France",
|
|
10
|
+
// Mauritius = "Mauritius",
|
|
11
|
+
// China = "China",
|
|
12
|
+
// South_Korea = "South Korea",
|
|
13
|
+
// }
|
|
14
|
+
// export namespace CountryEnum {
|
|
15
|
+
// export function values() {
|
|
16
|
+
// return Object.keys(CountryEnum).filter(
|
|
17
|
+
// (type) => isNaN(<any>type) && type !== "values"
|
|
18
|
+
// );
|
|
19
|
+
// }
|
|
20
|
+
// export function keys() {
|
|
21
|
+
// return Object.keys(CountryEnum).filter(
|
|
22
|
+
// (type) => isNaN(<any>type) && type !== "values"
|
|
23
|
+
// );
|
|
24
|
+
// }
|
|
25
|
+
// export function getCountryTimezone(country: CountryEnum): string {
|
|
26
|
+
// switch (country) {
|
|
27
|
+
// case CountryEnum.India:
|
|
28
|
+
// return "Asia/Kolkata";
|
|
29
|
+
// case CountryEnum.USA:
|
|
30
|
+
// return "America/New_York";
|
|
31
|
+
// case CountryEnum.UK:
|
|
32
|
+
// return "Europe/London";
|
|
33
|
+
// default:
|
|
34
|
+
// return "UTC";
|
|
35
|
+
// }
|
|
36
|
+
// }
|
|
37
|
+
// export function getNames(): string[] {
|
|
38
|
+
// return Object.values(CountryEnum).filter(
|
|
39
|
+
// (value) => typeof value === "string"
|
|
40
|
+
// ) as string[];
|
|
41
|
+
// }
|
|
42
|
+
// }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from "./enums/task.entity.enum";
|
|
2
2
|
export * from "./enums/user.entity.enum";
|
|
3
|
-
export * from "./enums/country.entity.enum";
|
|
4
3
|
export * from "./enums/organization.entity.enum";
|
|
5
4
|
export * from "./func/convert-to-common-entity.func";
|
|
6
5
|
export * from "./interface/audit-column.entity.interface";
|
|
@@ -62,3 +61,4 @@ export * from "./enums/work.from.home.status.enum";
|
|
|
62
61
|
export * from "./enums/work_from_entity_keys.enum";
|
|
63
62
|
export * from "./interface/work_from_home.entity.interface";
|
|
64
63
|
export * from "./interface/work_from_home_history.entity.interface";
|
|
64
|
+
export * from "./interface/country.entity.interface";
|
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./enums/task.entity.enum"), exports);
|
|
18
18
|
__exportStar(require("./enums/user.entity.enum"), exports);
|
|
19
|
-
|
|
19
|
+
// export * from "./enums/country.entity.enum";
|
|
20
20
|
__exportStar(require("./enums/organization.entity.enum"), exports);
|
|
21
21
|
__exportStar(require("./func/convert-to-common-entity.func"), exports);
|
|
22
22
|
__exportStar(require("./interface/audit-column.entity.interface"), exports);
|
|
@@ -78,3 +78,4 @@ __exportStar(require("./enums/work.from.home.status.enum"), exports);
|
|
|
78
78
|
__exportStar(require("./enums/work_from_entity_keys.enum"), exports);
|
|
79
79
|
__exportStar(require("./interface/work_from_home.entity.interface"), exports);
|
|
80
80
|
__exportStar(require("./interface/work_from_home_history.entity.interface"), exports);
|
|
81
|
+
__exportStar(require("./interface/country.entity.interface"), exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/country.entity.enum";
|
|
2
1
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
2
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
3
|
export interface IClientEntity extends IAuditColumnEntity {
|
|
@@ -12,7 +11,7 @@ export interface IClientEntity extends IAuditColumnEntity {
|
|
|
12
11
|
secondaryEmail?: string;
|
|
13
12
|
address?: string;
|
|
14
13
|
secondaryContact?: string;
|
|
15
|
-
country?:
|
|
14
|
+
country?: string;
|
|
16
15
|
industry?: string;
|
|
17
16
|
zipCode?: string;
|
|
18
17
|
organizationId: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
2
|
+
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
3
|
+
export interface ICountryEntity extends IAuditColumnEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ICountryEntityCreateDto extends IEntityCreateDto<ICountryEntity> {
|
|
8
|
+
}
|
|
9
|
+
export interface ICountryEntityUpdateDto extends IEntityUpdateDto<ICountryEntity> {
|
|
10
|
+
}
|
|
11
|
+
export type ICountryEntityFilterData = IEntityFilterData<ICountryEntity>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/country.entity.enum";
|
|
2
1
|
import { IAuditColumnEntity } from "../interface/audit-column.entity.interface";
|
|
3
2
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
3
|
export interface IOfficeLocationEntity extends IAuditColumnEntity {
|
|
@@ -6,7 +5,7 @@ export interface IOfficeLocationEntity extends IAuditColumnEntity {
|
|
|
6
5
|
name: string;
|
|
7
6
|
address: string;
|
|
8
7
|
zipCode: number;
|
|
9
|
-
country:
|
|
8
|
+
country: string;
|
|
10
9
|
organizationId: number;
|
|
11
10
|
}
|
|
12
11
|
export type IOfficeLocationEntityFilterData = IEntityFilterData<IOfficeLocationEntity>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/country.entity.enum";
|
|
2
1
|
import { UserRoleEnum, UserStatusEnum } from "../enums/user.entity.enum";
|
|
3
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
4
3
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
@@ -14,7 +13,7 @@ export interface IUserEntity extends IAuditColumnEntity {
|
|
|
14
13
|
endDate?: Date;
|
|
15
14
|
address?: string;
|
|
16
15
|
zipCode?: number;
|
|
17
|
-
country?:
|
|
16
|
+
country?: string;
|
|
18
17
|
designation: string;
|
|
19
18
|
panNo?: string;
|
|
20
19
|
panDocumentUrl?: string;
|
|
@@ -28,7 +27,7 @@ export interface IUserEntity extends IAuditColumnEntity {
|
|
|
28
27
|
officeAllocation: number;
|
|
29
28
|
tempAddress?: string;
|
|
30
29
|
tempZipCode?: number;
|
|
31
|
-
tempCountry?:
|
|
30
|
+
tempCountry?: string;
|
|
32
31
|
tempAddressSameAsPrimary: boolean;
|
|
33
32
|
emergencyContactName: string;
|
|
34
33
|
emergencyContactNo: string;
|
|
@@ -10,7 +10,8 @@ const userDTO = {
|
|
|
10
10
|
endDate: new Date(),
|
|
11
11
|
address: "",
|
|
12
12
|
zipCode: 0,
|
|
13
|
-
country:
|
|
13
|
+
// country: CountryEnum.India,
|
|
14
|
+
country: "India",
|
|
14
15
|
designation: "",
|
|
15
16
|
role: entities_1.UserRoleEnum.employee,
|
|
16
17
|
createdOn: new Date(),
|
|
@@ -28,7 +29,8 @@ const userDTO = {
|
|
|
28
29
|
officeAllocation: 0,
|
|
29
30
|
tempAddress: "",
|
|
30
31
|
tempZipCode: 0,
|
|
31
|
-
tempCountry:
|
|
32
|
+
// tempCountry: CountryEnum.India,
|
|
33
|
+
tempCountry: "India",
|
|
32
34
|
tempAddressSameAsPrimary: true,
|
|
33
35
|
emergencyContactName: "",
|
|
34
36
|
emergencyContactNo: "",
|