@golemio/energetics 1.3.5 → 1.3.6
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/db/example/00_clear_test_data.sql +6 -0
- package/db/example/01_buildings.sql +206 -0
- package/db/example/02_organizations.sql +24 -0
- package/db/example/03_devices.sql +24 -0
- package/db/migrations/postgresql/.config.json +1 -1
- package/db/migrations/postgresql/20240514074033-buildings.js +53 -0
- package/db/migrations/postgresql/20240514111900-organizations.js +53 -0
- package/db/migrations/postgresql/sqls/20240514074033-buildings-down.sql +2 -0
- package/db/migrations/postgresql/sqls/20240514074033-buildings-up.sql +138 -0
- package/db/migrations/postgresql/sqls/20240514111900-organizations-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20240514111900-organizations-up.sql +37 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js +0 -2
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js.map +1 -1
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js +0 -4
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js.map +1 -1
- package/dist/output-gateway/constants/Links.d.ts +3 -0
- package/dist/output-gateway/constants/Links.js +7 -0
- package/dist/output-gateway/constants/Links.js.map +1 -0
- package/dist/output-gateway/constants/RouteVersion.d.ts +3 -0
- package/dist/output-gateway/constants/RouteVersion.js +8 -0
- package/dist/output-gateway/constants/RouteVersion.js.map +1 -0
- package/dist/output-gateway/controllers/v2/BuildingsController.d.ts +11 -0
- package/dist/output-gateway/controllers/v2/BuildingsController.js +74 -0
- package/dist/output-gateway/controllers/v2/BuildingsController.js.map +1 -0
- package/dist/output-gateway/controllers/v2/V2DevicesController.d.ts +11 -0
- package/dist/output-gateway/controllers/v2/V2DevicesController.js +67 -0
- package/dist/output-gateway/controllers/v2/V2DevicesController.js.map +1 -0
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.d.ts +13 -0
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js +79 -0
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js.map +1 -0
- package/dist/output-gateway/helpers/CreateLinkHelper.d.ts +6 -0
- package/dist/output-gateway/helpers/CreateLinkHelper.js +32 -0
- package/dist/output-gateway/helpers/CreateLinkHelper.js.map +1 -0
- package/dist/output-gateway/index.d.ts +1 -0
- package/dist/output-gateway/index.js +10 -0
- package/dist/output-gateway/index.js.map +1 -0
- package/dist/output-gateway/ioc/Di.d.ts +3 -0
- package/dist/output-gateway/ioc/Di.js +51 -0
- package/dist/output-gateway/ioc/Di.js.map +1 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +22 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js +26 -0
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +1 -0
- package/dist/output-gateway/models/BuildingsPrimaryModel.d.ts +17 -0
- package/dist/output-gateway/models/BuildingsPrimaryModel.js +49 -0
- package/dist/output-gateway/models/BuildingsPrimaryModel.js.map +1 -0
- package/dist/output-gateway/models/BuildingsSecondaryModel.d.ts +124 -0
- package/dist/output-gateway/models/BuildingsSecondaryModel.js +338 -0
- package/dist/output-gateway/models/BuildingsSecondaryModel.js.map +1 -0
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.d.ts +6 -0
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js +2 -0
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js.map +1 -0
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.d.ts +156 -0
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js +3 -0
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js.map +1 -0
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.d.ts +10 -0
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js +3 -0
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js.map +1 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.d.ts +114 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js +3 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js.map +1 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.d.ts +117 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js +3 -0
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js.map +1 -0
- package/dist/output-gateway/repositories/DevicesRepository.d.ts +8 -0
- package/dist/output-gateway/repositories/DevicesRepository.js +64 -0
- package/dist/output-gateway/repositories/DevicesRepository.js.map +1 -0
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.d.ts +6 -0
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js +47 -0
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js.map +1 -0
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.d.ts +6 -0
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js +47 -0
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js.map +1 -0
- package/dist/output-gateway/repositories/OrganizationsRepository.d.ts +17 -0
- package/dist/output-gateway/repositories/OrganizationsRepository.js +133 -0
- package/dist/output-gateway/repositories/OrganizationsRepository.js.map +1 -0
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.d.ts +15 -0
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js +86 -0
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js.map +1 -0
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.d.ts +6 -0
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js +33 -0
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js.map +1 -0
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.d.ts +9 -0
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js +47 -0
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js.map +1 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.d.ts +5 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js +3 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js.map +1 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.d.ts +18 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js +3 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js.map +1 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.d.ts +4 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js +3 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js.map +1 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.d.ts +8 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js +3 -0
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js.map +1 -0
- package/dist/output-gateway/routers/helpers/parseParams.d.ts +4 -0
- package/dist/output-gateway/routers/helpers/parseParams.js +17 -0
- package/dist/output-gateway/routers/helpers/parseParams.js.map +1 -0
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.d.ts +6 -0
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js +3 -0
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js.map +1 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.d.ts +34 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js +3 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js.map +1 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.d.ts +4 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js +3 -0
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js.map +1 -0
- package/dist/output-gateway/routers/interfaces/IPaginationParams.d.ts +4 -0
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js +3 -0
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js.map +1 -0
- package/dist/output-gateway/routers/v2/BuildingsRouter.d.ts +10 -0
- package/dist/output-gateway/routers/v2/BuildingsRouter.js +28 -0
- package/dist/output-gateway/routers/v2/BuildingsRouter.js.map +1 -0
- package/dist/output-gateway/routers/v2/V2DevicesRouter.d.ts +7 -0
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js +41 -0
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js.map +1 -0
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.d.ts +7 -0
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js +41 -0
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js.map +1 -0
- package/dist/output-gateway/transformations/BuildingTransformationFull.d.ts +14 -0
- package/dist/output-gateway/transformations/BuildingTransformationFull.js +218 -0
- package/dist/output-gateway/transformations/BuildingTransformationFull.js.map +1 -0
- package/dist/output-gateway/transformations/BuildingsTransformation.d.ts +8 -0
- package/dist/output-gateway/transformations/BuildingsTransformation.js +38 -0
- package/dist/output-gateway/transformations/BuildingsTransformation.js.map +1 -0
- package/dist/output-gateway/transformations/DeviceDtoTransformation.d.ts +8 -0
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js +43 -0
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js.map +1 -0
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.d.ts +9 -0
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js +64 -0
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js.map +1 -0
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.d.ts +9 -0
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js +36 -0
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js.map +1 -0
- package/dist/schema-definitions/models/OrganizationBuildingModel.d.ts +10 -0
- package/dist/schema-definitions/models/OrganizationBuildingModel.js +33 -0
- package/dist/schema-definitions/models/OrganizationBuildingModel.js.map +1 -0
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.d.ts +16 -0
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js +44 -0
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js.map +1 -0
- package/dist/schema-definitions/models/OrganizationsModel.d.ts +21 -0
- package/dist/schema-definitions/models/OrganizationsModel.js +59 -0
- package/dist/schema-definitions/models/OrganizationsModel.js.map +1 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.d.ts +4 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js +3 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js.map +1 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.d.ts +10 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js +3 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js.map +1 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.d.ts +15 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js +3 -0
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js.map +1 -0
- package/docs/implementation_documentation.md +41 -41
- package/docs/openapi-output.yaml +854 -0
- package/package.json +5 -3
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.d.ts +0 -4
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js +0 -19
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js.map +0 -1
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.d.ts +0 -4
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js +0 -19
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js.map +0 -1
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.d.ts +0 -9
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js +0 -44
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js.map +0 -1
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.d.ts +0 -9
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js +0 -44
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js.map +0 -1
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.d.ts +0 -7
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js +0 -166
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js.map +0 -1
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.d.ts +0 -7
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js +0 -41
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NextFunction, Request, Response } from "@golemio/core/dist/shared/express";
|
|
2
|
+
export declare class BuildingsController {
|
|
3
|
+
private buildingsRepository;
|
|
4
|
+
private transformation;
|
|
5
|
+
private fullDataTransformation;
|
|
6
|
+
constructor();
|
|
7
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
8
|
+
getOne: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
9
|
+
private getFullData;
|
|
10
|
+
private getPrimaryData;
|
|
11
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.BuildingsController = void 0;
|
|
22
|
+
const PrimaryBuildingsRepository_1 = require("../../repositories/PrimaryBuildingsRepository");
|
|
23
|
+
const BuildingsTransformation_1 = require("../../transformations/BuildingsTransformation");
|
|
24
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
25
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
26
|
+
const Utils_1 = require("@golemio/core/dist/output-gateway/Utils");
|
|
27
|
+
const Di_1 = require("../../ioc/Di");
|
|
28
|
+
const ModuleContainerToken_1 = require("../../ioc/ModuleContainerToken");
|
|
29
|
+
let BuildingsController = exports.BuildingsController = class BuildingsController {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.getAll = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
try {
|
|
33
|
+
const fullParam = (0, Utils_1.parseBooleanQueryParam)(req.query.full);
|
|
34
|
+
const transformedResult = fullParam ? yield this.getFullData() : yield this.getPrimaryData();
|
|
35
|
+
res.json(transformedResult);
|
|
36
|
+
}
|
|
37
|
+
catch (err) {
|
|
38
|
+
next(err);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
this.getOne = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
try {
|
|
43
|
+
const id = parseInt(req.params.id);
|
|
44
|
+
const result = yield this.buildingsRepository.GetOne(id);
|
|
45
|
+
if (result === null) {
|
|
46
|
+
throw new golemio_errors_1.GeneralError("not_found", "V2BuildingsController", undefined, 404);
|
|
47
|
+
}
|
|
48
|
+
const transformedResult = this.fullDataTransformation.transformElement(result);
|
|
49
|
+
res.json(transformedResult);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
next(err);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
this.getFullData = () => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const result = yield this.buildingsRepository.GetAllFull();
|
|
57
|
+
const transformedResult = this.fullDataTransformation.transformArray(result);
|
|
58
|
+
return transformedResult;
|
|
59
|
+
});
|
|
60
|
+
this.getPrimaryData = () => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const result = yield this.buildingsRepository.GetAll();
|
|
62
|
+
const transformedResult = this.transformation.transformArray(result);
|
|
63
|
+
return transformedResult;
|
|
64
|
+
});
|
|
65
|
+
this.buildingsRepository = new PrimaryBuildingsRepository_1.PrimaryBuildingsRepository();
|
|
66
|
+
this.transformation = new BuildingsTransformation_1.BuildingsTransformation();
|
|
67
|
+
this.fullDataTransformation = Di_1.OGEnergeticsContainer.resolve(ModuleContainerToken_1.ModuleContainerToken.BuildingTransformationFull);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.BuildingsController = BuildingsController = __decorate([
|
|
71
|
+
(0, tsyringe_1.injectable)(),
|
|
72
|
+
__metadata("design:paramtypes", [])
|
|
73
|
+
], BuildingsController);
|
|
74
|
+
//# sourceMappingURL=BuildingsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildingsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v2/BuildingsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8FAAyF;AAEzF,2FAAsF;AAEtF,6EAAwE;AACxE,iEAAgE;AAChE,mEAAiF;AACjF,qCAAmD;AACnD,yEAAoE;AAG7D,IAAM,mBAAmB,iCAAzB,MAAM,mBAAmB;IAK5B;QAMO,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,SAAS,GAAG,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,IAAc,CAAC,CAAC;gBACnE,MAAM,iBAAiB,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAC7F,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC/B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACnC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAEzD,IAAI,MAAM,KAAK,IAAI,EAAE;oBACjB,MAAM,IAAI,6BAAY,CAAC,WAAW,EAAE,uBAAuB,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;iBAChF;gBACD,MAAM,iBAAiB,GAAG,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;gBAC/E,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC/B;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QAEM,gBAAW,GAAG,GAAS,EAAE;YAC7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,CAAC;YAC3D,MAAM,iBAAiB,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAC7E,OAAO,iBAAiB,CAAC;QAC7B,CAAC,CAAA,CAAC;QAEM,mBAAc,GAAG,GAAS,EAAE;YAChC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;YACvD,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YACrE,OAAO,iBAAiB,CAAC;QAC7B,CAAC,CAAA,CAAC;QAxCE,IAAI,CAAC,mBAAmB,GAAG,IAAI,uDAA0B,EAAE,CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,IAAI,iDAAuB,EAAE,CAAC;QACpD,IAAI,CAAC,sBAAsB,GAAG,0BAAqB,CAAC,OAAO,CAAC,2CAAoB,CAAC,0BAA0B,CAAC,CAAC;IACjH,CAAC;CAsCJ,CAAA;8BA/CY,mBAAmB;IAD/B,IAAA,qBAAU,GAAE;;GACA,mBAAmB,CA+C/B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="express" />
|
|
2
|
+
import { NextFunction, Request, Response } from "@golemio/core/dist/shared/express";
|
|
3
|
+
import { DevicesRepository } from "../../repositories/DevicesRepository";
|
|
4
|
+
import { DeviceDtoTransformation } from "../../transformations/DeviceDtoTransformation";
|
|
5
|
+
export declare class V2DevicesController {
|
|
6
|
+
private devicesRepository;
|
|
7
|
+
private transformation;
|
|
8
|
+
constructor(devicesRepository: DevicesRepository, transformation: DeviceDtoTransformation);
|
|
9
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
|
|
10
|
+
getOne: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.V2DevicesController = void 0;
|
|
25
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
26
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
27
|
+
const ModuleContainerToken_1 = require("../../ioc/ModuleContainerToken");
|
|
28
|
+
const DevicesRepository_1 = require("../../repositories/DevicesRepository");
|
|
29
|
+
const DeviceDtoTransformation_1 = require("../../transformations/DeviceDtoTransformation");
|
|
30
|
+
const parseParams_1 = require("../../routers/helpers/parseParams");
|
|
31
|
+
let V2DevicesController = exports.V2DevicesController = class V2DevicesController {
|
|
32
|
+
constructor(devicesRepository, transformation) {
|
|
33
|
+
this.devicesRepository = devicesRepository;
|
|
34
|
+
this.transformation = transformation;
|
|
35
|
+
this.getAll = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
try {
|
|
37
|
+
const params = (0, parseParams_1.parseParams)(req);
|
|
38
|
+
const result = yield this.devicesRepository.GetAll(params);
|
|
39
|
+
return res.json(this.transformation.transformArray(result));
|
|
40
|
+
}
|
|
41
|
+
catch (err) {
|
|
42
|
+
return next(err);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
this.getOne = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
try {
|
|
47
|
+
const id = req.params.id;
|
|
48
|
+
const result = yield this.devicesRepository.GetOne(id);
|
|
49
|
+
if (!result) {
|
|
50
|
+
return next(new golemio_errors_1.GeneralError("not_found", this.constructor.name, `Device with id ${req.params.id} not found`, 404));
|
|
51
|
+
}
|
|
52
|
+
return res.json(this.transformation.transformElement(result));
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
return next(err);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.V2DevicesController = V2DevicesController = __decorate([
|
|
61
|
+
(0, tsyringe_1.injectable)(),
|
|
62
|
+
__param(0, (0, tsyringe_1.inject)(ModuleContainerToken_1.ModuleContainerToken.DevicesRepository)),
|
|
63
|
+
__param(1, (0, tsyringe_1.inject)(ModuleContainerToken_1.ModuleContainerToken.DeviceDtoTransformation)),
|
|
64
|
+
__metadata("design:paramtypes", [DevicesRepository_1.DevicesRepository,
|
|
65
|
+
DeviceDtoTransformation_1.DeviceDtoTransformation])
|
|
66
|
+
], V2DevicesController);
|
|
67
|
+
//# sourceMappingURL=V2DevicesController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2DevicesController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v2/V2DevicesController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,6EAAwE;AACxE,iEAAwE;AACxE,yEAAoE;AAEpE,4EAAuE;AACvE,2FAAsF;AACtF,mEAA8D;AAGvD,IAAM,mBAAmB,iCAAzB,MAAM,mBAAmB;IAC5B,YACoD,iBAA4C,EAE5F,cAA+C;QAFS,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpF,mBAAc,GAAd,cAAc,CAAyB;QAG5C,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAAsB,IAAA,yBAAW,EAAC,GAAG,CAAC,CAAC;gBACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAC3D,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;aAC/D;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;aACpB;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAEvD,IAAI,CAAC,MAAM,EAAE;oBACT,OAAO,IAAI,CACP,IAAI,6BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CACzG,CAAC;iBACL;gBAED,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;aACjE;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;aACpB;QACL,CAAC,CAAA,CAAC;IA3BC,CAAC;CA4BP,CAAA;8BAjCY,mBAAmB;IAD/B,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,iBAAiB,CAAC,CAAA;IAC9C,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,uBAAuB,CAAC,CAAA;qCADsB,qCAAiB;QAEpE,iDAAuB;GAJ1C,mBAAmB,CAiC/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="express" />
|
|
2
|
+
import { NextFunction, Request, Response } from "@golemio/core/dist/shared/express";
|
|
3
|
+
import { OrganizationsRepository } from "../../repositories/OrganizationsRepository";
|
|
4
|
+
import { OrganizationDtoTransformation } from "../../transformations/OrganizationDtoTransformation";
|
|
5
|
+
import { OrganizationDetailDtoTransformation } from "../../transformations/OrganizationDetailDtoTransformation";
|
|
6
|
+
export declare class V2OrganizationsController {
|
|
7
|
+
private organizationsRepository;
|
|
8
|
+
private transformation;
|
|
9
|
+
private transformationDetail;
|
|
10
|
+
constructor(organizationsRepository: OrganizationsRepository, transformation: OrganizationDtoTransformation, transformationDetail: OrganizationDetailDtoTransformation);
|
|
11
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
|
|
12
|
+
getOne: (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.V2OrganizationsController = void 0;
|
|
25
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
26
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
27
|
+
const ModuleContainerToken_1 = require("../../ioc/ModuleContainerToken");
|
|
28
|
+
const OrganizationsRepository_1 = require("../../repositories/OrganizationsRepository");
|
|
29
|
+
const OrganizationDtoTransformation_1 = require("../../transformations/OrganizationDtoTransformation");
|
|
30
|
+
const OrganizationDetailDtoTransformation_1 = require("../../transformations/OrganizationDetailDtoTransformation");
|
|
31
|
+
const parseParams_1 = require("../../routers/helpers/parseParams");
|
|
32
|
+
const Utils_1 = require("@golemio/core/dist/output-gateway/Utils");
|
|
33
|
+
let V2OrganizationsController = exports.V2OrganizationsController = class V2OrganizationsController {
|
|
34
|
+
constructor(organizationsRepository, transformation, transformationDetail) {
|
|
35
|
+
this.organizationsRepository = organizationsRepository;
|
|
36
|
+
this.transformation = transformation;
|
|
37
|
+
this.transformationDetail = transformationDetail;
|
|
38
|
+
this.getAll = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
try {
|
|
40
|
+
const params = (0, parseParams_1.parseParams)(req);
|
|
41
|
+
const full = (0, Utils_1.parseBooleanQueryParam)(req.query.full) || false;
|
|
42
|
+
let result = [];
|
|
43
|
+
if (!full) {
|
|
44
|
+
result = this.transformation.transformArray(yield this.organizationsRepository.GetAllPublic(params));
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
result = this.transformationDetail.transformArray(yield this.organizationsRepository.GetAll(params));
|
|
48
|
+
}
|
|
49
|
+
return res.json(result);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
return next(err);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
this.getOne = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
try {
|
|
57
|
+
const id = req.params.id;
|
|
58
|
+
const result = yield this.organizationsRepository.GetOne(id);
|
|
59
|
+
if (!result) {
|
|
60
|
+
return next(new golemio_errors_1.GeneralError("not_found", this.constructor.name, `Organization with id ${req.params.id} not found`, 404));
|
|
61
|
+
}
|
|
62
|
+
return res.json(this.transformationDetail.transformElement(result));
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
return next(err);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.V2OrganizationsController = V2OrganizationsController = __decorate([
|
|
71
|
+
(0, tsyringe_1.injectable)(),
|
|
72
|
+
__param(0, (0, tsyringe_1.inject)(ModuleContainerToken_1.ModuleContainerToken.OrganizationsRepository)),
|
|
73
|
+
__param(1, (0, tsyringe_1.inject)(ModuleContainerToken_1.ModuleContainerToken.OrganizationDtoTransformation)),
|
|
74
|
+
__param(2, (0, tsyringe_1.inject)(ModuleContainerToken_1.ModuleContainerToken.OrganizationDetailDtoTransformation)),
|
|
75
|
+
__metadata("design:paramtypes", [OrganizationsRepository_1.OrganizationsRepository,
|
|
76
|
+
OrganizationDtoTransformation_1.OrganizationDtoTransformation,
|
|
77
|
+
OrganizationDetailDtoTransformation_1.OrganizationDetailDtoTransformation])
|
|
78
|
+
], V2OrganizationsController);
|
|
79
|
+
//# sourceMappingURL=V2OrganizationsController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V2OrganizationsController.js","sourceRoot":"","sources":["../../../../src/output-gateway/controllers/v2/V2OrganizationsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,6EAAwE;AACxE,iEAAwE;AACxE,yEAAoE;AACpE,wFAAmF;AAEnF,uGAAkG;AAClG,mHAA8G;AAC9G,mEAA8D;AAC9D,mEAAiF;AAG1E,IAAM,yBAAyB,uCAA/B,MAAM,yBAAyB;IAClC,YAC0D,uBAAwD,EAClD,cAAqD,EAEjH,oBAAiE;QAHH,4BAAuB,GAAvB,uBAAuB,CAAyB;QAC1C,mBAAc,GAAd,cAAc,CAA+B;QAEzG,yBAAoB,GAApB,oBAAoB,CAAqC;QAG9D,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,MAAM,GAAsB,IAAA,yBAAW,EAAC,GAAG,CAAC,CAAC;gBACnD,MAAM,IAAI,GAAG,IAAA,8BAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,IAAc,CAAC,IAAI,KAAK,CAAC;gBACvE,IAAI,MAAM,GAAG,EAAE,CAAC;gBAEhB,IAAI,CAAC,IAAI,EAAE;oBACP,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,MAAM,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;iBACxG;qBAAM;oBACH,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,MAAM,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;iBACxG;gBAED,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC3B;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;aACpB;QACL,CAAC,CAAA,CAAC;QAEK,WAAM,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;YACtE,IAAI;gBACA,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAE7D,IAAI,CAAC,MAAM,EAAE;oBACT,OAAO,IAAI,CACP,IAAI,6BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,wBAAwB,GAAG,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CAC/G,CAAC;iBACL;gBAED,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;aACvE;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;aACpB;QACL,CAAC,CAAA,CAAC;IAnCC,CAAC;CAoCP,CAAA;oCA1CY,yBAAyB;IADrC,IAAA,qBAAU,GAAE;IAGJ,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,uBAAuB,CAAC,CAAA;IACpD,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,6BAA6B,CAAC,CAAA;IAC1D,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,mCAAmC,CAAC,CAAA;qCAFsB,iDAAuB;QAC1B,6DAA6B;QAEnF,yEAAmC;GAL5D,yBAAyB,CA0CrC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.CreateLinkHelper = void 0;
|
|
16
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
17
|
+
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
18
|
+
const RouteVersion_1 = require("../constants/RouteVersion");
|
|
19
|
+
let CreateLinkHelper = exports.CreateLinkHelper = class CreateLinkHelper {
|
|
20
|
+
constructor(config) {
|
|
21
|
+
this.baseUrl = new URL(config.getValue("env.API_URL_PREFIX", "https://api.golemio.cz")).origin;
|
|
22
|
+
}
|
|
23
|
+
getLinkUrl(path, id) {
|
|
24
|
+
return new URL(`${RouteVersion_1.RouteVersion.v2}/${path}/${id}`, this.baseUrl).toString();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.CreateLinkHelper = CreateLinkHelper = __decorate([
|
|
28
|
+
(0, tsyringe_1.injectable)(),
|
|
29
|
+
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
30
|
+
__metadata("design:paramtypes", [Object])
|
|
31
|
+
], CreateLinkHelper);
|
|
32
|
+
//# sourceMappingURL=CreateLinkHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateLinkHelper.js","sourceRoot":"","sources":["../../../src/output-gateway/helpers/CreateLinkHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iEAAwE;AAExE,wEAAqE;AACrE,4DAA0D;AAGnD,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;IAGzB,YAA4C,MAAqB;QAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,CAAC,CAAC,MAAM,CAAC;IACnG,CAAC;IAEM,UAAU,CAAC,IAAY,EAAE,EAAU;QACtC,OAAO,IAAI,GAAG,CAAC,GAAG,2BAAY,CAAC,EAAE,IAAI,IAAI,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IAChF,CAAC;CACJ,CAAA;2BAVY,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IAII,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;;GAHlC,gBAAgB,CAU5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const routers: import("@golemio/core/dist/helpers/routing/AbstractRouter").AbstractRouter[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.routers = void 0;
|
|
4
|
+
const ModuleContainerToken_1 = require("./ioc/ModuleContainerToken");
|
|
5
|
+
const BuildingsRouter_1 = require("./routers/v2/BuildingsRouter");
|
|
6
|
+
const Di_1 = require("./ioc/Di");
|
|
7
|
+
const v2OrganizationsRouter = Di_1.OGEnergeticsContainer.resolve(ModuleContainerToken_1.ModuleContainerToken.V2OrganizationsRouter);
|
|
8
|
+
const v2DevicesRouter = Di_1.OGEnergeticsContainer.resolve(ModuleContainerToken_1.ModuleContainerToken.V2DevicesRouter);
|
|
9
|
+
exports.routers = [BuildingsRouter_1.v2BuildingsRouter, v2OrganizationsRouter, v2DevicesRouter];
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/output-gateway/index.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AACpE,kEAAiE;AACjE,iCAAmD;AAGnD,MAAM,qBAAqB,GAAG,0BAAqB,CAAC,OAAO,CAAwB,2CAAoB,CAAC,qBAAqB,CAAC,CAAC;AAC/H,MAAM,eAAe,GAAG,0BAAqB,CAAC,OAAO,CAAwB,2CAAoB,CAAC,eAAe,CAAC,CAAC;AAEtG,QAAA,OAAO,GAAG,CAAC,mCAAiB,EAAE,qBAAqB,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OGEnergeticsContainer = void 0;
|
|
4
|
+
const ModuleContainerToken_1 = require("./ModuleContainerToken");
|
|
5
|
+
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
6
|
+
const OrganizationsRepository_1 = require("../repositories/OrganizationsRepository");
|
|
7
|
+
const V2OrganizationsController_1 = require("../controllers/v2/V2OrganizationsController");
|
|
8
|
+
const OrganizationResponsibleUsersRepository_1 = require("../repositories/OrganizationResponsibleUsersRepository");
|
|
9
|
+
const PrimaryBuildingsRepository_1 = require("../repositories/PrimaryBuildingsRepository");
|
|
10
|
+
const OrganizationBuildingsRepository_1 = require("../repositories/OrganizationBuildingsRepository");
|
|
11
|
+
const DevicesRepository_1 = require("../repositories/DevicesRepository");
|
|
12
|
+
const V2DevicesController_1 = require("../controllers/v2/V2DevicesController");
|
|
13
|
+
const V2OrganizationsRouter_1 = require("../routers/v2/V2OrganizationsRouter");
|
|
14
|
+
const V2DevicesRouter_1 = require("../routers/v2/V2DevicesRouter");
|
|
15
|
+
const OrganizationDtoTransformation_1 = require("../transformations/OrganizationDtoTransformation");
|
|
16
|
+
const OrganizationDetailDtoTransformation_1 = require("../transformations/OrganizationDetailDtoTransformation");
|
|
17
|
+
const DeviceDtoTransformation_1 = require("../transformations/DeviceDtoTransformation");
|
|
18
|
+
const BuildingTransformationFull_1 = require("../transformations/BuildingTransformationFull");
|
|
19
|
+
const CreateLinkHelper_1 = require("../helpers/CreateLinkHelper");
|
|
20
|
+
//#region Initialization
|
|
21
|
+
const energeticsContainer = ioc_1.OutputGatewayContainer.createChildContainer();
|
|
22
|
+
exports.OGEnergeticsContainer = energeticsContainer;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region Transformations
|
|
25
|
+
energeticsContainer
|
|
26
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.OrganizationDtoTransformation, OrganizationDtoTransformation_1.OrganizationDtoTransformation)
|
|
27
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.OrganizationDetailDtoTransformation, OrganizationDetailDtoTransformation_1.OrganizationDetailDtoTransformation)
|
|
28
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.DeviceDtoTransformation, DeviceDtoTransformation_1.DeviceDtoTransformation)
|
|
29
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.BuildingTransformationFull, BuildingTransformationFull_1.BuildingTransformationFull);
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region Repositories
|
|
32
|
+
energeticsContainer
|
|
33
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.PrimaryBuildingsRepository, PrimaryBuildingsRepository_1.PrimaryBuildingsRepository)
|
|
34
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.OrganizationsRepository, OrganizationsRepository_1.OrganizationsRepository)
|
|
35
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.OrganizationBuildingsRepository, OrganizationBuildingsRepository_1.OrganizationBuildingsRepository)
|
|
36
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.OrganizationResponsibleUsersRepository, OrganizationResponsibleUsersRepository_1.OrganizationResponsibleUsersRepository)
|
|
37
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.DevicesRepository, DevicesRepository_1.DevicesRepository);
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region Controllers
|
|
40
|
+
energeticsContainer
|
|
41
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.V2OrganizationsController, V2OrganizationsController_1.V2OrganizationsController)
|
|
42
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.V2DevicesController, V2DevicesController_1.V2DevicesController);
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region Routers
|
|
45
|
+
energeticsContainer
|
|
46
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.V2OrganizationsRouter, V2OrganizationsRouter_1.V2OrganizationsRouter)
|
|
47
|
+
.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.V2DevicesRouter, V2DevicesRouter_1.V2DevicesRouter);
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region Helpers
|
|
50
|
+
energeticsContainer.registerSingleton(ModuleContainerToken_1.ModuleContainerToken.CreateLinkHelper, CreateLinkHelper_1.CreateLinkHelper);
|
|
51
|
+
//# sourceMappingURL=Di.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,iEAAoE;AAEpE,+DAA+E;AAC/E,qFAAmF;AACnF,2FAAyF;AACzF,mHAAiH;AACjH,2FAAyF;AACzF,qGAAmG;AACnG,yEAAuE;AACvE,+EAA6E;AAC7E,+EAA6E;AAC7E,mEAAiE;AACjE,oGAAkG;AAClG,gHAA8G;AAC9G,wFAAsF;AACtF,8FAA4F;AAC5F,kEAAgE;AAEhE,wBAAwB;AACxB,MAAM,mBAAmB,GAAwB,4BAAsB,CAAC,oBAAoB,EAAE,CAAC;AAmC/D,oDAAqB;AAlCrD,YAAY;AAEZ,yBAAyB;AACzB,mBAAmB;KACd,iBAAiB,CAAC,2CAAoB,CAAC,6BAA6B,EAAE,6DAA6B,CAAC;KACpG,iBAAiB,CAAC,2CAAoB,CAAC,mCAAmC,EAAE,yEAAmC,CAAC;KAChH,iBAAiB,CAAC,2CAAoB,CAAC,uBAAuB,EAAE,iDAAuB,CAAC;KACxF,iBAAiB,CAAC,2CAAoB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC,CAAC;AACpG,YAAY;AAEZ,sBAAsB;AACtB,mBAAmB;KACd,iBAAiB,CAAC,2CAAoB,CAAC,0BAA0B,EAAE,uDAA0B,CAAC;KAC9F,iBAAiB,CAAC,2CAAoB,CAAC,uBAAuB,EAAE,iDAAuB,CAAC;KACxF,iBAAiB,CAAC,2CAAoB,CAAC,+BAA+B,EAAE,iEAA+B,CAAC;KACxG,iBAAiB,CAAC,2CAAoB,CAAC,sCAAsC,EAAE,+EAAsC,CAAC;KACtH,iBAAiB,CAAC,2CAAoB,CAAC,iBAAiB,EAAE,qCAAiB,CAAC,CAAC;AAClF,YAAY;AAEZ,qBAAqB;AACrB,mBAAmB;KACd,iBAAiB,CAAC,2CAAoB,CAAC,yBAAyB,EAAE,qDAAyB,CAAC;KAC5F,iBAAiB,CAAC,2CAAoB,CAAC,mBAAmB,EAAE,yCAAmB,CAAC,CAAC;AACtF,YAAY;AAEZ,iBAAiB;AACjB,mBAAmB;KACd,iBAAiB,CAAwB,2CAAoB,CAAC,qBAAqB,EAAE,6CAAqB,CAAC;KAC3G,iBAAiB,CAAkB,2CAAoB,CAAC,eAAe,EAAE,iCAAe,CAAC,CAAC;AAC/F,YAAY;AAEZ,iBAAiB;AACjB,mBAAmB,CAAC,iBAAiB,CAAC,2CAAoB,CAAC,gBAAgB,EAAE,mCAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const ModuleContainerToken: {
|
|
2
|
+
/** transformations */
|
|
3
|
+
OrganizationDtoTransformation: symbol;
|
|
4
|
+
OrganizationDetailDtoTransformation: symbol;
|
|
5
|
+
DeviceDtoTransformation: symbol;
|
|
6
|
+
BuildingTransformationFull: symbol;
|
|
7
|
+
/** repositories */
|
|
8
|
+
PrimaryBuildingsRepository: symbol;
|
|
9
|
+
OrganizationsRepository: symbol;
|
|
10
|
+
OrganizationBuildingsRepository: symbol;
|
|
11
|
+
OrganizationResponsibleUsersRepository: symbol;
|
|
12
|
+
DevicesRepository: symbol;
|
|
13
|
+
/** controllers */
|
|
14
|
+
V2OrganizationsController: symbol;
|
|
15
|
+
V2DevicesController: symbol;
|
|
16
|
+
/** routers */
|
|
17
|
+
V2OrganizationsRouter: symbol;
|
|
18
|
+
V2DevicesRouter: symbol;
|
|
19
|
+
/** helpers */
|
|
20
|
+
CreateLinkHelper: symbol;
|
|
21
|
+
};
|
|
22
|
+
export { ModuleContainerToken };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModuleContainerToken = void 0;
|
|
4
|
+
const ModuleContainerToken = {
|
|
5
|
+
/** transformations */
|
|
6
|
+
OrganizationDtoTransformation: Symbol("OrganizationDtoTransformation"),
|
|
7
|
+
OrganizationDetailDtoTransformation: Symbol("OrganizationDetailDtoTransformation"),
|
|
8
|
+
DeviceDtoTransformation: Symbol("DeviceDtoTransformation"),
|
|
9
|
+
BuildingTransformationFull: Symbol("BuildingTransformationFull"),
|
|
10
|
+
/** repositories */
|
|
11
|
+
PrimaryBuildingsRepository: Symbol("PrimaryBuildingsRepository"),
|
|
12
|
+
OrganizationsRepository: Symbol("OrganizationsRepository"),
|
|
13
|
+
OrganizationBuildingsRepository: Symbol("OrganizationBuildingsRepository"),
|
|
14
|
+
OrganizationResponsibleUsersRepository: Symbol("OrganizationResponsibleUsersRepository"),
|
|
15
|
+
DevicesRepository: Symbol("DevicesRepository"),
|
|
16
|
+
/** controllers */
|
|
17
|
+
V2OrganizationsController: Symbol("V2OrganizationsController"),
|
|
18
|
+
V2DevicesController: Symbol("V2DevicesController"),
|
|
19
|
+
/** routers */
|
|
20
|
+
V2OrganizationsRouter: Symbol("V2OrganizationsRouter"),
|
|
21
|
+
V2DevicesRouter: Symbol("V2DevicesRouter"),
|
|
22
|
+
/** helpers */
|
|
23
|
+
CreateLinkHelper: Symbol("AbstractCreateLinkHelper"),
|
|
24
|
+
};
|
|
25
|
+
exports.ModuleContainerToken = ModuleContainerToken;
|
|
26
|
+
//# sourceMappingURL=ModuleContainerToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleContainerToken.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/ModuleContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,oBAAoB,GAAG;IACzB,sBAAsB;IACtB,6BAA6B,EAAE,MAAM,CAAC,+BAA+B,CAAC;IACtE,mCAAmC,EAAE,MAAM,CAAC,qCAAqC,CAAC;IAClF,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,mBAAmB;IACnB,0BAA0B,EAAE,MAAM,CAAC,4BAA4B,CAAC;IAChE,uBAAuB,EAAE,MAAM,CAAC,yBAAyB,CAAC;IAC1D,+BAA+B,EAAE,MAAM,CAAC,iCAAiC,CAAC;IAC1E,sCAAsC,EAAE,MAAM,CAAC,wCAAwC,CAAC;IACxF,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,kBAAkB;IAClB,yBAAyB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IAC9D,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,cAAc;IACd,qBAAqB,EAAE,MAAM,CAAC,uBAAuB,CAAC;IACtD,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,cAAc;IACd,gBAAgB,EAAE,MAAM,CAAC,0BAA0B,CAAC;CACvD,CAAC;AAEO,oDAAoB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IBuildingsPrimary } from "./interfaces/IPrimaryBuildings";
|
|
4
|
+
export declare class BuildingsPrimaryModel extends Model<IBuildingsPrimary> implements IBuildingsPrimary {
|
|
5
|
+
static modelName: string;
|
|
6
|
+
static tableName: string;
|
|
7
|
+
id: number;
|
|
8
|
+
building_name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
building_address_code: string;
|
|
11
|
+
building_label: string;
|
|
12
|
+
main_use: string;
|
|
13
|
+
secondary_use: string;
|
|
14
|
+
year_of_construction: number;
|
|
15
|
+
static attributeModel: ModelAttributes<BuildingsPrimaryModel>;
|
|
16
|
+
static arrayJsonSchema: JSONSchemaType<IBuildingsPrimary[]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingsPrimaryModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class BuildingsPrimaryModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.BuildingsPrimaryModel = BuildingsPrimaryModel;
|
|
8
|
+
BuildingsPrimaryModel.modelName = "BuildingsPrimaryModelData";
|
|
9
|
+
BuildingsPrimaryModel.tableName = "consumption_energy_buildings_primary";
|
|
10
|
+
BuildingsPrimaryModel.attributeModel = {
|
|
11
|
+
id: {
|
|
12
|
+
primaryKey: true,
|
|
13
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
14
|
+
},
|
|
15
|
+
building_name: sequelize_1.DataTypes.STRING(100),
|
|
16
|
+
description: sequelize_1.DataTypes.STRING(100),
|
|
17
|
+
building_address_code: sequelize_1.DataTypes.STRING(100),
|
|
18
|
+
building_label: sequelize_1.DataTypes.STRING(100),
|
|
19
|
+
main_use: sequelize_1.DataTypes.STRING(100),
|
|
20
|
+
secondary_use: sequelize_1.DataTypes.STRING(100),
|
|
21
|
+
year_of_construction: sequelize_1.DataTypes.INTEGER,
|
|
22
|
+
};
|
|
23
|
+
BuildingsPrimaryModel.arrayJsonSchema = {
|
|
24
|
+
type: "array",
|
|
25
|
+
items: {
|
|
26
|
+
type: "object",
|
|
27
|
+
properties: {
|
|
28
|
+
id: { type: "integer" },
|
|
29
|
+
building_name: { type: "string" },
|
|
30
|
+
description: { type: "string" },
|
|
31
|
+
main_use: { type: "string" },
|
|
32
|
+
building_address_code: { type: "string" },
|
|
33
|
+
building_label: { type: "string" },
|
|
34
|
+
secondary_use: { type: "string" },
|
|
35
|
+
year_of_construction: { type: "integer" },
|
|
36
|
+
},
|
|
37
|
+
required: [
|
|
38
|
+
"id",
|
|
39
|
+
"building_name",
|
|
40
|
+
"description",
|
|
41
|
+
"building_address_code",
|
|
42
|
+
"building_label",
|
|
43
|
+
"main_use",
|
|
44
|
+
"secondary_use",
|
|
45
|
+
"year_of_construction",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=BuildingsPrimaryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildingsPrimaryModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/BuildingsPrimaryModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,qBAAsB,SAAQ,iBAAwB;;AAAnE,sDAqDC;AApDiB,+BAAS,GAAG,2BAA2B,CAAC;AACxC,+BAAS,GAAG,sCAAsC,CAAC;AAWnD,oCAAc,GAA2C;IACnE,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,OAAO;KAC1B;IACD,aAAa,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IACpC,WAAW,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IAClC,qBAAqB,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IAC5C,cAAc,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IACrC,QAAQ,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IAC/B,aAAa,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;IACpC,oBAAoB,EAAE,qBAAS,CAAC,OAAO;CAC1C,CAAC;AAEY,qCAAe,GAAwC;IACjE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACvB,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,qBAAqB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC5C;QACD,QAAQ,EAAE;YACN,IAAI;YACJ,eAAe;YACf,aAAa;YACb,uBAAuB;YACvB,gBAAgB;YAChB,UAAU;YACV,eAAe;YACf,sBAAsB;SACzB;KACJ;CACJ,CAAC"}
|