mblabs-roccato-backend-commons 1.0.64 → 1.0.66
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/database/entities/account-module.d.ts +1 -0
- package/dist/database/entities/account-module.js +5 -0
- package/dist/database/entities/group-module.d.ts +1 -0
- package/dist/database/entities/group-module.js +5 -0
- package/dist/database/entities/profile-module.d.ts +1 -0
- package/dist/database/entities/profile-module.js +5 -0
- package/dist/database/migrations/1758382227488-CreateAccountSettingsTable.js +30 -0
- package/dist/database/migrations/1759768335075-AddCanAddWidgetToAccountModuleTable.d.ts +5 -0
- package/dist/database/migrations/1759768335075-AddCanAddWidgetToAccountModuleTable.js +18 -0
- package/dist/database/migrations/1759768342995-AddCanAddWidgetToGroupModuleTable.d.ts +5 -0
- package/dist/database/migrations/1759768342995-AddCanAddWidgetToGroupModuleTable.js +18 -0
- package/dist/database/migrations/1759768354127-AddCanAddWidgetToProfileModuleTable.d.ts +5 -0
- package/dist/database/migrations/1759768354127-AddCanAddWidgetToProfileModuleTable.js +18 -0
- package/dist/database/migrations/index.d.ts +6 -0
- package/dist/database/migrations/index.js +6 -0
- package/package.json +1 -1
- package/src/database/entities/account-module.ts +3 -0
- package/src/database/entities/group-module.ts +3 -0
- package/src/database/entities/profile-module.ts +3 -0
- package/src/database/migrations/1758382227488-CreateAccountSettingsTable.ts +30 -0
- package/src/database/migrations/1759768335075-AddCanAddWidgetToAccountModuleTable.ts +17 -0
- package/src/database/migrations/1759768342995-AddCanAddWidgetToGroupModuleTable.ts +18 -0
- package/src/database/migrations/1759768354127-AddCanAddWidgetToProfileModuleTable.ts +18 -0
- package/src/database/migrations/index.ts +7 -1
|
@@ -28,6 +28,7 @@ let AccountModuleEntity = class AccountModuleEntity extends base_1.default {
|
|
|
28
28
|
canDownload;
|
|
29
29
|
canUpload;
|
|
30
30
|
canSupport;
|
|
31
|
+
canAddWidget;
|
|
31
32
|
constructor(partial) {
|
|
32
33
|
super();
|
|
33
34
|
Object.assign(this, partial);
|
|
@@ -82,6 +83,10 @@ __decorate([
|
|
|
82
83
|
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
83
84
|
__metadata("design:type", Boolean)
|
|
84
85
|
], AccountModuleEntity.prototype, "canSupport", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], AccountModuleEntity.prototype, "canAddWidget", void 0);
|
|
85
90
|
AccountModuleEntity = __decorate([
|
|
86
91
|
(0, typeorm_1.Entity)('account_module'),
|
|
87
92
|
__metadata("design:paramtypes", [Object])
|
|
@@ -28,6 +28,7 @@ let GroupModuleEntity = class GroupModuleEntity extends base_1.default {
|
|
|
28
28
|
canDownload;
|
|
29
29
|
canUpload;
|
|
30
30
|
canSupport;
|
|
31
|
+
canAddWidget;
|
|
31
32
|
constructor(partial) {
|
|
32
33
|
super();
|
|
33
34
|
Object.assign(this, partial);
|
|
@@ -82,6 +83,10 @@ __decorate([
|
|
|
82
83
|
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
83
84
|
__metadata("design:type", Boolean)
|
|
84
85
|
], GroupModuleEntity.prototype, "canSupport", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], GroupModuleEntity.prototype, "canAddWidget", void 0);
|
|
85
90
|
GroupModuleEntity = __decorate([
|
|
86
91
|
(0, typeorm_1.Entity)('group_module'),
|
|
87
92
|
__metadata("design:paramtypes", [Object])
|
|
@@ -28,6 +28,7 @@ let ProfileModuleEntity = class ProfileModuleEntity extends base_1.default {
|
|
|
28
28
|
canDownload;
|
|
29
29
|
canUpload;
|
|
30
30
|
canSupport;
|
|
31
|
+
canAddWidget;
|
|
31
32
|
constructor(partial) {
|
|
32
33
|
super();
|
|
33
34
|
Object.assign(this, partial);
|
|
@@ -82,6 +83,10 @@ __decorate([
|
|
|
82
83
|
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
83
84
|
__metadata("design:type", Boolean)
|
|
84
85
|
], ProfileModuleEntity.prototype, "canSupport", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], ProfileModuleEntity.prototype, "canAddWidget", void 0);
|
|
85
90
|
ProfileModuleEntity = __decorate([
|
|
86
91
|
(0, typeorm_1.Entity)('profile_module'),
|
|
87
92
|
__metadata("design:paramtypes", [Object])
|
|
@@ -51,6 +51,36 @@ class CreateAccountSettingsTable1758382227488 {
|
|
|
51
51
|
type: 'varchar',
|
|
52
52
|
isNullable: true,
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
name: 'createdBy',
|
|
56
|
+
type: 'varchar',
|
|
57
|
+
isNullable: true,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'createdAt',
|
|
61
|
+
type: 'timestamptz',
|
|
62
|
+
default: 'now()',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'updatedBy',
|
|
66
|
+
type: 'varchar',
|
|
67
|
+
isNullable: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'updatedAt',
|
|
71
|
+
type: 'timestamptz',
|
|
72
|
+
default: 'now()',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'deletedBy',
|
|
76
|
+
type: 'varchar',
|
|
77
|
+
isNullable: true,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'deletedAt',
|
|
81
|
+
type: 'timestamptz',
|
|
82
|
+
isNullable: true,
|
|
83
|
+
},
|
|
54
84
|
],
|
|
55
85
|
foreignKeys: [
|
|
56
86
|
{
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCanAddWidgetToAccountModuleTable1759768335075 = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
class AddCanAddWidgetToAccountModuleTable1759768335075 {
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.addColumn('account_module', new typeorm_1.TableColumn({
|
|
8
|
+
name: 'canAddWidget',
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
isNullable: true,
|
|
11
|
+
default: false,
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.dropColumn('account_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AddCanAddWidgetToAccountModuleTable1759768335075 = AddCanAddWidgetToAccountModuleTable1759768335075;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCanAddWidgetToGroupModuleTable1759768342995 = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
class AddCanAddWidgetToGroupModuleTable1759768342995 {
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.addColumn('group_module', new typeorm_1.TableColumn({
|
|
8
|
+
name: 'canAddWidget',
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
isNullable: true,
|
|
11
|
+
default: false,
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.dropColumn('group_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AddCanAddWidgetToGroupModuleTable1759768342995 = AddCanAddWidgetToGroupModuleTable1759768342995;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCanAddWidgetToProfileModuleTable1759768354127 = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
class AddCanAddWidgetToProfileModuleTable1759768354127 {
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.addColumn('profile_module', new typeorm_1.TableColumn({
|
|
8
|
+
name: 'canAddWidget',
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
isNullable: true,
|
|
11
|
+
default: false,
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.dropColumn('profile_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AddCanAddWidgetToProfileModuleTable1759768354127 = AddCanAddWidgetToProfileModuleTable1759768354127;
|
|
@@ -13,6 +13,9 @@ import { CreateAccountDetailsTable1750691840822 } from './1750691840822-CreateAc
|
|
|
13
13
|
import { CreateProfileModuleTable1751576312683 } from './1751576312683-CreateProfileModuleTable';
|
|
14
14
|
import { CreateAccountDeviceTable1754426499576 } from './1754426499576-CreateAccountDeviceTable';
|
|
15
15
|
import { CreateAccountSettingsTable1758382227488 } from './1758382227488-CreateAccountSettingsTable';
|
|
16
|
+
import { AddCanAddWidgetToAccountModuleTable1759768335075 } from './1759768335075-AddCanAddWidgetToAccountModuleTable';
|
|
17
|
+
import { AddCanAddWidgetToGroupModuleTable1759768342995 } from './1759768342995-AddCanAddWidgetToGroupModuleTable';
|
|
18
|
+
import { AddCanAddWidgetToProfileModuleTable1759768354127 } from './1759768354127-AddCanAddWidgetToProfileModuleTable';
|
|
16
19
|
export declare const Migrations: {
|
|
17
20
|
Init1748448461165: typeof Init1748448461165;
|
|
18
21
|
CreateProfilesTable1748448589743: typeof CreateProfilesTable1748448589743;
|
|
@@ -29,4 +32,7 @@ export declare const Migrations: {
|
|
|
29
32
|
CreateProfileModuleTable1751576312683: typeof CreateProfileModuleTable1751576312683;
|
|
30
33
|
CreateAccountDeviceTable1754426499576: typeof CreateAccountDeviceTable1754426499576;
|
|
31
34
|
CreateAccountSettingsTable1758382227488: typeof CreateAccountSettingsTable1758382227488;
|
|
35
|
+
AddCanAddWidgetToAccountModuleTable1759768335075: typeof AddCanAddWidgetToAccountModuleTable1759768335075;
|
|
36
|
+
AddCanAddWidgetToGroupModuleTable1759768342995: typeof AddCanAddWidgetToGroupModuleTable1759768342995;
|
|
37
|
+
AddCanAddWidgetToProfileModuleTable1759768354127: typeof AddCanAddWidgetToProfileModuleTable1759768354127;
|
|
32
38
|
};
|
|
@@ -16,6 +16,9 @@ const _1750691840822_CreateAccountDetailsTable_1 = require("./1750691840822-Crea
|
|
|
16
16
|
const _1751576312683_CreateProfileModuleTable_1 = require("./1751576312683-CreateProfileModuleTable");
|
|
17
17
|
const _1754426499576_CreateAccountDeviceTable_1 = require("./1754426499576-CreateAccountDeviceTable");
|
|
18
18
|
const _1758382227488_CreateAccountSettingsTable_1 = require("./1758382227488-CreateAccountSettingsTable");
|
|
19
|
+
const _1759768335075_AddCanAddWidgetToAccountModuleTable_1 = require("./1759768335075-AddCanAddWidgetToAccountModuleTable");
|
|
20
|
+
const _1759768342995_AddCanAddWidgetToGroupModuleTable_1 = require("./1759768342995-AddCanAddWidgetToGroupModuleTable");
|
|
21
|
+
const _1759768354127_AddCanAddWidgetToProfileModuleTable_1 = require("./1759768354127-AddCanAddWidgetToProfileModuleTable");
|
|
19
22
|
exports.Migrations = {
|
|
20
23
|
Init1748448461165: _1748448461165_Init_1.Init1748448461165,
|
|
21
24
|
CreateProfilesTable1748448589743: _1748448589743_CreateProfilesTable_1.CreateProfilesTable1748448589743,
|
|
@@ -32,4 +35,7 @@ exports.Migrations = {
|
|
|
32
35
|
CreateProfileModuleTable1751576312683: _1751576312683_CreateProfileModuleTable_1.CreateProfileModuleTable1751576312683,
|
|
33
36
|
CreateAccountDeviceTable1754426499576: _1754426499576_CreateAccountDeviceTable_1.CreateAccountDeviceTable1754426499576,
|
|
34
37
|
CreateAccountSettingsTable1758382227488: _1758382227488_CreateAccountSettingsTable_1.CreateAccountSettingsTable1758382227488,
|
|
38
|
+
AddCanAddWidgetToAccountModuleTable1759768335075: _1759768335075_AddCanAddWidgetToAccountModuleTable_1.AddCanAddWidgetToAccountModuleTable1759768335075,
|
|
39
|
+
AddCanAddWidgetToGroupModuleTable1759768342995: _1759768342995_AddCanAddWidgetToGroupModuleTable_1.AddCanAddWidgetToGroupModuleTable1759768342995,
|
|
40
|
+
AddCanAddWidgetToProfileModuleTable1759768354127: _1759768354127_AddCanAddWidgetToProfileModuleTable_1.AddCanAddWidgetToProfileModuleTable1759768354127,
|
|
35
41
|
};
|
package/package.json
CHANGED
|
@@ -42,6 +42,9 @@ export default class AccountModuleEntity extends BaseEntity {
|
|
|
42
42
|
@Column({ type: 'boolean', nullable: true })
|
|
43
43
|
public canSupport?: boolean;
|
|
44
44
|
|
|
45
|
+
@Column({ type: 'boolean', nullable: true })
|
|
46
|
+
public canAddWidget?: boolean;
|
|
47
|
+
|
|
45
48
|
constructor (partial: Partial<AccountModuleEntity>) {
|
|
46
49
|
super();
|
|
47
50
|
Object.assign(this, partial);
|
|
@@ -42,6 +42,9 @@ export default class GroupModuleEntity extends BaseEntity {
|
|
|
42
42
|
@Column({ type: 'boolean', nullable: true })
|
|
43
43
|
public canSupport?: boolean;
|
|
44
44
|
|
|
45
|
+
@Column({ type: 'boolean', nullable: true })
|
|
46
|
+
public canAddWidget?: boolean;
|
|
47
|
+
|
|
45
48
|
constructor (partial: Partial<GroupModuleEntity>) {
|
|
46
49
|
super();
|
|
47
50
|
Object.assign(this, partial);
|
|
@@ -52,6 +52,9 @@ export default class ProfileModuleEntity extends BaseEntity {
|
|
|
52
52
|
@Column({ type: 'boolean', nullable: true })
|
|
53
53
|
public canSupport?: boolean;
|
|
54
54
|
|
|
55
|
+
@Column({ type: 'boolean', nullable: true })
|
|
56
|
+
public canAddWidget?: boolean;
|
|
57
|
+
|
|
55
58
|
constructor (partial: Partial<ProfileModuleEntity>) {
|
|
56
59
|
super();
|
|
57
60
|
Object.assign(this, partial);
|
|
@@ -50,6 +50,36 @@ export class CreateAccountSettingsTable1758382227488 implements MigrationInterfa
|
|
|
50
50
|
type: 'varchar',
|
|
51
51
|
isNullable: true,
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
name: 'createdBy',
|
|
55
|
+
type: 'varchar',
|
|
56
|
+
isNullable: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'createdAt',
|
|
60
|
+
type: 'timestamptz',
|
|
61
|
+
default: 'now()',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'updatedBy',
|
|
65
|
+
type: 'varchar',
|
|
66
|
+
isNullable: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'updatedAt',
|
|
70
|
+
type: 'timestamptz',
|
|
71
|
+
default: 'now()',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'deletedBy',
|
|
75
|
+
type: 'varchar',
|
|
76
|
+
isNullable: true,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'deletedAt',
|
|
80
|
+
type: 'timestamptz',
|
|
81
|
+
isNullable: true,
|
|
82
|
+
},
|
|
53
83
|
],
|
|
54
84
|
foreignKeys: [
|
|
55
85
|
{
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class AddCanAddWidgetToAccountModuleTable1759768335075 implements MigrationInterface {
|
|
4
|
+
|
|
5
|
+
public async up (queryRunner: QueryRunner): Promise<void> {
|
|
6
|
+
await queryRunner.addColumn('account_module', new TableColumn({
|
|
7
|
+
name: 'canAddWidget',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
isNullable: true,
|
|
10
|
+
default: false,
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public async down (queryRunner: QueryRunner): Promise<void> {
|
|
15
|
+
await queryRunner.dropColumn('account_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class AddCanAddWidgetToGroupModuleTable1759768342995 implements MigrationInterface {
|
|
4
|
+
|
|
5
|
+
public async up (queryRunner: QueryRunner): Promise<void> {
|
|
6
|
+
await queryRunner.addColumn('group_module', new TableColumn({
|
|
7
|
+
name: 'canAddWidget',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
isNullable: true,
|
|
10
|
+
default: false,
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public async down (queryRunner: QueryRunner): Promise<void> {
|
|
15
|
+
await queryRunner.dropColumn('group_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class AddCanAddWidgetToProfileModuleTable1759768354127 implements MigrationInterface {
|
|
4
|
+
|
|
5
|
+
public async up (queryRunner: QueryRunner): Promise<void> {
|
|
6
|
+
await queryRunner.addColumn('profile_module', new TableColumn({
|
|
7
|
+
name: 'canAddWidget',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
isNullable: true,
|
|
10
|
+
default: false,
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public async down (queryRunner: QueryRunner): Promise<void> {
|
|
15
|
+
await queryRunner.dropColumn('profile_module', 'canAddWidget');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -11,8 +11,11 @@ import { CreateAddressTable1750432386920 } from './1750432386920-CreateAddressTa
|
|
|
11
11
|
import { CreateAccountAddressTable1750690818577 } from './1750690818577-CreateAccountAddressTable';
|
|
12
12
|
import { CreateAccountDetailsTable1750691840822 } from './1750691840822-CreateAccountDetailsTable';
|
|
13
13
|
import { CreateProfileModuleTable1751576312683 } from './1751576312683-CreateProfileModuleTable';
|
|
14
|
-
import {
|
|
14
|
+
import { CreateAccountDeviceTable1754426499576 } from './1754426499576-CreateAccountDeviceTable';
|
|
15
15
|
import { CreateAccountSettingsTable1758382227488 } from './1758382227488-CreateAccountSettingsTable';
|
|
16
|
+
import { AddCanAddWidgetToAccountModuleTable1759768335075 } from './1759768335075-AddCanAddWidgetToAccountModuleTable';
|
|
17
|
+
import { AddCanAddWidgetToGroupModuleTable1759768342995 } from './1759768342995-AddCanAddWidgetToGroupModuleTable';
|
|
18
|
+
import { AddCanAddWidgetToProfileModuleTable1759768354127 } from './1759768354127-AddCanAddWidgetToProfileModuleTable';
|
|
16
19
|
|
|
17
20
|
export const Migrations = {
|
|
18
21
|
Init1748448461165,
|
|
@@ -30,4 +33,7 @@ export const Migrations = {
|
|
|
30
33
|
CreateProfileModuleTable1751576312683,
|
|
31
34
|
CreateAccountDeviceTable1754426499576,
|
|
32
35
|
CreateAccountSettingsTable1758382227488,
|
|
36
|
+
AddCanAddWidgetToAccountModuleTable1759768335075,
|
|
37
|
+
AddCanAddWidgetToGroupModuleTable1759768342995,
|
|
38
|
+
AddCanAddWidgetToProfileModuleTable1759768354127,
|
|
33
39
|
};
|