uaxi-shared-entities 1.0.87 → 1.0.89
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/entities/driver-deduction-types.entity.d.ts +3 -3
- package/dist/entities/driver-deduction-types.entity.d.ts.map +1 -1
- package/dist/entities/driver-deduction-types.entity.js +2 -6
- package/dist/entities/driver-deduction-types.entity.js.map +1 -1
- package/package.json +1 -1
- package/src/entities/driver-deduction-types.entity.ts +8 -9
|
@@ -6,7 +6,7 @@ export interface DriverDeductionTypesAttributes {
|
|
|
6
6
|
name: string;
|
|
7
7
|
code: string;
|
|
8
8
|
percentage: number;
|
|
9
|
-
category: DriverDeductionCategory;
|
|
9
|
+
category: DriverDeductionCategory | null;
|
|
10
10
|
isActive: boolean;
|
|
11
11
|
description: string;
|
|
12
12
|
createdAt: Date;
|
|
@@ -17,7 +17,7 @@ export interface CreateDriverDeductionTypesData {
|
|
|
17
17
|
name: string;
|
|
18
18
|
code: string;
|
|
19
19
|
percentage: number;
|
|
20
|
-
category
|
|
20
|
+
category?: DriverDeductionCategory;
|
|
21
21
|
isActive?: boolean;
|
|
22
22
|
description?: string;
|
|
23
23
|
}
|
|
@@ -26,7 +26,7 @@ export declare class DriverDeductionTypes extends Model<DriverDeductionTypesAttr
|
|
|
26
26
|
name: string;
|
|
27
27
|
code: string;
|
|
28
28
|
percentage: number;
|
|
29
|
-
category: DriverDeductionCategory;
|
|
29
|
+
category: DriverDeductionCategory | null;
|
|
30
30
|
isActive: boolean;
|
|
31
31
|
description: string;
|
|
32
32
|
deletedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver-deduction-types.entity.d.ts","sourceRoot":"","sources":["../../src/entities/driver-deduction-types.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAEN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAGlF,MAAM,WAAW,8BAA8B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"driver-deduction-types.entity.d.ts","sourceRoot":"","sources":["../../src/entities/driver-deduction-types.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAEN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAGlF,MAAM,WAAW,8BAA8B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAGD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAKa,oBAAqB,SAAQ,KAAK,CAC7C,8BAA8B,EAC9B,8BAA8B,CAC/B;IAMS,EAAE,EAAE,MAAM,CAAC;IAOnB,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,MAAM,CAAC;IAOb,UAAU,EAAE,MAAM,CAAC;IAOnB,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAOzC,QAAQ,EAAE,OAAO,CAAC;IAOlB,WAAW,EAAE,MAAM,CAAC;IAGZ,SAAS,EAAE,IAAI,CAAC;IAIxB,UAAU,EAAE,gBAAgB,EAAE,CAAC;CAChC"}
|
|
@@ -44,23 +44,20 @@ __decorate([
|
|
|
44
44
|
(0, sequelize_typescript_1.Column)({
|
|
45
45
|
type: sequelize_typescript_1.DataType.DECIMAL(5, 2),
|
|
46
46
|
allowNull: false,
|
|
47
|
-
comment: "Porcentaje del descuento (ej: 8.00 para 8%)",
|
|
48
47
|
}),
|
|
49
48
|
__metadata("design:type", Number)
|
|
50
49
|
], DriverDeductionTypes.prototype, "percentage", void 0);
|
|
51
50
|
__decorate([
|
|
52
51
|
(0, sequelize_typescript_1.Column)({
|
|
53
52
|
type: sequelize_typescript_1.DataType.ENUM(...Object.values(driver_deduction_category_enum_1.DriverDeductionCategory)),
|
|
54
|
-
allowNull:
|
|
55
|
-
comment: "Categoría: RETENTION (retención del conductor), ADMIN_COST (costo del admin), CALCULATION_PARAMETER (parámetro de cálculo)",
|
|
53
|
+
allowNull: true,
|
|
56
54
|
}),
|
|
57
|
-
__metadata("design:type",
|
|
55
|
+
__metadata("design:type", Object)
|
|
58
56
|
], DriverDeductionTypes.prototype, "category", void 0);
|
|
59
57
|
__decorate([
|
|
60
58
|
(0, sequelize_typescript_1.Column)({
|
|
61
59
|
type: sequelize_typescript_1.DataType.BOOLEAN,
|
|
62
60
|
defaultValue: true,
|
|
63
|
-
comment: "Indica si el descuento está activo",
|
|
64
61
|
}),
|
|
65
62
|
__metadata("design:type", Boolean)
|
|
66
63
|
], DriverDeductionTypes.prototype, "isActive", void 0);
|
|
@@ -68,7 +65,6 @@ __decorate([
|
|
|
68
65
|
(0, sequelize_typescript_1.Column)({
|
|
69
66
|
type: sequelize_typescript_1.DataType.TEXT,
|
|
70
67
|
allowNull: true,
|
|
71
|
-
comment: "Descripción detallada del descuento",
|
|
72
68
|
}),
|
|
73
69
|
__metadata("design:type", String)
|
|
74
70
|
], DriverDeductionTypes.prototype, "description", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver-deduction-types.entity.js","sourceRoot":"","sources":["../../src/entities/driver-deduction-types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,yEAA8D;AAC9D,4FAAkF;AA+B3E,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,4BAGzC;
|
|
1
|
+
{"version":3,"file":"driver-deduction-types.entity.js","sourceRoot":"","sources":["../../src/entities/driver-deduction-types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,yEAA8D;AAC9D,4FAAkF;AA+B3E,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,4BAGzC;CAwDA,CAAA;AA3DY,oDAAoB;AASvB;IALP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,YAAY,EAAE,+BAAQ,CAAC,MAAM;QAC7B,UAAU,EAAE,IAAI;KACjB,CAAC;;gDACiB;AAOnB;IALC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;kDACW;AAOb;IALC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;kDACW;AAOb;IAJC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5B,SAAS,EAAE,KAAK;KACjB,CAAC;;wDACiB;AAOnB;IAJC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,wDAAuB,CAAC,CAAC;QAC9D,SAAS,EAAE,IAAI;KAChB,CAAC;;sDACuC;AAOzC;IAJC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,YAAY,EAAE,IAAI;KACnB,CAAC;;sDACgB;AAOlB;IAJC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,IAAI;KAChB,CAAC;;yDACkB;AAGZ;IADP,gCAAS;8BACS,IAAI;uDAAC;AAIxB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,iBAAiB,CAAC;;wDACpB;+BA1DpB,oBAAoB;IALhC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,wBAAwB;QACnC,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI,EAAE,uBAAuB;KACxC,CAAC;GACW,oBAAoB,CA2DhC"}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export interface DriverDeductionTypesAttributes {
|
|
|
15
15
|
name: string; // Nombre del descuento (IVA, ISR, NUEVA REFORMA, etc.)
|
|
16
16
|
code: string; // Código único del descuento
|
|
17
17
|
percentage: number; // Porcentaje del descuento
|
|
18
|
-
category: DriverDeductionCategory; // Categoría: RETENTION, ADMIN_COST, o CALCULATION_PARAMETER
|
|
18
|
+
category: DriverDeductionCategory | null; // Categoría: RETENTION, ADMIN_COST, o CALCULATION_PARAMETER
|
|
19
19
|
isActive: boolean; // Si el descuento está activo
|
|
20
20
|
description: string; // Descripción del descuento
|
|
21
21
|
createdAt: Date;
|
|
@@ -28,7 +28,7 @@ export interface CreateDriverDeductionTypesData {
|
|
|
28
28
|
name: string;
|
|
29
29
|
code: string;
|
|
30
30
|
percentage: number;
|
|
31
|
-
category
|
|
31
|
+
category?: DriverDeductionCategory;
|
|
32
32
|
isActive?: boolean;
|
|
33
33
|
description?: string;
|
|
34
34
|
}
|
|
@@ -63,32 +63,31 @@ export class DriverDeductionTypes extends Model<
|
|
|
63
63
|
})
|
|
64
64
|
code: string;
|
|
65
65
|
|
|
66
|
+
// Porcentaje del descuento (ej: 8.00 para 8%)
|
|
66
67
|
@Column({
|
|
67
68
|
type: DataType.DECIMAL(5, 2),
|
|
68
69
|
allowNull: false,
|
|
69
|
-
comment: "Porcentaje del descuento (ej: 8.00 para 8%)",
|
|
70
70
|
})
|
|
71
71
|
percentage: number;
|
|
72
72
|
|
|
73
|
+
// Categoría: RETENTION (retención del conductor), ADMIN_COST (costo del admin), CALCULATION_PARAMETER (parámetro de cálculo)
|
|
73
74
|
@Column({
|
|
74
75
|
type: DataType.ENUM(...Object.values(DriverDeductionCategory)),
|
|
75
|
-
allowNull:
|
|
76
|
-
comment:
|
|
77
|
-
"Categoría: RETENTION (retención del conductor), ADMIN_COST (costo del admin), CALCULATION_PARAMETER (parámetro de cálculo)",
|
|
76
|
+
allowNull: true,
|
|
78
77
|
})
|
|
79
|
-
category: DriverDeductionCategory;
|
|
78
|
+
category: DriverDeductionCategory | null;
|
|
80
79
|
|
|
80
|
+
// Indica si el descuento está activo
|
|
81
81
|
@Column({
|
|
82
82
|
type: DataType.BOOLEAN,
|
|
83
83
|
defaultValue: true,
|
|
84
|
-
comment: "Indica si el descuento está activo",
|
|
85
84
|
})
|
|
86
85
|
isActive: boolean;
|
|
87
86
|
|
|
87
|
+
// Descripción detallada del descuento
|
|
88
88
|
@Column({
|
|
89
89
|
type: DataType.TEXT,
|
|
90
90
|
allowNull: true,
|
|
91
|
-
comment: "Descripción detallada del descuento",
|
|
92
91
|
})
|
|
93
92
|
description: string;
|
|
94
93
|
|