plac-micro-common 1.3.29 → 1.3.31
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/models/core/finance/exchange_rate.entity.d.ts +2 -2
- package/dist/models/core/finance/exchange_rate.entity.js +1 -1
- package/dist/models/core/finance/exchange_rate_log.entity.d.ts +1 -1
- package/dist/models/core/finance/exchange_rate_log.entity.js +17 -19
- package/dist/models/core/finance/index.d.ts +3 -3
- package/dist/models/core/finance/index.js +3 -3
- package/dist/models/core/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExchangeRateSourceType } from "../../../types";
|
|
2
2
|
import { _BaseEntity } from "../../_base_entity";
|
|
3
|
-
import {
|
|
3
|
+
import { ExchangeRateLogEntity } from "./exchange_rate_log.entity";
|
|
4
4
|
export declare class ExchangeRateEntity extends _BaseEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
base_currency_code: string;
|
|
@@ -10,5 +10,5 @@ export declare class ExchangeRateEntity extends _BaseEntity {
|
|
|
10
10
|
source_type: ExchangeRateSourceType;
|
|
11
11
|
remarks?: string | null;
|
|
12
12
|
is_active: boolean;
|
|
13
|
-
logs?:
|
|
13
|
+
logs?: ExchangeRateLogEntity[];
|
|
14
14
|
}
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", Boolean)
|
|
57
57
|
], ExchangeRateEntity.prototype, "is_active", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, typeorm_1.OneToMany)(() => exchange_rate_log_entity_1.
|
|
59
|
+
(0, typeorm_1.OneToMany)(() => exchange_rate_log_entity_1.ExchangeRateLogEntity, (log) => log.exchange_rate, {
|
|
60
60
|
nullable: true,
|
|
61
61
|
}),
|
|
62
62
|
__metadata("design:type", Array)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _BaseEntity } from "../../_base_entity";
|
|
2
2
|
import { ExchangeRateEntity } from "./exchange_rate.entity";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ExchangeRateLogEntity extends _BaseEntity {
|
|
4
4
|
id: string;
|
|
5
5
|
exchange_rate_id: string;
|
|
6
6
|
old_exchange_rate?: string | null;
|
|
@@ -9,57 +9,55 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ExchangeRateLogEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../../_base_entity");
|
|
15
15
|
const exchange_rate_entity_1 = require("./exchange_rate.entity");
|
|
16
|
-
let
|
|
16
|
+
let ExchangeRateLogEntity = class ExchangeRateLogEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.ExchangeRateLogEntity = ExchangeRateLogEntity;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], ExchangeRateLogEntity.prototype, "id", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
26
|
+
], ExchangeRateLogEntity.prototype, "exchange_rate_id", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 6, nullable: true }),
|
|
29
29
|
__metadata("design:type", Object)
|
|
30
|
-
],
|
|
30
|
+
], ExchangeRateLogEntity.prototype, "old_exchange_rate", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 6, nullable: true }),
|
|
33
33
|
__metadata("design:type", Object)
|
|
34
|
-
],
|
|
34
|
+
], ExchangeRateLogEntity.prototype, "new_exchange_rate", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
37
37
|
__metadata("design:type", Object)
|
|
38
|
-
],
|
|
38
|
+
], ExchangeRateLogEntity.prototype, "old_rate_date", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
41
41
|
__metadata("design:type", Object)
|
|
42
|
-
],
|
|
42
|
+
], ExchangeRateLogEntity.prototype, "new_rate_date", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
45
45
|
__metadata("design:type", Object)
|
|
46
|
-
],
|
|
46
|
+
], ExchangeRateLogEntity.prototype, "change_reason", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
49
49
|
__metadata("design:type", Object)
|
|
50
|
-
],
|
|
50
|
+
], ExchangeRateLogEntity.prototype, "old_data", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
53
53
|
__metadata("design:type", Object)
|
|
54
|
-
],
|
|
54
|
+
], ExchangeRateLogEntity.prototype, "new_data", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
(0, typeorm_1.ManyToOne)(() => exchange_rate_entity_1.ExchangeRateEntity, { onDelete: "CASCADE" }),
|
|
57
57
|
(0, typeorm_1.JoinColumn)({ name: "exchange_rate_id" }),
|
|
58
58
|
__metadata("design:type", exchange_rate_entity_1.ExchangeRateEntity)
|
|
59
|
-
],
|
|
60
|
-
exports.
|
|
61
|
-
(0, typeorm_1.Entity)({ schema: "core", name: "
|
|
62
|
-
(0, typeorm_1.Index)("ix_exchange_rate_logs_exchange_rate_id", ["exchange_rate_id"])
|
|
63
|
-
|
|
64
|
-
(0, typeorm_1.Index)("ix_exchange_rate_logs_changed_by_user_id", ["changed_by_user_id"])
|
|
65
|
-
], ExchangeRateChangeLogEntity);
|
|
59
|
+
], ExchangeRateLogEntity.prototype, "exchange_rate", void 0);
|
|
60
|
+
exports.ExchangeRateLogEntity = ExchangeRateLogEntity = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ schema: "core", name: "exchange_rate_logs" }),
|
|
62
|
+
(0, typeorm_1.Index)("ix_exchange_rate_logs_exchange_rate_id", ["exchange_rate_id"])
|
|
63
|
+
], ExchangeRateLogEntity);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ExchangeRateEntity } from "./exchange_rate.entity";
|
|
2
|
-
import {
|
|
3
|
-
export declare const FINANCE_ENTITIES: readonly [typeof ExchangeRateEntity, typeof
|
|
4
|
-
export { ExchangeRateEntity,
|
|
2
|
+
import { ExchangeRateLogEntity } from "./exchange_rate_log.entity";
|
|
3
|
+
export declare const FINANCE_ENTITIES: readonly [typeof ExchangeRateEntity, typeof ExchangeRateLogEntity];
|
|
4
|
+
export { ExchangeRateEntity, ExchangeRateLogEntity };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ExchangeRateLogEntity = exports.ExchangeRateEntity = exports.FINANCE_ENTITIES = void 0;
|
|
4
4
|
const exchange_rate_entity_1 = require("./exchange_rate.entity");
|
|
5
5
|
Object.defineProperty(exports, "ExchangeRateEntity", { enumerable: true, get: function () { return exchange_rate_entity_1.ExchangeRateEntity; } });
|
|
6
6
|
const exchange_rate_log_entity_1 = require("./exchange_rate_log.entity");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "ExchangeRateLogEntity", { enumerable: true, get: function () { return exchange_rate_log_entity_1.ExchangeRateLogEntity; } });
|
|
8
8
|
exports.FINANCE_ENTITIES = [
|
|
9
9
|
exchange_rate_entity_1.ExchangeRateEntity,
|
|
10
|
-
exchange_rate_log_entity_1.
|
|
10
|
+
exchange_rate_log_entity_1.ExchangeRateLogEntity,
|
|
11
11
|
];
|
|
@@ -16,7 +16,7 @@ import { OrganizationStaffReportingLineEntity } from "./org_staff_reporting_line
|
|
|
16
16
|
import { RelationshipEntity } from "./relationship.entity";
|
|
17
17
|
import { StaffEntity } from "./staffs.entity";
|
|
18
18
|
import { PaymentMethodEntity } from "./payment_method.entity";
|
|
19
|
-
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof NumberSeriesEntity, typeof OrganizationEntity, typeof OrganizationBranchEntity, typeof OrganizationChannelEntity, typeof OrganizationDepartmentEntity, typeof OrganizationPositionEntity, typeof OrganizationStaffEntity, typeof OrganizationStaffBranchEntity, typeof OrganizationStaffReportingLineEntity, typeof PaymentMethodEntity, typeof RelationshipEntity, typeof StaffEntity, typeof import("./product").CashValueEntity, typeof import("./product").PaymentModeEntity, typeof import("./product").PremiumRateConditionEntity, typeof import("./product").PremiumRateValueEntity, typeof import("./product").ProductEntity, typeof import("./product").ProductOrgEntity, typeof import("./product").ProductTypeEntity, typeof import("./product").ProductPaymentModeEntity, typeof import("./product").ProductRiderEntity, typeof import("./product").ProductTermEntity, typeof import("./product").ProductPlanEntity, typeof import("./product").PromotionEntity, typeof import("./product").PromotionOrgEntity, typeof import("./product").PromotionProductEntity, typeof import("./product").RiderEntity, typeof import("./product").TermEntity, typeof import("./finance").ExchangeRateEntity, typeof import("./finance").
|
|
19
|
+
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof NumberSeriesEntity, typeof OrganizationEntity, typeof OrganizationBranchEntity, typeof OrganizationChannelEntity, typeof OrganizationDepartmentEntity, typeof OrganizationPositionEntity, typeof OrganizationStaffEntity, typeof OrganizationStaffBranchEntity, typeof OrganizationStaffReportingLineEntity, typeof PaymentMethodEntity, typeof RelationshipEntity, typeof StaffEntity, typeof import("./product").CashValueEntity, typeof import("./product").PaymentModeEntity, typeof import("./product").PremiumRateConditionEntity, typeof import("./product").PremiumRateValueEntity, typeof import("./product").ProductEntity, typeof import("./product").ProductOrgEntity, typeof import("./product").ProductTypeEntity, typeof import("./product").ProductPaymentModeEntity, typeof import("./product").ProductRiderEntity, typeof import("./product").ProductTermEntity, typeof import("./product").ProductPlanEntity, typeof import("./product").PromotionEntity, typeof import("./product").PromotionOrgEntity, typeof import("./product").PromotionProductEntity, typeof import("./product").RiderEntity, typeof import("./product").TermEntity, typeof import("./finance").ExchangeRateEntity, typeof import("./finance").ExchangeRateLogEntity];
|
|
20
20
|
export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity, NumberSeriesEntity, OrganizationEntity, OrganizationBranchEntity, OrganizationChannelEntity, OrganizationDepartmentEntity, OrganizationPositionEntity, OrganizationStaffEntity, OrganizationStaffBranchEntity, OrganizationStaffReportingLineEntity, PaymentMethodEntity, RelationshipEntity, StaffEntity, };
|
|
21
21
|
export * from "./product";
|
|
22
22
|
export * from "./finance";
|