law-common 13.0.1-beta.3 → 13.0.1-beta.5
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/interface/office_location.create.dto.interface.d.ts +3 -1
- package/dist/src/api/interface/office_location.update.dto.interface.d.ts +2 -1
- package/dist/src/entities/enums/billing_profile_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/billing_profile_status_enum.js +9 -0
- package/dist/src/entities/enums/office_location_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/office_location_status_enum.js +9 -0
- package/dist/src/entities/index.d.ts +2 -0
- package/dist/src/entities/index.js +2 -0
- package/dist/src/entities/interface/billing_profile.entity.interface.d.ts +2 -0
- package/dist/src/entities/interface/field-constraint/billing_profile_field_constraints.interface.d.ts +2 -2
- package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.d.ts +3 -1
- package/dist/src/entities/interface/office_location.entity.interface.d.ts +2 -0
- package/dist/src/entities/model/billing_profile.entity.model.d.ts +2 -0
- package/dist/src/entities/model/billing_profile.entity.model.js +2 -0
- package/dist/src/entities/model/office_location.entity.model.d.ts +2 -0
- package/dist/src/entities/model/office_location.entity.model.js +2 -0
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { IEntityCreateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
|
-
|
|
2
|
+
/** status is set by the entity flow, never by the client */
|
|
3
|
+
export type IOfficeLocationExclude = "status";
|
|
4
|
+
export interface IOfficeLocationCreateDto extends Omit<IEntityCreateDto<IOfficeLocationEntity>, IOfficeLocationExclude> {
|
|
3
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
|
-
|
|
2
|
+
import { IOfficeLocationExclude } from "./office_location.create.dto.interface";
|
|
3
|
+
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>, IOfficeLocationExclude> {
|
|
3
4
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingProfileStatusEnum = void 0;
|
|
4
|
+
var BillingProfileStatusEnum;
|
|
5
|
+
(function (BillingProfileStatusEnum) {
|
|
6
|
+
BillingProfileStatusEnum["APPROVED"] = "APPROVED";
|
|
7
|
+
BillingProfileStatusEnum["DEACTIVATED"] = "DEACTIVATED";
|
|
8
|
+
BillingProfileStatusEnum["DELETED"] = "DELETED";
|
|
9
|
+
})(BillingProfileStatusEnum || (exports.BillingProfileStatusEnum = BillingProfileStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfficeLocationStatusEnum = void 0;
|
|
4
|
+
var OfficeLocationStatusEnum;
|
|
5
|
+
(function (OfficeLocationStatusEnum) {
|
|
6
|
+
OfficeLocationStatusEnum["APPROVED"] = "APPROVED";
|
|
7
|
+
OfficeLocationStatusEnum["DEACTIVATED"] = "DEACTIVATED";
|
|
8
|
+
OfficeLocationStatusEnum["DELETED"] = "DELETED";
|
|
9
|
+
})(OfficeLocationStatusEnum || (exports.OfficeLocationStatusEnum = OfficeLocationStatusEnum = {}));
|
|
@@ -50,6 +50,7 @@ export * from "./interface/billing.entity.interface";
|
|
|
50
50
|
export * from "./interface/field-constraint/billing_field_constraints.interface";
|
|
51
51
|
export * from "./enums/billing_status_enum";
|
|
52
52
|
export * from "./enums/billing_timesheet_change_status_enum";
|
|
53
|
+
export * from "./enums/office_location_status_enum";
|
|
53
54
|
export * from "./interface/office_location.entity.interface";
|
|
54
55
|
export * from "./interface/field-constraint/office_location_field_constraints.interface";
|
|
55
56
|
export * from "./interface/bank.entity.interface";
|
|
@@ -248,6 +249,7 @@ export * from "./model/client_quote.entity.model";
|
|
|
248
249
|
export * from "./model/client_quote_rate.entity.model";
|
|
249
250
|
export * from "./enums/billing_profile_code_enum";
|
|
250
251
|
export * from "./enums/billing_profile_enum";
|
|
252
|
+
export * from "./enums/billing_profile_status_enum";
|
|
251
253
|
export * from "./interface/billing_profile.entity.interface";
|
|
252
254
|
export * from "./interface/field-constraint/billing_profile_field_constraints.interface";
|
|
253
255
|
export * from "./model/billing_profile.entity.model";
|
|
@@ -66,6 +66,7 @@ __exportStar(require("./interface/billing.entity.interface"), exports);
|
|
|
66
66
|
__exportStar(require("./interface/field-constraint/billing_field_constraints.interface"), exports);
|
|
67
67
|
__exportStar(require("./enums/billing_status_enum"), exports);
|
|
68
68
|
__exportStar(require("./enums/billing_timesheet_change_status_enum"), exports);
|
|
69
|
+
__exportStar(require("./enums/office_location_status_enum"), exports);
|
|
69
70
|
__exportStar(require("./interface/office_location.entity.interface"), exports);
|
|
70
71
|
__exportStar(require("./interface/field-constraint/office_location_field_constraints.interface"), exports);
|
|
71
72
|
__exportStar(require("./interface/bank.entity.interface"), exports);
|
|
@@ -264,6 +265,7 @@ __exportStar(require("./model/client_quote.entity.model"), exports);
|
|
|
264
265
|
__exportStar(require("./model/client_quote_rate.entity.model"), exports);
|
|
265
266
|
__exportStar(require("./enums/billing_profile_code_enum"), exports);
|
|
266
267
|
__exportStar(require("./enums/billing_profile_enum"), exports);
|
|
268
|
+
__exportStar(require("./enums/billing_profile_status_enum"), exports);
|
|
267
269
|
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
268
270
|
__exportStar(require("./interface/field-constraint/billing_profile_field_constraints.interface"), exports);
|
|
269
271
|
__exportStar(require("./model/billing_profile.entity.model"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingProfileName } from "../enums/billing_profile_enum";
|
|
2
2
|
import { BillingProfileCode } from "../enums/billing_profile_code_enum";
|
|
3
|
+
import { BillingProfileStatusEnum } from "../enums/billing_profile_status_enum";
|
|
3
4
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
4
5
|
export interface IBillingProfileEntity extends IEntityAuditColumn {
|
|
5
6
|
id: number;
|
|
@@ -7,4 +8,5 @@ export interface IBillingProfileEntity extends IEntityAuditColumn {
|
|
|
7
8
|
logoFilePath: string;
|
|
8
9
|
pan: string;
|
|
9
10
|
code: BillingProfileCode;
|
|
11
|
+
status: BillingProfileStatusEnum;
|
|
10
12
|
}
|
|
@@ -3,7 +3,7 @@ import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
|
3
3
|
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
4
|
/**
|
|
5
5
|
* excluded, and why:
|
|
6
|
-
* - "name", "code"
|
|
6
|
+
* - "name", "code", "status" enum columns, enums carry no min/max
|
|
7
7
|
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
8
|
* - "logoFilePath" url field, bounded by max_size, allowed_file_formats and count,
|
|
9
9
|
* not by a character length
|
|
@@ -11,7 +11,7 @@ import { IFieldMinMaxConstraint } from "./utils";
|
|
|
11
11
|
* billing_profile is a seeded, read-only master — it has no create or update DTO, so every bound
|
|
12
12
|
* here comes from the TypeORM entity alone and there is no min to harvest.
|
|
13
13
|
*/
|
|
14
|
-
export type IBillingProfileFieldLengthConstraintsExclude = "id" | "name" | "code" | "logoFilePath" | keyof IEntityAuditColumn;
|
|
14
|
+
export type IBillingProfileFieldLengthConstraintsExclude = "status" | "id" | "name" | "code" | "logoFilePath" | keyof IEntityAuditColumn;
|
|
15
15
|
/**
|
|
16
16
|
* since some fields are optional, but we still need their
|
|
17
17
|
* min & max length constraints, we need to make them required in this type
|
|
@@ -4,11 +4,13 @@ import { IFieldMinMaxConstraint } from "./utils";
|
|
|
4
4
|
/**
|
|
5
5
|
* excluded, and why:
|
|
6
6
|
* - "id", keyof IEntityAuditColumn generated columns
|
|
7
|
+
* - "status" enum column driven by the entity flow — bounded by its allowed
|
|
8
|
+
* values, not by a character length
|
|
7
9
|
*
|
|
8
10
|
* OfficeLocationUpdateDto is a standalone class rather than a PartialType of the create DTO, so the
|
|
9
11
|
* two can and do disagree — see the note on `address` below
|
|
10
12
|
*/
|
|
11
|
-
export type IOfficeLocationFieldLengthConstraintsExclude = "id" | keyof IEntityAuditColumn;
|
|
13
|
+
export type IOfficeLocationFieldLengthConstraintsExclude = "status" | "id" | keyof IEntityAuditColumn;
|
|
12
14
|
/**
|
|
13
15
|
* since some fields are optional, but we still need their
|
|
14
16
|
* min & max length constraints, we need to make them required in this type
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OfficeLocationStatusEnum } from "../enums/office_location_status_enum";
|
|
1
2
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
3
|
export interface IOfficeLocationEntity extends IEntityAuditColumn {
|
|
3
4
|
id: number;
|
|
@@ -6,4 +7,5 @@ export interface IOfficeLocationEntity extends IEntityAuditColumn {
|
|
|
6
7
|
zipCode: number;
|
|
7
8
|
country: string;
|
|
8
9
|
organizationId: number;
|
|
10
|
+
status: OfficeLocationStatusEnum;
|
|
9
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BillingProfileCode } from "../enums/billing_profile_code_enum";
|
|
2
|
+
import { BillingProfileStatusEnum } from "../enums/billing_profile_status_enum";
|
|
2
3
|
import { BillingProfileName } from "../enums/billing_profile_enum";
|
|
3
4
|
import { IBillingProfileEntity } from "../interface/billing_profile.entity.interface";
|
|
4
5
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
@@ -9,6 +10,7 @@ export declare class BillingProfileEntityModel extends BaseEntityModel<EntityEnu
|
|
|
9
10
|
logoFilePath: string;
|
|
10
11
|
pan: string;
|
|
11
12
|
code: BillingProfileCode;
|
|
13
|
+
status: BillingProfileStatusEnum;
|
|
12
14
|
createdOn: number;
|
|
13
15
|
updatedOn: number;
|
|
14
16
|
createdBy: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BillingProfileEntityModel = void 0;
|
|
4
|
+
const billing_profile_status_enum_1 = require("../enums/billing_profile_status_enum");
|
|
4
5
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
5
6
|
const base_entity_model_1 = require("./base.entity.model");
|
|
6
7
|
class BillingProfileEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
@@ -11,6 +12,7 @@ class BillingProfileEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
11
12
|
this.logoFilePath = "";
|
|
12
13
|
this.pan = "";
|
|
13
14
|
this.code = "";
|
|
15
|
+
this.status = billing_profile_status_enum_1.BillingProfileStatusEnum.APPROVED;
|
|
14
16
|
this.createdOn = 0;
|
|
15
17
|
this.updatedOn = 0;
|
|
16
18
|
this.createdBy = 0;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OfficeLocationStatusEnum } from "../enums/office_location_status_enum";
|
|
1
2
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
2
3
|
import { IOfficeLocationEntity } from "../interface/office_location.entity.interface";
|
|
3
4
|
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
@@ -10,6 +11,7 @@ export declare class OfficeLocationEntityModel extends BaseEntityModel<EntityEnu
|
|
|
10
11
|
address: string;
|
|
11
12
|
zipCode: number;
|
|
12
13
|
organizationId: number;
|
|
14
|
+
status: OfficeLocationStatusEnum;
|
|
13
15
|
createdOn: number;
|
|
14
16
|
updatedOn: number;
|
|
15
17
|
createdBy: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OfficeLocationEntityModel = void 0;
|
|
4
|
+
const office_location_status_enum_1 = require("../enums/office_location_status_enum");
|
|
4
5
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
5
6
|
const base_entity_model_1 = require("./base.entity.model");
|
|
6
7
|
class OfficeLocationEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
@@ -13,6 +14,7 @@ class OfficeLocationEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
13
14
|
this.address = "";
|
|
14
15
|
this.zipCode = 0;
|
|
15
16
|
this.organizationId = 0;
|
|
17
|
+
this.status = office_location_status_enum_1.OfficeLocationStatusEnum.APPROVED;
|
|
16
18
|
this.createdOn = 0;
|
|
17
19
|
this.updatedOn = 0;
|
|
18
20
|
this.createdBy = 0;
|