@servicelabsco/nestjs-utility-services 1.0.173 → 1.0.174
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/common/libraries/common.entity.d.ts +1 -1
- package/dist/migrations/1651482027225-AddApplicationIdSysMenuDetailsTable.ts.d.ts +5 -0
- package/dist/migrations/1651482027225-AddApplicationIdSysMenuDetailsTable.ts.js +16 -0
- package/dist/migrations/1651482027225-AddApplicationIdSysMenuDetailsTable.ts.js.map +1 -0
- package/dist/platformUtility/services/mail.service.d.ts +1 -2
- package/dist/system/controllers/preference.controller.d.ts +1 -1
- package/dist/system/entities/menu.entity.d.ts +3 -0
- package/dist/system/entities/menu.entity.js +10 -0
- package/dist/system/entities/menu.entity.js.map +1 -1
- package/package.json +1 -1
@@ -15,5 +15,5 @@ export declare class CommonEntity extends BaseEntity {
|
|
15
15
|
softDelete(): Promise<this>;
|
16
16
|
static softDelete<T extends CommonEntity>(this: ObjectType<T>, where: FindConditions<T>): Promise<T[]>;
|
17
17
|
static destroy<T extends CommonEntity>(this: ObjectType<T>, where: FindConditions<T>): Promise<T[]>;
|
18
|
-
toJSON():
|
18
|
+
toJSON(): any;
|
19
19
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AddApplicationIdSysMenuDetailsTable1651482027225 = void 0;
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
5
|
+
class AddApplicationIdSysMenuDetailsTable1651482027225 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_menu_details');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.foreign({ name: 'application_id', foreignTable: 'sys_lookup_values' });
|
12
|
+
this.json('attributes');
|
13
|
+
}
|
14
|
+
}
|
15
|
+
exports.AddApplicationIdSysMenuDetailsTable1651482027225 = AddApplicationIdSysMenuDetailsTable1651482027225;
|
16
|
+
//# sourceMappingURL=1651482027225-AddApplicationIdSysMenuDetailsTable.ts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1651482027225-AddApplicationIdSysMenuDetailsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1651482027225-AddApplicationIdSysMenuDetailsTable.ts.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AACzE,MAAa,gDAAiD,SAAQ,oCAAgB;IAClF;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;CACJ;AAVD,4GAUC"}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { MailLogEntity } from './../../system/entities/mail.log.entity';
|
2
1
|
import { MailOptionsDto } from './../dtos/mail.options.dto';
|
3
2
|
import { DynamoService } from './dynamo.service';
|
4
3
|
export declare class MailService {
|
5
4
|
private readonly dynamoService;
|
6
5
|
constructor(dynamoService: DynamoService);
|
7
|
-
send(options: MailOptionsDto, metadata?: any): Promise<
|
6
|
+
send(options: MailOptionsDto, metadata?: any): Promise<any>;
|
8
7
|
private processMail;
|
9
8
|
private saveToDynamo;
|
10
9
|
}
|
@@ -9,7 +9,7 @@ export declare class PreferenceController {
|
|
9
9
|
private readonly userPreferenceService;
|
10
10
|
constructor(accessManager: AccessManager, userPreferenceService: UserPreferenceService);
|
11
11
|
getUserPreferences(): Promise<import("..").UserPreferenceEntity[]>;
|
12
|
-
setPreference(body: MenuListPreferenceCreationDto): Promise<
|
12
|
+
setPreference(body: MenuListPreferenceCreationDto): Promise<any>;
|
13
13
|
storeMenuListPreference(id: number, body: MenuListPreferenceCreationDto): Promise<ListPreferenceEntity>;
|
14
14
|
storeModelFormPreference(id: number, body: ModelFormPreferenceCreationDto): Promise<FormPreferenceEntity>;
|
15
15
|
storeFormPreference(body: any): Promise<FormPreferenceEntity>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CommonEntity } from '../../common/libraries/common.entity';
|
2
2
|
import { ListPreferenceEntity } from './list.preference.entity';
|
3
|
+
import { LookupValueEntity } from './lookup.value.entity';
|
3
4
|
import { MenuRoleEntity } from './menu.role.entity';
|
4
5
|
import { ModuleMenuEntity } from './module.menu.entity';
|
5
6
|
import { PageDefinitionEntity } from './page.definition.entity';
|
@@ -18,10 +19,12 @@ export declare class MenuEntity extends CommonEntity {
|
|
18
19
|
order_definition: string;
|
19
20
|
page_id: number;
|
20
21
|
includes: string;
|
22
|
+
application_id: number;
|
21
23
|
page: PageDefinitionEntity;
|
22
24
|
child_menus: ParentMenuEntity[];
|
23
25
|
menu_roles: MenuRoleEntity[];
|
24
26
|
module_menus: ModuleMenuEntity[];
|
27
|
+
application: LookupValueEntity;
|
25
28
|
ui_actions: UiActionEntity[];
|
26
29
|
list_layouts: ListPreferenceEntity[];
|
27
30
|
}
|
@@ -14,6 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
15
15
|
const typeorm_1 = require("typeorm");
|
16
16
|
const common_entity_1 = require("../../common/libraries/common.entity");
|
17
|
+
const lookup_value_entity_1 = require("./lookup.value.entity");
|
17
18
|
const menu_role_entity_1 = require("./menu.role.entity");
|
18
19
|
const module_menu_entity_1 = require("./module.menu.entity");
|
19
20
|
const page_definition_entity_1 = require("./page.definition.entity");
|
@@ -73,6 +74,10 @@ __decorate([
|
|
73
74
|
(0, typeorm_1.Column)(),
|
74
75
|
__metadata("design:type", String)
|
75
76
|
], MenuEntity.prototype, "includes", void 0);
|
77
|
+
__decorate([
|
78
|
+
(0, typeorm_1.Column)(),
|
79
|
+
__metadata("design:type", Number)
|
80
|
+
], MenuEntity.prototype, "application_id", void 0);
|
76
81
|
__decorate([
|
77
82
|
(0, typeorm_1.ManyToOne)(() => page_definition_entity_1.PageDefinitionEntity),
|
78
83
|
(0, typeorm_1.JoinColumn)({ name: 'page_id' }),
|
@@ -90,6 +95,11 @@ __decorate([
|
|
90
95
|
(0, typeorm_1.OneToMany)(() => module_menu_entity_1.ModuleMenuEntity, (module_menus) => module_menus.menu),
|
91
96
|
__metadata("design:type", Array)
|
92
97
|
], MenuEntity.prototype, "module_menus", void 0);
|
98
|
+
__decorate([
|
99
|
+
(0, typeorm_1.ManyToOne)(() => lookup_value_entity_1.LookupValueEntity),
|
100
|
+
(0, typeorm_1.JoinColumn)({ name: 'application_id' }),
|
101
|
+
__metadata("design:type", lookup_value_entity_1.LookupValueEntity)
|
102
|
+
], MenuEntity.prototype, "application", void 0);
|
93
103
|
MenuEntity = __decorate([
|
94
104
|
(0, typeorm_1.Entity)('sys_menu_details')
|
95
105
|
], MenuEntity);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../../src/system/entities/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAA6C;AAC7C,qCAA2E;AAC3E,wEAAoE;AAEpE,yDAAoD;AACpD,6DAAwD;AACxD,qEAAgE;AAChE,6DAAwD;AAUxD,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,4BAAY;
|
1
|
+
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../../src/system/entities/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAA6C;AAC7C,qCAA2E;AAC3E,wEAAoE;AAEpE,+DAA0D;AAC1D,yDAAoD;AACpD,6DAAwD;AACxD,qEAAgE;AAChE,6DAAwD;AAUxD,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,4BAAY;CA6C3C,CAAA;AA5C0C;IAAtC,IAAA,4BAAU,GAAE;IAAE,IAAA,qBAA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