sml-baseline 1.1.1 → 1.3.0
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/factoryViewModules/smlsupersetview.module.d.ts +1 -0
- package/dist/factoryViewModules/smlsupersetview.module.js +84 -0
- package/dist/factoryViewModules/smlsupersetview.module.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/smlmassiveform/dto/create-smlmassiveform.dto.d.ts +11 -0
- package/dist/smlmassiveform/dto/create-smlmassiveform.dto.js +82 -0
- package/dist/smlmassiveform/dto/create-smlmassiveform.dto.js.map +1 -0
- package/dist/smlmassiveform/dto/get-smlmassiveform.dto.d.ts +12 -0
- package/dist/smlmassiveform/dto/get-smlmassiveform.dto.js +68 -0
- package/dist/smlmassiveform/dto/get-smlmassiveform.dto.js.map +1 -0
- package/dist/smlmassiveform/dto/update-smlmassiveform.dto.d.ts +5 -0
- package/dist/smlmassiveform/dto/update-smlmassiveform.dto.js +9 -0
- package/dist/smlmassiveform/dto/update-smlmassiveform.dto.js.map +1 -0
- package/dist/smlmassiveform/entities/smlmassiveform.entity.d.ts +23 -0
- package/dist/smlmassiveform/entities/smlmassiveform.entity.js +73 -0
- package/dist/smlmassiveform/entities/smlmassiveform.entity.js.map +1 -0
- package/dist/smlmassiveform/smlmassiveform.controller.d.ts +12 -0
- package/dist/smlmassiveform/smlmassiveform.controller.js +133 -0
- package/dist/smlmassiveform/smlmassiveform.controller.js.map +1 -0
- package/dist/smlmassiveform/smlmassiveform.module.d.ts +2 -0
- package/dist/smlmassiveform/smlmassiveform.module.js +27 -0
- package/dist/smlmassiveform/smlmassiveform.module.js.map +1 -0
- package/dist/smlmassiveform/smlmassiveform.service.d.ts +13 -0
- package/dist/smlmassiveform/smlmassiveform.service.js +109 -0
- package/dist/smlmassiveform/smlmassiveform.service.js.map +1 -0
- package/dist/smlview/smlview.module.js +2 -0
- package/dist/smlview/smlview.module.js.map +1 -1
- package/dist/smlview/smlview.service.d.ts +3 -1
- package/dist/smlview/smlview.service.js +13 -2
- package/dist/smlview/smlview.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SmlmassiveformController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const smlmassiveform_service_1 = require("./smlmassiveform.service");
|
|
19
|
+
const create_smlmassiveform_dto_1 = require("./dto/create-smlmassiveform.dto");
|
|
20
|
+
const update_smlmassiveform_dto_1 = require("./dto/update-smlmassiveform.dto");
|
|
21
|
+
const get_smlmassiveform_dto_1 = require("./dto/get-smlmassiveform.dto");
|
|
22
|
+
const authorization_guard_guard_1 = require("../authentication/guards/authorization-guard.guard");
|
|
23
|
+
const role_guard_guard_1 = require("../authentication/guards/role-guard.guard");
|
|
24
|
+
const has_role_decorator_decorator_1 = require("../authentication/decorators/has-role-decorator.decorator");
|
|
25
|
+
const user_role_enum_1 = require("../authentication/enum/user-role.enum");
|
|
26
|
+
let SmlmassiveformController = class SmlmassiveformController {
|
|
27
|
+
constructor(smlmassiveformService) {
|
|
28
|
+
this.smlmassiveformService = smlmassiveformService;
|
|
29
|
+
}
|
|
30
|
+
async createV1(createSmlmassiveformDto) {
|
|
31
|
+
const createdRecord = await this.smlmassiveformService.create(createSmlmassiveformDto);
|
|
32
|
+
return JSON.stringify(createdRecord);
|
|
33
|
+
}
|
|
34
|
+
async findAllV1(filters, limit = 10, offset = 0) {
|
|
35
|
+
let parsedFilters = {};
|
|
36
|
+
if (filters) {
|
|
37
|
+
try {
|
|
38
|
+
parsedFilters = JSON.parse(filters);
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
throw new Error('Invalid JSON format for filters');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const data = await this.smlmassiveformService.findAll(parsedFilters, limit, offset);
|
|
45
|
+
return JSON.stringify(data, null, 2);
|
|
46
|
+
}
|
|
47
|
+
async findOneV1(id) {
|
|
48
|
+
const record = await this.smlmassiveformService.findOne(id);
|
|
49
|
+
return JSON.stringify(record);
|
|
50
|
+
}
|
|
51
|
+
async updateV1(id, updateSmlmassiveformDto) {
|
|
52
|
+
const record = await this.smlmassiveformService.update(id, updateSmlmassiveformDto);
|
|
53
|
+
return JSON.stringify(record);
|
|
54
|
+
}
|
|
55
|
+
async removeV1(id) {
|
|
56
|
+
await this.smlmassiveformService.remove(id);
|
|
57
|
+
return JSON.stringify({ success: true });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.SmlmassiveformController = SmlmassiveformController;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, common_1.Post)(),
|
|
63
|
+
(0, common_1.Version)('1'),
|
|
64
|
+
(0, swagger_1.ApiOperation)({ summary: 'Create a new sml massive form view' }),
|
|
65
|
+
(0, swagger_1.ApiResponse)({ status: 201, description: 'The sml massive form view was created successfully.', type: get_smlmassiveform_dto_1.GetSmlmassiveformDto }),
|
|
66
|
+
(0, swagger_1.ApiResponse)({ status: 500, description: 'Internal Server Error.' }),
|
|
67
|
+
__param(0, (0, common_1.Body)()),
|
|
68
|
+
__metadata("design:type", Function),
|
|
69
|
+
__metadata("design:paramtypes", [create_smlmassiveform_dto_1.CreateSmlmassiveformDto]),
|
|
70
|
+
__metadata("design:returntype", Promise)
|
|
71
|
+
], SmlmassiveformController.prototype, "createV1", null);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, common_1.Get)(),
|
|
74
|
+
(0, common_1.Version)('1'),
|
|
75
|
+
(0, swagger_1.ApiOperation)({
|
|
76
|
+
summary: 'Fetches a list of sml massive form views',
|
|
77
|
+
description: 'Returns a list of sml massive form views with optional filters, limit, and offset for pagination.',
|
|
78
|
+
}),
|
|
79
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, description: 'Filters in JSON format', type: String }),
|
|
80
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number, default: 10 }),
|
|
81
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number, default: 0 }),
|
|
82
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'List of sml massive form views fetched successfully.', type: [get_smlmassiveform_dto_1.GetSmlmassiveformDto] }),
|
|
83
|
+
(0, swagger_1.ApiResponse)({ status: 500, description: 'Internal Server Error.' }),
|
|
84
|
+
__param(0, (0, common_1.Query)('filters')),
|
|
85
|
+
__param(1, (0, common_1.Query)('limit')),
|
|
86
|
+
__param(2, (0, common_1.Query)('offset')),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [String, Number, Number]),
|
|
89
|
+
__metadata("design:returntype", Promise)
|
|
90
|
+
], SmlmassiveformController.prototype, "findAllV1", null);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, common_1.Get)(':id'),
|
|
93
|
+
(0, common_1.Version)('1'),
|
|
94
|
+
(0, swagger_1.ApiOperation)({ summary: 'Fetch a single sml massive form view by ID' }),
|
|
95
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml massive form view was fetched successfully.', type: get_smlmassiveform_dto_1.GetSmlmassiveformDto }),
|
|
96
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml massive form view was not found for the provided ID.' }),
|
|
97
|
+
__param(0, (0, common_1.Param)('id')),
|
|
98
|
+
__metadata("design:type", Function),
|
|
99
|
+
__metadata("design:paramtypes", [String]),
|
|
100
|
+
__metadata("design:returntype", Promise)
|
|
101
|
+
], SmlmassiveformController.prototype, "findOneV1", null);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, common_1.Put)(':id'),
|
|
104
|
+
(0, common_1.Version)('1'),
|
|
105
|
+
(0, swagger_1.ApiOperation)({ summary: 'Update a sml massive form view by ID' }),
|
|
106
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml massive form view was updated successfully.', type: get_smlmassiveform_dto_1.GetSmlmassiveformDto }),
|
|
107
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml massive form view was not found for the provided ID.' }),
|
|
108
|
+
__param(0, (0, common_1.Param)('id')),
|
|
109
|
+
__param(1, (0, common_1.Body)()),
|
|
110
|
+
__metadata("design:type", Function),
|
|
111
|
+
__metadata("design:paramtypes", [String, update_smlmassiveform_dto_1.UpdateSmlmassiveformDto]),
|
|
112
|
+
__metadata("design:returntype", Promise)
|
|
113
|
+
], SmlmassiveformController.prototype, "updateV1", null);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, common_1.Delete)(':id'),
|
|
116
|
+
(0, common_1.Version)('1'),
|
|
117
|
+
(0, swagger_1.ApiOperation)({ summary: 'Remove a sml massive form view by ID' }),
|
|
118
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml massive form view was removed successfully.' }),
|
|
119
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml massive form view was not found for the provided ID.' }),
|
|
120
|
+
__param(0, (0, common_1.Param)('id')),
|
|
121
|
+
__metadata("design:type", Function),
|
|
122
|
+
__metadata("design:paramtypes", [String]),
|
|
123
|
+
__metadata("design:returntype", Promise)
|
|
124
|
+
], SmlmassiveformController.prototype, "removeV1", null);
|
|
125
|
+
exports.SmlmassiveformController = SmlmassiveformController = __decorate([
|
|
126
|
+
(0, common_1.Controller)('smlmassiveform'),
|
|
127
|
+
(0, swagger_1.ApiTags)('Sml Massive Form'),
|
|
128
|
+
(0, common_1.UseGuards)(authorization_guard_guard_1.AuthorizationGuard, role_guard_guard_1.RoleGuard),
|
|
129
|
+
(0, swagger_1.ApiBearerAuth)('access-token'),
|
|
130
|
+
(0, has_role_decorator_decorator_1.HasRoles)(user_role_enum_1.Role.SML_O_ADMIN),
|
|
131
|
+
__metadata("design:paramtypes", [smlmassiveform_service_1.SmlmassiveformService])
|
|
132
|
+
], SmlmassiveformController);
|
|
133
|
+
//# sourceMappingURL=smlmassiveform.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smlmassiveform.controller.js","sourceRoot":"","sources":["../../src/smlmassiveform/smlmassiveform.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,6CAA8F;AAC9F,qEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,yEAAoE;AACpE,kGAAwF;AACxF,gFAAsE;AACtE,4GAAqF;AACrF,0EAA6D;AAOtD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAOvE,AAAN,KAAK,CAAC,QAAQ,CAAS,uBAAgD;QACrE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;QACvF,OAAO,IAAI,CAAC,S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MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,8DAA8D,EAAE,CAAC;IAC1F,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;wDAG1B;mCArEU,wBAAwB;IALpC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;IAC5B,IAAA,iBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,kBAAS,EAAC,8CAAkB,EAAE,4BAAS,CAAC;IACxC,IAAA,uBAAa,EAAC,cAAc,CAAC;IAC7B,IAAA,uCAAQ,EAAC,qBAAI,CAAC,WAAW,CAAC;qCAE2B,8CAAqB;GAD9D,wBAAwB,CAsEpC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SmlmassiveformModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const smlmassiveform_service_1 = require("./smlmassiveform.service");
|
|
13
|
+
const smlmassiveform_controller_1 = require("./smlmassiveform.controller");
|
|
14
|
+
const smlmassiveform_entity_1 = require("./entities/smlmassiveform.entity");
|
|
15
|
+
let SmlmassiveformModule = class SmlmassiveformModule {
|
|
16
|
+
};
|
|
17
|
+
exports.SmlmassiveformModule = SmlmassiveformModule;
|
|
18
|
+
exports.SmlmassiveformModule = SmlmassiveformModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
controllers: [smlmassiveform_controller_1.SmlmassiveformController],
|
|
21
|
+
providers: [smlmassiveform_service_1.SmlmassiveformService],
|
|
22
|
+
imports: [
|
|
23
|
+
mongoose_1.MongooseModule.forFeature([{ name: smlmassiveform_entity_1.Smlmassiveform.name, schema: smlmassiveform_entity_1.SmlmassiveformSchema }]),
|
|
24
|
+
],
|
|
25
|
+
})
|
|
26
|
+
], SmlmassiveformModule);
|
|
27
|
+
//# sourceMappingURL=smlmassiveform.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smlmassiveform.module.js","sourceRoot":"","sources":["../../src/smlmassiveform/smlmassiveform.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,qEAAiE;AACjE,2EAAuE;AACvE,4EAAwF;AASjF,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oDAAoB;+BAApB,oBAAoB;IAPhC,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,oDAAwB,CAAC;QACvC,SAAS,EAAE,CAAC,8CAAqB,CAAC;QAClC,OAAO,EAAE;YACP,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,sCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,4CAAoB,EAAE,CAAC,CAAC;SACzF;KACF,CAAC;GACW,oBAAoB,CAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Smlmassiveform } from './entities/smlmassiveform.entity';
|
|
3
|
+
import { CreateSmlmassiveformDto } from './dto/create-smlmassiveform.dto';
|
|
4
|
+
import { UpdateSmlmassiveformDto } from './dto/update-smlmassiveform.dto';
|
|
5
|
+
export declare class SmlmassiveformService {
|
|
6
|
+
private smlmassiveformModel;
|
|
7
|
+
constructor(smlmassiveformModel: Model<Smlmassiveform>);
|
|
8
|
+
create(createSmlmassiveformDto: CreateSmlmassiveformDto): Promise<Smlmassiveform>;
|
|
9
|
+
findAll(filters: any, limit: number, offset: number): Promise<Smlmassiveform[]>;
|
|
10
|
+
findOne(id: string): Promise<Smlmassiveform>;
|
|
11
|
+
update(id: string, updateSmlmassiveformDto: UpdateSmlmassiveformDto): Promise<Smlmassiveform>;
|
|
12
|
+
remove(id: string): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SmlmassiveformService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
18
|
+
const mongoose_2 = require("mongoose");
|
|
19
|
+
const smlmassiveform_entity_1 = require("./entities/smlmassiveform.entity");
|
|
20
|
+
let SmlmassiveformService = class SmlmassiveformService {
|
|
21
|
+
constructor(smlmassiveformModel) {
|
|
22
|
+
this.smlmassiveformModel = smlmassiveformModel;
|
|
23
|
+
}
|
|
24
|
+
async create(createSmlmassiveformDto) {
|
|
25
|
+
try {
|
|
26
|
+
const createdRecord = new this.smlmassiveformModel(createSmlmassiveformDto);
|
|
27
|
+
return await createdRecord.save();
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
throw new common_1.InternalServerErrorException({
|
|
31
|
+
description: `Error saving new entity. ${e.message}`,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async findAll(filters, limit, offset) {
|
|
36
|
+
try {
|
|
37
|
+
const query = {};
|
|
38
|
+
if (filters) {
|
|
39
|
+
for (const key in filters) {
|
|
40
|
+
if (filters[key]) {
|
|
41
|
+
query[key] = filters[key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return await this.smlmassiveformModel.find(query).skip(offset).limit(limit);
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
throw new common_1.InternalServerErrorException({
|
|
49
|
+
description: `Error retrieving entities. ${e.message}`,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async findOne(id) {
|
|
54
|
+
try {
|
|
55
|
+
const record = await this.smlmassiveformModel.findById(id).exec();
|
|
56
|
+
if (!record) {
|
|
57
|
+
throw new common_1.NotFoundException(`Smlmassiveform with id ${id} not found`);
|
|
58
|
+
}
|
|
59
|
+
return record;
|
|
60
|
+
}
|
|
61
|
+
catch (e) {
|
|
62
|
+
if (e instanceof common_1.NotFoundException) {
|
|
63
|
+
throw e;
|
|
64
|
+
}
|
|
65
|
+
throw new common_1.InternalServerErrorException({
|
|
66
|
+
description: `Error retrieving the entity with id ${id}. ${e.message}`,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async update(id, updateSmlmassiveformDto) {
|
|
71
|
+
try {
|
|
72
|
+
const updated = await this.smlmassiveformModel
|
|
73
|
+
.findByIdAndUpdate(id, updateSmlmassiveformDto, { new: true })
|
|
74
|
+
.exec();
|
|
75
|
+
if (!updated) {
|
|
76
|
+
throw new common_1.NotFoundException(`Smlmassiveform with id ${id} not found`);
|
|
77
|
+
}
|
|
78
|
+
return updated;
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
if (e instanceof common_1.NotFoundException) {
|
|
82
|
+
throw e;
|
|
83
|
+
}
|
|
84
|
+
throw new common_1.InternalServerErrorException({
|
|
85
|
+
description: `Error updating the entity with id ${id}. ${e.message}`,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async remove(id) {
|
|
90
|
+
try {
|
|
91
|
+
const deleted = await this.smlmassiveformModel.findByIdAndDelete(id).exec();
|
|
92
|
+
if (!deleted) {
|
|
93
|
+
throw new common_1.NotFoundException(`Smlmassiveform with id ${id} not found`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
catch (e) {
|
|
97
|
+
throw new common_1.InternalServerErrorException({
|
|
98
|
+
description: `Error removing the entity with id ${id}. ${e.message}`,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
exports.SmlmassiveformService = SmlmassiveformService;
|
|
104
|
+
exports.SmlmassiveformService = SmlmassiveformService = __decorate([
|
|
105
|
+
(0, common_1.Injectable)(),
|
|
106
|
+
__param(0, (0, mongoose_1.InjectModel)(smlmassiveform_entity_1.Smlmassiveform.name)),
|
|
107
|
+
__metadata("design:paramtypes", [mongoose_2.Model])
|
|
108
|
+
], SmlmassiveformService);
|
|
109
|
+
//# sourceMappingURL=smlmassiveform.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smlmassiveform.service.js","sourceRoot":"","sources":["../../src/smlmassiveform/smlmassiveform.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA6F;AAC7F,+CAA+C;AAC/C,uCAAiC;AACjC,4EA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OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,0BAAiB,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,IAAI,qCAA4B,CAAC;gBACrC,WAAW,EAAE,qCAAqC,EAAE,KAAK,CAAC,CAAC,OAAO,EAAE;aACrE,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAA;AAlFY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,sBAAW,EAAC,sCAAc,CAAC,IAAI,CAAC,CAAA;qCAA8B,gBAAK;GAF3D,qBAAqB,CAkFjC"}
|
|
@@ -22,6 +22,7 @@ const navigation_panel_entity_1 = require("../navigation-panels/entities/navigat
|
|
|
22
22
|
const flow_panel_entity_1 = require("../flow-panels/entities/flow-panel.entity");
|
|
23
23
|
const smldashboardview_entity_1 = require("../smldashboardview/entities/smldashboardview.entity");
|
|
24
24
|
const smliframeview_entity_1 = require("../smliframeview/entities/smliframeview.entity");
|
|
25
|
+
const smlmassiveform_entity_1 = require("../smlmassiveform/entities/smlmassiveform.entity");
|
|
25
26
|
let SmlviewModule = class SmlviewModule {
|
|
26
27
|
};
|
|
27
28
|
exports.SmlviewModule = SmlviewModule;
|
|
@@ -42,6 +43,7 @@ exports.SmlviewModule = SmlviewModule = __decorate([
|
|
|
42
43
|
{ name: sml_proxy_query_entity_1.SmlProxyQuery.name, schema: sml_proxy_query_entity_1.SmlProxyQuerySchema },
|
|
43
44
|
{ name: smldashboardview_entity_1.Smldashboardview.name, schema: smldashboardview_entity_1.SmldashboardviewSchema },
|
|
44
45
|
{ name: smliframeview_entity_1.Smliframeview.name, schema: smliframeview_entity_1.SmliframeviewSchema },
|
|
46
|
+
{ name: smlmassiveform_entity_1.Smlmassiveform.name, schema: smlmassiveform_entity_1.SmlmassiveformSchema },
|
|
45
47
|
]),
|
|
46
48
|
],
|
|
47
49
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smlview.module.js","sourceRoot":"","sources":["../../src/smlview/smlview.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,6DAAyD;AACzD,+CAAkD;AAClD,uEAA4E;AAC5E,uEAA4E;AAC5E,+FAA4G;AAC5G,0EAAgF;AAChF,gFAAwF;AACxF,0EAAgF;AAChF,+FAAwG;AACxG,mGAA+G;AAC/G,iFAAuF;AACvF,kGAAgH;AAChH,yFAAoG;
|
|
1
|
+
{"version":3,"file":"smlview.module.js","sourceRoot":"","sources":["../../src/smlview/smlview.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,6DAAyD;AACzD,+CAAkD;AAClD,uEAA4E;AAC5E,uEAA4E;AAC5E,+FAA4G;AAC5G,0EAAgF;AAChF,gFAAwF;AACxF,0EAAgF;AAChF,+FAAwG;AACxG,mGAA+G;AAC/G,iFAAuF;AACvF,kGAAgH;AAChH,yFAAoG;AACpG,4FAAwG;AAqBjG,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IApBzB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,OAAO,EAAE;YACP,yBAAc,CAAC,UAAU,CAAC;gBACxB,EAAE,IAAI,EAAE,yCAAe,CAAC,IAAI,EAAE,MAAM,EAAE,+CAAqB,EAAE;gBAC7D,EAAE,IAAI,EAAE,6BAAS,CAAC,IAAI,EAAE,MAAM,EAAE,mCAAe,EAAE;gBACjD,EAAE,IAAI,EAAE,wBAAO,CAAC,IAAI,EAAE,MAAM,EAAE,8BAAa,EAAE;gBAC7C,EAAE,IAAI,EAAE,wBAAO,CAAC,IAAI,EAAE,MAAM,EAAE,8BAAa,EAAE;gBAC7C,EAAE,IAAI,EAAE,wCAAe,CAAC,IAAI,EAAE,MAAM,EAAE,8CAAqB,EAAE;gBAC7D,EAAE,IAAI,EAAE,0BAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,gCAAc,EAAE;gBAC/C,EAAE,IAAI,EAAE,8BAAU,CAAC,IAAI,EAAE,MAAM,EAAE,oCAAgB,EAAE;gBACnD,EAAE,IAAI,EAAE,0BAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,gCAAc,EAAE;gBAC/C,EAAE,IAAI,EAAE,sCAAa,CAAC,IAAI,EAAE,MAAM,EAAE,4CAAmB,EAAE;gBACzD,EAAE,IAAI,EAAE,0CAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,gDAAsB,EAAE;gBAC/D,EAAE,IAAI,EAAE,oCAAa,CAAC,IAAI,EAAE,MAAM,EAAE,0CAAmB,EAAE;gBACzD,EAAE,IAAI,EAAE,sCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,4CAAoB,EAAE;aAC5D,CAAC;SACH;KACF,CAAC;GACW,aAAa,CAAG"}
|
|
@@ -9,6 +9,7 @@ import { NavigationPanel } from '../navigation-panels/entities/navigation-panel.
|
|
|
9
9
|
import { FlowPanel } from '../flow-panels/entities/flow-panel.entity';
|
|
10
10
|
import { Smldashboardview } from '../smldashboardview/entities/smldashboardview.entity';
|
|
11
11
|
import { Smliframeview } from '../smliframeview/entities/smliframeview.entity';
|
|
12
|
+
import { Smlmassiveform } from '../smlmassiveform/entities/smlmassiveform.entity';
|
|
12
13
|
export declare class SmlviewService {
|
|
13
14
|
private connection;
|
|
14
15
|
private navigationPanelModel;
|
|
@@ -22,7 +23,8 @@ export declare class SmlviewService {
|
|
|
22
23
|
private smlProxyQuery;
|
|
23
24
|
private smldashboardviewModel;
|
|
24
25
|
private smliframeviewModel;
|
|
25
|
-
|
|
26
|
+
private smlmassiveformModel;
|
|
27
|
+
constructor(connection: Connection, navigationPanelModel: Model<NavigationPanel>, flowPanelModel: Model<FlowPanel>, smlgridModel: Model<Smlgrid>, smlformModel: Model<Smlform>, smlcomposedviewModel: Model<Smlcomposedview>, smlchartModel: Model<Smlchart>, smlappMenuModel: Model<Smlchart>, smlQueryModel: Model<Smlquery>, smlProxyQuery: Model<SmlProxyQuery>, smldashboardviewModel: Model<Smldashboardview>, smliframeviewModel: Model<Smliframeview>, smlmassiveformModel: Model<Smlmassiveform>);
|
|
26
28
|
findViewByCode(viewCode: string): Promise<any>;
|
|
27
29
|
findUserApplicationMenu(roles: string[]): Promise<any>;
|
|
28
30
|
getViewsSummaryList(): Promise<any>;
|
|
@@ -28,9 +28,10 @@ const navigation_panel_entity_1 = require("../navigation-panels/entities/navigat
|
|
|
28
28
|
const flow_panel_entity_1 = require("../flow-panels/entities/flow-panel.entity");
|
|
29
29
|
const smldashboardview_entity_1 = require("../smldashboardview/entities/smldashboardview.entity");
|
|
30
30
|
const smliframeview_entity_1 = require("../smliframeview/entities/smliframeview.entity");
|
|
31
|
+
const smlmassiveform_entity_1 = require("../smlmassiveform/entities/smlmassiveform.entity");
|
|
31
32
|
const ViewRegistry_1 = require("../common/core/ViewRegistry");
|
|
32
33
|
let SmlviewService = class SmlviewService {
|
|
33
|
-
constructor(connection, navigationPanelModel, flowPanelModel, smlgridModel, smlformModel, smlcomposedviewModel, smlchartModel, smlappMenuModel, smlQueryModel, smlProxyQuery, smldashboardviewModel, smliframeviewModel) {
|
|
34
|
+
constructor(connection, navigationPanelModel, flowPanelModel, smlgridModel, smlformModel, smlcomposedviewModel, smlchartModel, smlappMenuModel, smlQueryModel, smlProxyQuery, smldashboardviewModel, smliframeviewModel, smlmassiveformModel) {
|
|
34
35
|
this.connection = connection;
|
|
35
36
|
this.navigationPanelModel = navigationPanelModel;
|
|
36
37
|
this.flowPanelModel = flowPanelModel;
|
|
@@ -43,6 +44,7 @@ let SmlviewService = class SmlviewService {
|
|
|
43
44
|
this.smlProxyQuery = smlProxyQuery;
|
|
44
45
|
this.smldashboardviewModel = smldashboardviewModel;
|
|
45
46
|
this.smliframeviewModel = smliframeviewModel;
|
|
47
|
+
this.smlmassiveformModel = smlmassiveformModel;
|
|
46
48
|
}
|
|
47
49
|
async findViewByCode(viewCode) {
|
|
48
50
|
console.log('viewCode', viewCode);
|
|
@@ -104,6 +106,11 @@ let SmlviewService = class SmlviewService {
|
|
|
104
106
|
.findOne({ viewId: viewCode })
|
|
105
107
|
.exec();
|
|
106
108
|
}
|
|
109
|
+
else if (viewCode.startsWith('smlmassiveform-')) {
|
|
110
|
+
viewRecord = await this.smlmassiveformModel
|
|
111
|
+
.findOne({ viewId: viewCode })
|
|
112
|
+
.exec();
|
|
113
|
+
}
|
|
107
114
|
if (!viewRecord) {
|
|
108
115
|
throw new common_1.NotFoundException(`View with code ${viewCode} not found`);
|
|
109
116
|
}
|
|
@@ -117,7 +124,7 @@ let SmlviewService = class SmlviewService {
|
|
|
117
124
|
.exec();
|
|
118
125
|
}
|
|
119
126
|
async getViewsSummaryList() {
|
|
120
|
-
const [grids, forms, charts, composed, appMenu, query, proxyQuery, navigationPanels, flowPanels, dashboardViews, iframeViews,] = await Promise.all([
|
|
127
|
+
const [grids, forms, charts, composed, appMenu, query, proxyQuery, navigationPanels, flowPanels, dashboardViews, iframeViews, massiveForms,] = await Promise.all([
|
|
121
128
|
this.smlgridModel.find().select('viewId viewType title').exec(),
|
|
122
129
|
this.smlformModel.find().select('viewId viewType title').exec(),
|
|
123
130
|
this.smlchartModel.find().select('viewId viewType title').exec(),
|
|
@@ -129,6 +136,7 @@ let SmlviewService = class SmlviewService {
|
|
|
129
136
|
this.flowPanelModel.find().exec(),
|
|
130
137
|
this.smldashboardviewModel.find().select('viewId viewType title friendlyName').exec(),
|
|
131
138
|
this.smliframeviewModel.find().select('viewId viewType title friendlyName').exec(),
|
|
139
|
+
this.smlmassiveformModel.find().select('viewId viewType title friendlyName').exec(),
|
|
132
140
|
]);
|
|
133
141
|
const registryEntries = ViewRegistry_1.ViewRegistry.getAll();
|
|
134
142
|
const registryResults = await Promise.all(registryEntries.map(async (entry) => {
|
|
@@ -146,6 +154,7 @@ let SmlviewService = class SmlviewService {
|
|
|
146
154
|
...appMenu,
|
|
147
155
|
...dashboardViews,
|
|
148
156
|
...iframeViews,
|
|
157
|
+
...massiveForms,
|
|
149
158
|
...registryViews,
|
|
150
159
|
...query.map((item) => ({
|
|
151
160
|
title: item.description,
|
|
@@ -187,6 +196,7 @@ exports.SmlviewService = SmlviewService = __decorate([
|
|
|
187
196
|
__param(9, (0, mongoose_1.InjectModel)(sml_proxy_query_entity_1.SmlProxyQuery.name)),
|
|
188
197
|
__param(10, (0, mongoose_1.InjectModel)(smldashboardview_entity_1.Smldashboardview.name)),
|
|
189
198
|
__param(11, (0, mongoose_1.InjectModel)(smliframeview_entity_1.Smliframeview.name)),
|
|
199
|
+
__param(12, (0, mongoose_1.InjectModel)(smlmassiveform_entity_1.Smlmassiveform.name)),
|
|
190
200
|
__metadata("design:paramtypes", [mongoose_3.Connection,
|
|
191
201
|
mongoose_3.Model,
|
|
192
202
|
mongoose_3.Model,
|
|
@@ -198,6 +208,7 @@ exports.SmlviewService = SmlviewService = __decorate([
|
|
|
198
208
|
mongoose_3.Model,
|
|
199
209
|
mongoose_3.Model,
|
|
200
210
|
mongoose_3.Model,
|
|
211
|
+
mongoose_3.Model,
|
|
201
212
|
mongoose_3.Model])
|
|
202
213
|
], SmlviewService);
|
|
203
214
|
//# sourceMappingURL=smlview.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smlview.service.js","sourceRoot":"","sources":["../../src/smlview/smlview.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,+CAA+C;AAC/C,+CAAoD;AACpD,uCAA6C;AAC7C,0EAAgE;AAChE,+FAAqF;AACrF,uEAA6D;AAC7D,uEAA6D;AAC7D,gFAAsE;AACtE,0EAAgE;AAChE,+FAAmF;AACnF,mGAAwF;AACxF,iFAAsE;AACtE,kGAAwF;AACxF,yFAA+E;AAC/E,8DAA2D;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