plac-micro-common 1.3.67 → 1.3.68

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.
@@ -1,6 +1,7 @@
1
1
  import { _BaseEntity } from "../_base_entity";
2
2
  import { CustomerEntity } from "./customer.entity";
3
3
  import { GeoCommuneEntity, GeoDistrictEntity, GeoProvinceEntity, GeoVillageEntity, OccupationEntity } from "../core";
4
+ import { CurrencyType } from "../../types";
4
5
  export declare class CustomerEmploymentEntity extends _BaseEntity {
5
6
  id: string;
6
7
  customer_id: string;
@@ -18,6 +19,8 @@ export declare class CustomerEmploymentEntity extends _BaseEntity {
18
19
  village_id?: string | null;
19
20
  joined_date?: string | null;
20
21
  left_date?: string | null;
22
+ currency?: CurrencyType | null;
23
+ annual_salary?: number;
21
24
  is_primary: boolean;
22
25
  customer: CustomerEntity;
23
26
  occupation?: OccupationEntity | null;
@@ -14,6 +14,8 @@ const typeorm_1 = require("typeorm");
14
14
  const _base_entity_1 = require("../_base_entity");
15
15
  const customer_entity_1 = require("./customer.entity");
16
16
  const core_1 = require("../core");
17
+ const types_1 = require("../../types");
18
+ const utils_1 = require("../../utils");
17
19
  let CustomerEmploymentEntity = class CustomerEmploymentEntity extends _base_entity_1._BaseEntity {
18
20
  };
19
21
  exports.CustomerEmploymentEntity = CustomerEmploymentEntity;
@@ -82,6 +84,19 @@ __decorate([
82
84
  (0, typeorm_1.Column)({ type: "date", nullable: true }),
83
85
  __metadata("design:type", Object)
84
86
  ], CustomerEmploymentEntity.prototype, "left_date", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({
89
+ type: "varchar",
90
+ length: 5,
91
+ nullable: true,
92
+ comment: (0, utils_1.enumToCommentString)(types_1.CurrencyType),
93
+ }),
94
+ __metadata("design:type", Object)
95
+ ], CustomerEmploymentEntity.prototype, "currency", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ type: "decimal", precision: 15, scale: 2, nullable: true }),
98
+ __metadata("design:type", Number)
99
+ ], CustomerEmploymentEntity.prototype, "annual_salary", void 0);
85
100
  __decorate([
86
101
  (0, typeorm_1.Column)({ type: "bool", default: false }),
87
102
  __metadata("design:type", Boolean)
@@ -1,3 +1,7 @@
1
+ export declare enum CurrencyType {
2
+ USD = "USD",
3
+ KHR = "KHR"
4
+ }
1
5
  export declare enum ExchangeRateSourceType {
2
6
  Manual = "manual",
3
7
  Api = "api",
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExchangeRateSyncStatus = exports.ExchangeRateSourceType = void 0;
3
+ exports.ExchangeRateSyncStatus = exports.ExchangeRateSourceType = exports.CurrencyType = void 0;
4
+ var CurrencyType;
5
+ (function (CurrencyType) {
6
+ CurrencyType["USD"] = "USD";
7
+ CurrencyType["KHR"] = "KHR";
8
+ })(CurrencyType || (exports.CurrencyType = CurrencyType = {}));
4
9
  var ExchangeRateSourceType;
5
10
  (function (ExchangeRateSourceType) {
6
11
  ExchangeRateSourceType["Manual"] = "manual";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.67",
3
+ "version": "1.3.68",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {