mblabs-roccato-backend-commons 1.0.84 → 1.0.85

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.
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const typeorm_1 = require("typeorm");
16
+ const constants_1 = require("../../constants");
16
17
  const account_group_1 = __importDefault(require("./account-group"));
17
18
  const base_1 = __importDefault(require("./base"));
18
19
  const group_module_1 = __importDefault(require("./group-module"));
@@ -56,7 +57,7 @@ __decorate([
56
57
  __metadata("design:type", Boolean)
57
58
  ], GroupEntity.prototype, "isDefault", void 0);
58
59
  __decorate([
59
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
60
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: constants_1.LOCALES.PORTUGUESE }),
60
61
  __metadata("design:type", String)
61
62
  ], GroupEntity.prototype, "locale", void 0);
62
63
  __decorate([
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const typeorm_1 = require("typeorm");
16
+ const constants_1 = require("../../constants");
16
17
  const base_1 = __importDefault(require("./base"));
17
18
  const profile_module_1 = __importDefault(require("./profile-module"));
18
19
  let ProfileEntity = class ProfileEntity extends base_1.default {
@@ -54,7 +55,7 @@ __decorate([
54
55
  __metadata("design:type", Boolean)
55
56
  ], ProfileEntity.prototype, "isDefault", void 0);
56
57
  __decorate([
57
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
58
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: constants_1.LOCALES.PORTUGUESE }),
58
59
  __metadata("design:type", String)
59
60
  ], ProfileEntity.prototype, "locale", void 0);
60
61
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mblabs-roccato-backend-commons",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,6 +5,7 @@ import {
5
5
  Relation,
6
6
  } from 'typeorm';
7
7
 
8
+ import { LOCALES } from '../../constants';
8
9
  import AccountGroupEntity from './account-group';
9
10
  import BaseEntity from './base';
10
11
  import GroupModuleEntity from './group-module';
@@ -29,7 +30,7 @@ export default class GroupEntity extends BaseEntity {
29
30
  @Column({ type: 'boolean', nullable: true })
30
31
  public isDefault?: boolean;
31
32
 
32
- @Column({ type: 'varchar', nullable: true })
33
+ @Column({ type: 'varchar', nullable: true, default: LOCALES.PORTUGUESE })
33
34
  public locale?: string;
34
35
 
35
36
  @OneToMany(() => AccountGroupEntity, ag => ag.group)
@@ -5,6 +5,7 @@ import {
5
5
  Relation,
6
6
  } from 'typeorm';
7
7
 
8
+ import { LOCALES } from '../../constants';
8
9
  import BaseEntity from './base';
9
10
  import ProfileModuleEntity from './profile-module';
10
11
 
@@ -28,7 +29,7 @@ export default class ProfileEntity extends BaseEntity {
28
29
  @Column({ type: 'boolean', nullable: true })
29
30
  public isDefault?: boolean;
30
31
 
31
- @Column({ type: 'varchar', nullable: true })
32
+ @Column({ type: 'varchar', nullable: true, default: LOCALES.PORTUGUESE })
32
33
  public locale?: string;
33
34
 
34
35
  @OneToMany(() => ProfileModuleEntity, pm => pm.profile)