sml-baseline 1.0.27 → 1.1.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/README.md +24 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/smliframeview/dto/create-smliframeview.dto.d.ts +9 -0
- package/dist/smliframeview/dto/create-smliframeview.dto.js +68 -0
- package/dist/smliframeview/dto/create-smliframeview.dto.js.map +1 -0
- package/dist/smliframeview/dto/get-smliframeview.dto.d.ts +10 -0
- package/dist/smliframeview/dto/get-smliframeview.dto.js +58 -0
- package/dist/smliframeview/dto/get-smliframeview.dto.js.map +1 -0
- package/dist/smliframeview/dto/update-smliframeview.dto.d.ts +5 -0
- package/dist/smliframeview/dto/update-smliframeview.dto.js +9 -0
- package/dist/smliframeview/dto/update-smliframeview.dto.js.map +1 -0
- package/dist/smliframeview/entities/smliframeview.entity.d.ts +21 -0
- package/dist/smliframeview/entities/smliframeview.entity.js +65 -0
- package/dist/smliframeview/entities/smliframeview.entity.js.map +1 -0
- package/dist/smliframeview/smliframeview.controller.d.ts +12 -0
- package/dist/smliframeview/smliframeview.controller.js +131 -0
- package/dist/smliframeview/smliframeview.controller.js.map +1 -0
- package/dist/smliframeview/smliframeview.module.d.ts +2 -0
- package/dist/smliframeview/smliframeview.module.js +27 -0
- package/dist/smliframeview/smliframeview.module.js.map +1 -0
- package/dist/smliframeview/smliframeview.service.d.ts +13 -0
- package/dist/smliframeview/smliframeview.service.js +109 -0
- package/dist/smliframeview/smliframeview.service.js.map +1 -0
- package/dist/smlquery/smlquery.controller.d.ts +1 -0
- package/dist/smlquery/smlquery.controller.js +7 -1
- package/dist/smlquery/smlquery.controller.js.map +1 -1
- package/dist/smlquery/smlquery.service.d.ts +3 -0
- package/dist/smlquery/smlquery.service.js +144 -0
- package/dist/smlquery/smlquery.service.js.map +1 -1
- 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
package/README.md
CHANGED
|
@@ -27,3 +27,27 @@ La struttura del repository può essere vista come una serie di moduli Nest affi
|
|
|
27
27
|
- Ogni modulo espone test (`*.controller.spec.ts`, `*.service.spec.ts`) pronti per essere riutilizzati in una pipeline CI/CD, e può essere registrato nel modulo principale dell’app Nest (es. `AppModule`) tramite importazione diretta.
|
|
28
28
|
|
|
29
29
|
Con questa base, il package npm deve fornire un entrypoint documentato che spiega come installare (`npm install sml-baseline`), configurare (es. `@nestjs/config` + file JSON), e importare i moduli più usati per comporre un’applicazione SML completa su Nest.
|
|
30
|
+
|
|
31
|
+
## smlquery — Wildcard search
|
|
32
|
+
|
|
33
|
+
L’endpoint `GET /smlquery/run-query/:code` supporta la ricerca con wildcard tramite il carattere `*` nei valori dei filtri.
|
|
34
|
+
|
|
35
|
+
Il carattere `*` può essere usato in qualsiasi posizione della stringa e in qualsiasi numero:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
GET /smlquery/run-query/MY_QUERY?filters={"nome":"Mario*"}
|
|
39
|
+
GET /smlquery/run-query/MY_QUERY?filters={"nome":"*rossi*"}
|
|
40
|
+
GET /smlquery/run-query/MY_QUERY?filters={"nome":"Ma*rio*"}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
I valori con `*` vengono convertiti automaticamente in espressioni regolari case-insensitive prima dell’esecuzione della query MongoDB. La funzionalità è attiva sia su query `find` che su aggregation pipeline (stage `$match`).
|
|
44
|
+
|
|
45
|
+
### Selezione della versione del motore di query
|
|
46
|
+
|
|
47
|
+
Il comportamento wildcard è implementato nella **V6** del motore di query ed è attivo per default. Per tornare alla **V5** (senza wildcard), impostare la variabile d’ambiente nel BE:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
SML_QUERY_ENGINE=5
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Se la variabile non è impostata o ha un valore diverso da `5`, viene usata la V6.
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export { SmlrecordlockModule } from './smlrecordlock/smlrecordlock.module';
|
|
|
34
34
|
export { SmlviewModule } from './smlview/smlview.module';
|
|
35
35
|
export { SmlSystemNotificationModule } from './sml-system-notification/sml-system-notification.module';
|
|
36
36
|
export { MdSystemCodesModule } from './md-system-codes/md-system-codes.module';
|
|
37
|
+
export { SmliframeviewModule } from './smliframeview/smliframeview.module';
|
|
37
38
|
export * from './smlentity-definition/schemas/smlentity-definition.schema';
|
|
38
39
|
export * from './smlentity/entities/smlentity.entity';
|
|
39
40
|
export * from './smlgrid/entities/smlgrid.entity';
|
|
@@ -54,6 +55,7 @@ export * from './navigation-panels/entities/navigation-panel.entity';
|
|
|
54
55
|
export * from './sml-proxy-query/entities/sml-proxy-query.entity';
|
|
55
56
|
export * from './sml-system-notification/entities/sml-system-notification.entity';
|
|
56
57
|
export * from './md-system-codes/entities/md-system-code.entity';
|
|
58
|
+
export * from './smliframeview/entities/smliframeview.entity';
|
|
57
59
|
export * from './smlentity/dto/create-smlentity.dto';
|
|
58
60
|
export * from './smlentity/dto/update-smlentity.dto';
|
|
59
61
|
export * from './smlentity/dto/get-smlentity.dto';
|
|
@@ -130,6 +132,9 @@ export * from './sml-system-notification/dto/create-sml-system-notification.dto'
|
|
|
130
132
|
export * from './sml-system-notification/dto/update-sml-system-notification.dto';
|
|
131
133
|
export * from './md-system-codes/dto/create-md-system-code.dto';
|
|
132
134
|
export * from './md-system-codes/dto/update-md-system-code.dto';
|
|
135
|
+
export * from './smliframeview/dto/create-smliframeview.dto';
|
|
136
|
+
export * from './smliframeview/dto/update-smliframeview.dto';
|
|
137
|
+
export * from './smliframeview/dto/get-smliframeview.dto';
|
|
133
138
|
export { SmlentityService } from './smlentity/smlentity.service';
|
|
134
139
|
export { SmlgridService } from './smlgrid/smlgrid.service';
|
|
135
140
|
export { SmlformService } from './smlform/smlform.service';
|
|
@@ -152,3 +157,4 @@ export { SmlrecordlockService } from './smlrecordlock/smlrecordlock.service';
|
|
|
152
157
|
export { SmlviewService } from './smlview/smlview.service';
|
|
153
158
|
export { SmlSystemNotificationService } from './sml-system-notification/sml-system-notification.service';
|
|
154
159
|
export { MdSystemCodesService } from './md-system-codes/md-system-codes.service';
|
|
160
|
+
export { SmliframeviewService } from './smliframeview/smliframeview.service';
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.MdSystemCodesService = exports.SmlSystemNotificationService = exports.SmlviewService = exports.SmlrecordlockService = exports.SmlrecordlinkService = exports.SmlProxyQueryService = exports.NavigationPanelsService = exports.FlowPanelsService = exports.SmlflowpanelanalistanceService = exports.SmlentityManagerService = exports.SmlentityDefinitionService = void 0;
|
|
17
|
+
exports.SmlcustomcodeService = exports.SmldashboardviewService = exports.SmlcomposedviewService = exports.SmlchartService = exports.SmlattachmentService = exports.SmlappmenuService = exports.SmlqueryService = exports.SmlformService = exports.SmlgridService = exports.SmlentityService = exports.SmlchartFilterDto = exports.SmlformActionDto = exports.OpenViewMenuItemDto = exports.SmlgridActionDto = exports.SmlgridFilterDto = exports.SmliframeviewModule = exports.MdSystemCodesModule = exports.SmlSystemNotificationModule = exports.SmlviewModule = exports.SmlrecordlockModule = exports.SmlrecordlinkModule = exports.SmlProxyQueryModule = exports.NavigationPanelsModule = exports.FlowPanelsModule = exports.SmlflowpanelanalistanceModule = exports.SmlentityManagerModule = exports.SmlentityDefinitionModule = exports.SmlcustomfunctionModule = exports.SmlcustomcodeModule = exports.SmlconfigModule = exports.ViewRegistry = exports.createEntity = exports.createDtoPair = exports.createUpdateDto = exports.createDto = exports.createCrudViewModules = exports.createCrudViewModule = exports.SmlonlyofficeviewModule = exports.SmlganttviewModule = exports.SmlstatusgridviewModule = exports.SmldatasheetviewModule = exports.SmldashboardviewModule = exports.SmlcomposedviewModule = exports.SmlchartModule = exports.SmlattachmentsModule = exports.SmlappmenuModule = exports.SmlqueryModule = exports.SmlformModule = exports.SmlgridModule = exports.SmlentityModule = void 0;
|
|
18
|
+
exports.SmliframeviewService = exports.MdSystemCodesService = exports.SmlSystemNotificationService = exports.SmlviewService = exports.SmlrecordlockService = exports.SmlrecordlinkService = exports.SmlProxyQueryService = exports.NavigationPanelsService = exports.FlowPanelsService = exports.SmlflowpanelanalistanceService = exports.SmlentityManagerService = exports.SmlentityDefinitionService = exports.SmlcustomfunctionService = void 0;
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
20
|
__exportStar(require("./authentication"), exports);
|
|
21
21
|
var smlentity_module_1 = require("./smlentity/smlentity.module");
|
|
@@ -83,6 +83,8 @@ var sml_system_notification_module_1 = require("./sml-system-notification/sml-sy
|
|
|
83
83
|
Object.defineProperty(exports, "SmlSystemNotificationModule", { enumerable: true, get: function () { return sml_system_notification_module_1.SmlSystemNotificationModule; } });
|
|
84
84
|
var md_system_codes_module_1 = require("./md-system-codes/md-system-codes.module");
|
|
85
85
|
Object.defineProperty(exports, "MdSystemCodesModule", { enumerable: true, get: function () { return md_system_codes_module_1.MdSystemCodesModule; } });
|
|
86
|
+
var smliframeview_module_1 = require("./smliframeview/smliframeview.module");
|
|
87
|
+
Object.defineProperty(exports, "SmliframeviewModule", { enumerable: true, get: function () { return smliframeview_module_1.SmliframeviewModule; } });
|
|
86
88
|
__exportStar(require("./smlentity-definition/schemas/smlentity-definition.schema"), exports);
|
|
87
89
|
__exportStar(require("./smlentity/entities/smlentity.entity"), exports);
|
|
88
90
|
__exportStar(require("./smlgrid/entities/smlgrid.entity"), exports);
|
|
@@ -103,6 +105,7 @@ __exportStar(require("./navigation-panels/entities/navigation-panel.entity"), ex
|
|
|
103
105
|
__exportStar(require("./sml-proxy-query/entities/sml-proxy-query.entity"), exports);
|
|
104
106
|
__exportStar(require("./sml-system-notification/entities/sml-system-notification.entity"), exports);
|
|
105
107
|
__exportStar(require("./md-system-codes/entities/md-system-code.entity"), exports);
|
|
108
|
+
__exportStar(require("./smliframeview/entities/smliframeview.entity"), exports);
|
|
106
109
|
__exportStar(require("./smlentity/dto/create-smlentity.dto"), exports);
|
|
107
110
|
__exportStar(require("./smlentity/dto/update-smlentity.dto"), exports);
|
|
108
111
|
__exportStar(require("./smlentity/dto/get-smlentity.dto"), exports);
|
|
@@ -184,6 +187,9 @@ __exportStar(require("./sml-system-notification/dto/create-sml-system-notificati
|
|
|
184
187
|
__exportStar(require("./sml-system-notification/dto/update-sml-system-notification.dto"), exports);
|
|
185
188
|
__exportStar(require("./md-system-codes/dto/create-md-system-code.dto"), exports);
|
|
186
189
|
__exportStar(require("./md-system-codes/dto/update-md-system-code.dto"), exports);
|
|
190
|
+
__exportStar(require("./smliframeview/dto/create-smliframeview.dto"), exports);
|
|
191
|
+
__exportStar(require("./smliframeview/dto/update-smliframeview.dto"), exports);
|
|
192
|
+
__exportStar(require("./smliframeview/dto/get-smliframeview.dto"), exports);
|
|
187
193
|
var smlentity_service_1 = require("./smlentity/smlentity.service");
|
|
188
194
|
Object.defineProperty(exports, "SmlentityService", { enumerable: true, get: function () { return smlentity_service_1.SmlentityService; } });
|
|
189
195
|
var smlgrid_service_1 = require("./smlgrid/smlgrid.service");
|
|
@@ -228,4 +234,6 @@ var sml_system_notification_service_1 = require("./sml-system-notification/sml-s
|
|
|
228
234
|
Object.defineProperty(exports, "SmlSystemNotificationService", { enumerable: true, get: function () { return sml_system_notification_service_1.SmlSystemNotificationService; } });
|
|
229
235
|
var md_system_codes_service_1 = require("./md-system-codes/md-system-codes.service");
|
|
230
236
|
Object.defineProperty(exports, "MdSystemCodesService", { enumerable: true, get: function () { return md_system_codes_service_1.MdSystemCodesService; } });
|
|
237
|
+
var smliframeview_service_1 = require("./smliframeview/smliframeview.service");
|
|
238
|
+
Object.defineProperty(exports, "SmliframeviewService", { enumerable: true, get: function () { return smliframeview_service_1.SmliframeviewService; } });
|
|
231
239
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AAGjC,iEAA+D;AAAtD,mHAAA,eAAe,OAAA;AACxB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA;AACtB,2DAAyD;AAAhD,+GAAA,aAAa,OAAA;AACtB,8DAA4D;AAAnD,iHAAA,cAAc,OAAA;AACvB,oEAAkE;AAAzD,qHAAA,gBAAgB,OAAA;AACzB,gFAA8E;AAArE,6HAAA,oBAAoB,OAAA;AAC7B,8DAA4D;AAAnD,iHAAA,cAAc,OAAA;AACvB,mFAAiF;AAAxE,+HAAA,qBAAqB,OAAA;AAC9B,sFAAoF;AAA3E,iIAAA,sBAAsB,OAAA;AAC/B,wFAAsF;AAA7E,iIAAA,sBAAsB,OAAA;AAC/B,0FAAwF;AAA/E,mIAAA,uBAAuB,OAAA;AAChC,gFAA8E;AAArE,yHAAA,kBAAkB,OAAA;AAC3B,0FAAwF;AAA/E,mIAAA,uBAAuB,OAAA;AAChC,qEAA8F;AAArF,yHAAA,oBAAoB,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAEpD,uDAAqF;AAA5E,uGAAA,SAAS,OAAA;AAAE,6GAAA,eAAe,OAAA;AAAE,2GAAA,aAAa,OAAA;AAElD,6DAA2D;AAAlD,6GAAA,YAAY,OAAA;AACrB,2DAA0D;AAAjD,4GAAA,YAAY,OAAA;AAErB,iEAA+D;AAAtD,mHAAA,eAAe,OAAA;AACxB,6EAA2E;AAAlE,2HAAA,mBA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rC,qFAAiF;AAAxE,+HAAA,oBAAoB,OAAA;AAC7B,+EAA6E;AAApE,6HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateSmliframeviewDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class CreateSmliframeviewDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateSmliframeviewDto = CreateSmliframeviewDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, swagger_1.ApiProperty)({ description: 'View type, always "iframeView"', default: 'iframeView' }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateSmliframeviewDto.prototype, "viewType", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)({ description: 'Unique view identifier (auto-generated if omitted)', required: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateSmliframeviewDto.prototype, "viewId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, swagger_1.ApiProperty)({ description: 'Friendly name for the iframe view' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateSmliframeviewDto.prototype, "friendlyName", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)({ description: 'Title of the iframe view' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateSmliframeviewDto.prototype, "title", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, swagger_1.ApiProperty)({ description: 'Show title flag', required: false }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateSmliframeviewDto.prototype, "showTitle", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
(0, swagger_1.ApiProperty)({ description: 'URL to embed in the iframe' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CreateSmliframeviewDto.prototype, "url", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)({ description: 'Optional HTML documentation for this view', required: false }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CreateSmliframeviewDto.prototype, "documentation", void 0);
|
|
68
|
+
//# sourceMappingURL=create-smliframeview.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-smliframeview.dto.js","sourceRoot":"","sources":["../../../src/smliframeview/dto/create-smliframeview.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAmE;AACnE,yDAA2C;AAE3C,MAAa,sBAAsB;CA0ClC;AA1CD,wDA0CC;AArCC;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;;wDACrE;AAMjB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oDAAoD,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sDACpF;AAMhB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;;4DAC7C;AAMrB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;;qDAC3C;AAMd;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yDAC9C;AAMnB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;;mDAC/C;AAMZ;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6DACpE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetSmliframeviewDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class GetSmliframeviewDto {
|
|
16
|
+
}
|
|
17
|
+
exports.GetSmliframeviewDto = GetSmliframeviewDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GetSmliframeviewDto.prototype, "_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, swagger_1.ApiProperty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GetSmliframeviewDto.prototype, "viewType", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GetSmliframeviewDto.prototype, "viewId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetSmliframeviewDto.prototype, "friendlyName", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, swagger_1.ApiProperty)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], GetSmliframeviewDto.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GetSmliframeviewDto.prototype, "showTitle", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], GetSmliframeviewDto.prototype, "url", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], GetSmliframeviewDto.prototype, "documentation", void 0);
|
|
58
|
+
//# sourceMappingURL=get-smliframeview.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-smliframeview.dto.js","sourceRoot":"","sources":["../../../src/smliframeview/dto/get-smliframeview.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAA2C;AAE3C,MAAa,mBAAmB;CAgC/B;AAhCD,kDAgCC;AA7BC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;gDACF;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;qDACG;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;mDACC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;yDACO;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;kDACA;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sDACd;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;gDACF;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACV"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateSmliframeviewDto } from './create-smliframeview.dto';
|
|
2
|
+
declare const UpdateSmliframeviewDto_base: import("@nestjs/common").Type<Partial<CreateSmliframeviewDto>>;
|
|
3
|
+
export declare class UpdateSmliframeviewDto extends UpdateSmliframeviewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSmliframeviewDto = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
const create_smliframeview_dto_1 = require("./create-smliframeview.dto");
|
|
6
|
+
class UpdateSmliframeviewDto extends (0, swagger_1.PartialType)(create_smliframeview_dto_1.CreateSmliframeviewDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateSmliframeviewDto = UpdateSmliframeviewDto;
|
|
9
|
+
//# sourceMappingURL=update-smliframeview.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-smliframeview.dto.js","sourceRoot":"","sources":["../../../src/smliframeview/dto/update-smliframeview.dto.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAC9C,yEAAoE;AAEpE,MAAa,sBAAuB,SAAQ,IAAA,qBAAW,EAAC,iDAAsB,CAAC;CAAG;AAAlF,wDAAkF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import mongoose, { HydratedDocument } from 'mongoose';
|
|
2
|
+
export type SmliframeviewDocument = HydratedDocument<Smliframeview>;
|
|
3
|
+
export declare class Smliframeview {
|
|
4
|
+
_id: string;
|
|
5
|
+
viewType: string;
|
|
6
|
+
viewId: string;
|
|
7
|
+
friendlyName: string;
|
|
8
|
+
title: string;
|
|
9
|
+
showTitle?: string;
|
|
10
|
+
url: string;
|
|
11
|
+
documentation?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SmliframeviewSchema: mongoose.Schema<Smliframeview, mongoose.Model<Smliframeview, any, any, any, mongoose.Document<unknown, any, Smliframeview> & Smliframeview & Required<{
|
|
14
|
+
_id: string;
|
|
15
|
+
}> & {
|
|
16
|
+
__v?: number;
|
|
17
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Smliframeview, mongoose.Document<unknown, {}, mongoose.FlatRecord<Smliframeview>> & mongoose.FlatRecord<Smliframeview> & Required<{
|
|
18
|
+
_id: string;
|
|
19
|
+
}> & {
|
|
20
|
+
__v?: number;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SmliframeviewSchema = exports.Smliframeview = void 0;
|
|
16
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
17
|
+
const mongoose_2 = __importDefault(require("mongoose"));
|
|
18
|
+
const uuid_1 = require("uuid");
|
|
19
|
+
let Smliframeview = class Smliframeview {
|
|
20
|
+
};
|
|
21
|
+
exports.Smliframeview = Smliframeview;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.default.Schema.Types.ObjectId, auto: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Smliframeview.prototype, "_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Smliframeview.prototype, "viewType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Smliframeview.prototype, "viewId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Smliframeview.prototype, "friendlyName", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Smliframeview.prototype, "title", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Smliframeview.prototype, "showTitle", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Smliframeview.prototype, "url", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Smliframeview.prototype, "documentation", void 0);
|
|
54
|
+
exports.Smliframeview = Smliframeview = __decorate([
|
|
55
|
+
(0, mongoose_1.Schema)({ timestamps: true, toJSON: { getters: true, virtuals: true } })
|
|
56
|
+
], Smliframeview);
|
|
57
|
+
exports.SmliframeviewSchema = mongoose_1.SchemaFactory.createForClass(Smliframeview);
|
|
58
|
+
exports.SmliframeviewSchema.pre('save', function (next) {
|
|
59
|
+
this.viewType = 'iframeView';
|
|
60
|
+
if (!this.viewId) {
|
|
61
|
+
this.viewId = `smliframeview-${(0, uuid_1.v4)()}`;
|
|
62
|
+
}
|
|
63
|
+
next();
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=smliframeview.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smliframeview.entity.js","sourceRoot":"","sources":["../../../src/smliframeview/entities/sm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C;AAE/E,2BAAmB,CAAC,GAAG,CAAwB,MAAM,EAAE,UAAU,IAAI;IACnE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,iBAAiB,IAAA,SAAM,GAAE,EAAE,CAAC;IAC5C,CAAC;IACD,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SmliframeviewService } from './smliframeview.service';
|
|
2
|
+
import { CreateSmliframeviewDto } from './dto/create-smliframeview.dto';
|
|
3
|
+
import { UpdateSmliframeviewDto } from './dto/update-smliframeview.dto';
|
|
4
|
+
export declare class SmliframeviewController {
|
|
5
|
+
private readonly smliframeviewService;
|
|
6
|
+
constructor(smliframeviewService: SmliframeviewService);
|
|
7
|
+
createV1(createSmliframeviewDto: CreateSmliframeviewDto): Promise<string>;
|
|
8
|
+
findAllV1(filters?: string, limit?: number, offset?: number): Promise<string>;
|
|
9
|
+
findOneV1(id: string): Promise<string>;
|
|
10
|
+
updateV1(id: string, updateSmliframeviewDto: UpdateSmliframeviewDto): Promise<string>;
|
|
11
|
+
removeV1(id: string): Promise<string>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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.SmliframeviewController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const smliframeview_service_1 = require("./smliframeview.service");
|
|
19
|
+
const create_smliframeview_dto_1 = require("./dto/create-smliframeview.dto");
|
|
20
|
+
const update_smliframeview_dto_1 = require("./dto/update-smliframeview.dto");
|
|
21
|
+
const get_smliframeview_dto_1 = require("./dto/get-smliframeview.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 SmliframeviewController = class SmliframeviewController {
|
|
27
|
+
constructor(smliframeviewService) {
|
|
28
|
+
this.smliframeviewService = smliframeviewService;
|
|
29
|
+
}
|
|
30
|
+
async createV1(createSmliframeviewDto) {
|
|
31
|
+
const createdRecord = await this.smliframeviewService.create(createSmliframeviewDto);
|
|
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.smliframeviewService.findAll(parsedFilters, limit, offset);
|
|
45
|
+
return JSON.stringify(data, null, 2);
|
|
46
|
+
}
|
|
47
|
+
async findOneV1(id) {
|
|
48
|
+
const record = await this.smliframeviewService.findOne(id);
|
|
49
|
+
return JSON.stringify(record);
|
|
50
|
+
}
|
|
51
|
+
async updateV1(id, updateSmliframeviewDto) {
|
|
52
|
+
const record = await this.smliframeviewService.update(id, updateSmliframeviewDto);
|
|
53
|
+
return JSON.stringify(record);
|
|
54
|
+
}
|
|
55
|
+
async removeV1(id) {
|
|
56
|
+
await this.smliframeviewService.remove(id);
|
|
57
|
+
return JSON.stringify({ success: true });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.SmliframeviewController = SmliframeviewController;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, common_1.Post)(),
|
|
63
|
+
(0, common_1.Version)('1'),
|
|
64
|
+
(0, swagger_1.ApiOperation)({ summary: 'Create new sml iframe view' }),
|
|
65
|
+
__param(0, (0, common_1.Body)()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [create_smliframeview_dto_1.CreateSmliframeviewDto]),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], SmliframeviewController.prototype, "createV1", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, common_1.Get)(),
|
|
72
|
+
(0, common_1.Version)('1'),
|
|
73
|
+
(0, swagger_1.ApiOperation)({
|
|
74
|
+
summary: 'Fetches a list of sml iframe views',
|
|
75
|
+
description: 'Returns a list of sml iframe views with optional filters, limit, and offset for pagination.',
|
|
76
|
+
}),
|
|
77
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, description: 'Filters in JSON format', type: String }),
|
|
78
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number, default: 10 }),
|
|
79
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number, default: 0 }),
|
|
80
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'List of sml iframe views fetched successfully.', type: [get_smliframeview_dto_1.GetSmliframeviewDto] }),
|
|
81
|
+
(0, swagger_1.ApiResponse)({ status: 500, description: 'Internal Server Error.' }),
|
|
82
|
+
__param(0, (0, common_1.Query)('filters')),
|
|
83
|
+
__param(1, (0, common_1.Query)('limit')),
|
|
84
|
+
__param(2, (0, common_1.Query)('offset')),
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", [String, Number, Number]),
|
|
87
|
+
__metadata("design:returntype", Promise)
|
|
88
|
+
], SmliframeviewController.prototype, "findAllV1", null);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, common_1.Get)(':id'),
|
|
91
|
+
(0, common_1.Version)('1'),
|
|
92
|
+
(0, swagger_1.ApiOperation)({ summary: 'Fetch a single sml iframe view by ID' }),
|
|
93
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml iframe view was fetched successfully.', type: get_smliframeview_dto_1.GetSmliframeviewDto }),
|
|
94
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml iframe view was not found for the provided ID.' }),
|
|
95
|
+
__param(0, (0, common_1.Param)('id')),
|
|
96
|
+
__metadata("design:type", Function),
|
|
97
|
+
__metadata("design:paramtypes", [String]),
|
|
98
|
+
__metadata("design:returntype", Promise)
|
|
99
|
+
], SmliframeviewController.prototype, "findOneV1", null);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, common_1.Put)(':id'),
|
|
102
|
+
(0, common_1.Version)('1'),
|
|
103
|
+
(0, swagger_1.ApiOperation)({ summary: 'Update a sml iframe view by ID' }),
|
|
104
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml iframe view was updated successfully.', type: get_smliframeview_dto_1.GetSmliframeviewDto }),
|
|
105
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml iframe view was not found for the provided ID.' }),
|
|
106
|
+
__param(0, (0, common_1.Param)('id')),
|
|
107
|
+
__param(1, (0, common_1.Body)()),
|
|
108
|
+
__metadata("design:type", Function),
|
|
109
|
+
__metadata("design:paramtypes", [String, update_smliframeview_dto_1.UpdateSmliframeviewDto]),
|
|
110
|
+
__metadata("design:returntype", Promise)
|
|
111
|
+
], SmliframeviewController.prototype, "updateV1", null);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, common_1.Delete)(':id'),
|
|
114
|
+
(0, common_1.Version)('1'),
|
|
115
|
+
(0, swagger_1.ApiOperation)({ summary: 'Remove a sml iframe view by ID' }),
|
|
116
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'The sml iframe view was removed successfully.' }),
|
|
117
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'The sml iframe view was not found for the provided ID.' }),
|
|
118
|
+
__param(0, (0, common_1.Param)('id')),
|
|
119
|
+
__metadata("design:type", Function),
|
|
120
|
+
__metadata("design:paramtypes", [String]),
|
|
121
|
+
__metadata("design:returntype", Promise)
|
|
122
|
+
], SmliframeviewController.prototype, "removeV1", null);
|
|
123
|
+
exports.SmliframeviewController = SmliframeviewController = __decorate([
|
|
124
|
+
(0, common_1.Controller)('smliframeview'),
|
|
125
|
+
(0, swagger_1.ApiTags)('Sml Iframe Views'),
|
|
126
|
+
(0, common_1.UseGuards)(authorization_guard_guard_1.AuthorizationGuard, role_guard_guard_1.RoleGuard),
|
|
127
|
+
(0, swagger_1.ApiBearerAuth)('access-token'),
|
|
128
|
+
(0, has_role_decorator_decorator_1.HasRoles)(user_role_enum_1.Role.SML_O_ADMIN),
|
|
129
|
+
__metadata("design:paramtypes", [smliframeview_service_1.SmliframeviewService])
|
|
130
|
+
], SmliframeviewController);
|
|
131
|
+
//# sourceMappingURL=smliframeview.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smliframeview.controller.js","sourceRoot":"","sources":["../../src/smliframeview/smliframeview.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,6CA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G,CAAC;IACZ,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IAC3D,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,+CAA+C,EAAE,CAAC;IAC1F,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;IACpF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;uDAG1B;kCAnEU,uBAAuB;IALnC,IAAA,mBAAU,EAAC,eAAe,CAAC;IAC3B,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;qCAE0B,4CAAoB;GAD5D,uBAAuB,CAoEnC"}
|
|
@@ -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.SmliframeviewModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const smliframeview_service_1 = require("./smliframeview.service");
|
|
13
|
+
const smliframeview_controller_1 = require("./smliframeview.controller");
|
|
14
|
+
const smliframeview_entity_1 = require("./entities/smliframeview.entity");
|
|
15
|
+
let SmliframeviewModule = class SmliframeviewModule {
|
|
16
|
+
};
|
|
17
|
+
exports.SmliframeviewModule = SmliframeviewModule;
|
|
18
|
+
exports.SmliframeviewModule = SmliframeviewModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
controllers: [smliframeview_controller_1.SmliframeviewController],
|
|
21
|
+
providers: [smliframeview_service_1.SmliframeviewService],
|
|
22
|
+
imports: [
|
|
23
|
+
mongoose_1.MongooseModule.forFeature([{ name: smliframeview_entity_1.Smliframeview.name, schema: smliframeview_entity_1.SmliframeviewSchema }]),
|
|
24
|
+
],
|
|
25
|
+
})
|
|
26
|
+
], SmliframeviewModule);
|
|
27
|
+
//# sourceMappingURL=smliframeview.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smliframeview.module.js","sourceRoot":"","sources":["../../src/smliframeview/smliframeview.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,mEAA+D;AAC/D,yEAAqE;AACrE,0EAAqF;AAS9E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAP/B,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,kDAAuB,CAAC;QACtC,SAAS,EAAE,CAAC,4CAAoB,CAAC;QACjC,OAAO,EAAE;YACP,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,oCAAa,CAAC,IAAI,EAAE,MAAM,EAAE,0CAAmB,EAAE,CAAC,CAAC;SACvF;KACF,CAAC;GACW,mBAAmB,CAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { Smliframeview } from './entities/smliframeview.entity';
|
|
3
|
+
import { CreateSmliframeviewDto } from './dto/create-smliframeview.dto';
|
|
4
|
+
import { UpdateSmliframeviewDto } from './dto/update-smliframeview.dto';
|
|
5
|
+
export declare class SmliframeviewService {
|
|
6
|
+
private smliframeviewModel;
|
|
7
|
+
constructor(smliframeviewModel: Model<Smliframeview>);
|
|
8
|
+
create(createSmliframeviewDto: CreateSmliframeviewDto): Promise<Smliframeview>;
|
|
9
|
+
findAll(filters: any, limit: number, offset: number): Promise<Smliframeview[]>;
|
|
10
|
+
findOne(id: string): Promise<Smliframeview>;
|
|
11
|
+
update(id: string, updateSmliframeviewDto: UpdateSmliframeviewDto): Promise<Smliframeview>;
|
|
12
|
+
remove(id: string): Promise<void>;
|
|
13
|
+
}
|