law-common 13.0.1-beta.4 → 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/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/index.d.ts +1 -0
- package/dist/src/entities/index.js +1 -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/model/billing_profile.entity.model.d.ts +2 -0
- package/dist/src/entities/model/billing_profile.entity.model.js +2 -0
- package/package.json +1 -1
|
@@ -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 = {}));
|
|
@@ -249,6 +249,7 @@ export * from "./model/client_quote.entity.model";
|
|
|
249
249
|
export * from "./model/client_quote_rate.entity.model";
|
|
250
250
|
export * from "./enums/billing_profile_code_enum";
|
|
251
251
|
export * from "./enums/billing_profile_enum";
|
|
252
|
+
export * from "./enums/billing_profile_status_enum";
|
|
252
253
|
export * from "./interface/billing_profile.entity.interface";
|
|
253
254
|
export * from "./interface/field-constraint/billing_profile_field_constraints.interface";
|
|
254
255
|
export * from "./model/billing_profile.entity.model";
|
|
@@ -265,6 +265,7 @@ __exportStar(require("./model/client_quote.entity.model"), exports);
|
|
|
265
265
|
__exportStar(require("./model/client_quote_rate.entity.model"), exports);
|
|
266
266
|
__exportStar(require("./enums/billing_profile_code_enum"), exports);
|
|
267
267
|
__exportStar(require("./enums/billing_profile_enum"), exports);
|
|
268
|
+
__exportStar(require("./enums/billing_profile_status_enum"), exports);
|
|
268
269
|
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
269
270
|
__exportStar(require("./interface/field-constraint/billing_profile_field_constraints.interface"), exports);
|
|
270
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
|
|
@@ -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;
|