mblabs-roccato-backend-commons 1.0.80 → 1.0.82

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.
@@ -12,6 +12,7 @@ export default class AccountEntity extends BaseEntity {
12
12
  businessDocument?: string;
13
13
  lastAccessAt?: Date;
14
14
  metadata?: unknown;
15
+ isDefault?: boolean;
15
16
  accountModules?: Relation<AccountModuleEntity>[];
16
17
  accountGroups?: Relation<AccountGroupEntity>[];
17
18
  profile?: Relation<ProfileEntity>;
@@ -26,6 +26,7 @@ let AccountEntity = class AccountEntity extends base_1.default {
26
26
  businessDocument;
27
27
  lastAccessAt;
28
28
  metadata;
29
+ isDefault;
29
30
  accountModules;
30
31
  accountGroups;
31
32
  profile;
@@ -66,6 +67,10 @@ __decorate([
66
67
  (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
67
68
  __metadata("design:type", Object)
68
69
  ], AccountEntity.prototype, "metadata", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true, default: false }),
72
+ __metadata("design:type", Boolean)
73
+ ], AccountEntity.prototype, "isDefault", void 0);
69
74
  __decorate([
70
75
  (0, typeorm_1.OneToMany)(() => account_module_1.default, am => am.account),
71
76
  __metadata("design:type", Array)
@@ -56,6 +56,12 @@ class CreateAccountsTable1748448589934 {
56
56
  type: 'uuid',
57
57
  isNullable: true,
58
58
  },
59
+ {
60
+ name: 'isDefault',
61
+ type: 'boolean',
62
+ isNullable: true,
63
+ default: false,
64
+ },
59
65
  {
60
66
  name: 'metadata',
61
67
  type: 'jsonb',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mblabs-roccato-backend-commons",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,6 +39,9 @@ export default class AccountEntity extends BaseEntity {
39
39
  @Column({ type: 'jsonb', nullable: true })
40
40
  public metadata?: unknown;
41
41
 
42
+ @Column({ type: 'boolean', nullable: true, default: false })
43
+ public isDefault?: boolean;
44
+
42
45
  @OneToMany(() => AccountModuleEntity, am => am.account)
43
46
  public accountModules?: Relation<AccountModuleEntity>[];
44
47
 
@@ -55,6 +55,12 @@ export class CreateAccountsTable1748448589934 implements MigrationInterface {
55
55
  type: 'uuid',
56
56
  isNullable: true,
57
57
  },
58
+ {
59
+ name: 'isDefault',
60
+ type: 'boolean',
61
+ isNullable: true,
62
+ default: false,
63
+ },
58
64
  {
59
65
  name: 'metadata',
60
66
  type: 'jsonb',