@golemio/energetics 1.3.5-dev.1300843460 → 1.3.5-rc.1300319629
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 +0 -6
- package/db/migrations/postgresql/.config.json +1 -1
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.d.ts +4 -0
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js +19 -0
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js.map +1 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.d.ts +4 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js +19 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js.map +1 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.d.ts +9 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js +44 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js.map +1 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js +2 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js.map +1 -1
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.d.ts +9 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js +44 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js.map +1 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.d.ts +7 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js +166 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.d.ts +7 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js +41 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js.map +1 -0
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js +4 -0
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js.map +1 -1
- package/docs/implementation_documentation.md +41 -41
- package/package.json +2 -4
- package/db/example/01_buildings.sql +0 -206
- package/db/example/02_organizations.sql +0 -24
- package/db/example/03_devices.sql +0 -24
- package/db/migrations/postgresql/20240514074033-buildings.js +0 -53
- package/db/migrations/postgresql/20240514111900-organizations.js +0 -53
- package/db/migrations/postgresql/sqls/20240514074033-buildings-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20240514074033-buildings-up.sql +0 -138
- package/db/migrations/postgresql/sqls/20240514111900-organizations-down.sql +0 -3
- package/db/migrations/postgresql/sqls/20240514111900-organizations-up.sql +0 -37
- package/dist/output-gateway/constants/Links.d.ts +0 -3
- package/dist/output-gateway/constants/Links.js +0 -7
- package/dist/output-gateway/constants/Links.js.map +0 -1
- package/dist/output-gateway/constants/RouteVersion.d.ts +0 -3
- package/dist/output-gateway/constants/RouteVersion.js +0 -8
- package/dist/output-gateway/constants/RouteVersion.js.map +0 -1
- package/dist/output-gateway/controllers/v2/BuildingsController.d.ts +0 -11
- package/dist/output-gateway/controllers/v2/BuildingsController.js +0 -74
- package/dist/output-gateway/controllers/v2/BuildingsController.js.map +0 -1
- package/dist/output-gateway/controllers/v2/V2DevicesController.d.ts +0 -11
- package/dist/output-gateway/controllers/v2/V2DevicesController.js +0 -67
- package/dist/output-gateway/controllers/v2/V2DevicesController.js.map +0 -1
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.d.ts +0 -13
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js +0 -79
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js.map +0 -1
- package/dist/output-gateway/helpers/CreateLinkHelper.d.ts +0 -6
- package/dist/output-gateway/helpers/CreateLinkHelper.js +0 -32
- package/dist/output-gateway/helpers/CreateLinkHelper.js.map +0 -1
- package/dist/output-gateway/index.d.ts +0 -1
- package/dist/output-gateway/index.js +0 -10
- package/dist/output-gateway/index.js.map +0 -1
- package/dist/output-gateway/ioc/Di.d.ts +0 -3
- package/dist/output-gateway/ioc/Di.js +0 -51
- package/dist/output-gateway/ioc/Di.js.map +0 -1
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +0 -22
- package/dist/output-gateway/ioc/ModuleContainerToken.js +0 -26
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +0 -1
- package/dist/output-gateway/models/BuildingsPrimaryModel.d.ts +0 -17
- package/dist/output-gateway/models/BuildingsPrimaryModel.js +0 -49
- package/dist/output-gateway/models/BuildingsPrimaryModel.js.map +0 -1
- package/dist/output-gateway/models/BuildingsSecondaryModel.d.ts +0 -124
- package/dist/output-gateway/models/BuildingsSecondaryModel.js +0 -338
- package/dist/output-gateway/models/BuildingsSecondaryModel.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.d.ts +0 -6
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js +0 -2
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.d.ts +0 -156
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js +0 -3
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.d.ts +0 -10
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js +0 -3
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js.map +0 -1
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.d.ts +0 -114
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js +0 -3
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js.map +0 -1
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.d.ts +0 -117
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js +0 -3
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js.map +0 -1
- package/dist/output-gateway/repositories/DevicesRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/DevicesRepository.js +0 -64
- package/dist/output-gateway/repositories/DevicesRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js +0 -47
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js +0 -47
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationsRepository.d.ts +0 -17
- package/dist/output-gateway/repositories/OrganizationsRepository.js +0 -133
- package/dist/output-gateway/repositories/OrganizationsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.d.ts +0 -15
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js +0 -86
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js +0 -33
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.d.ts +0 -9
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js +0 -47
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.d.ts +0 -5
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.d.ts +0 -18
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.d.ts +0 -4
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.d.ts +0 -8
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js.map +0 -1
- package/dist/output-gateway/routers/helpers/parseParams.d.ts +0 -4
- package/dist/output-gateway/routers/helpers/parseParams.js +0 -17
- package/dist/output-gateway/routers/helpers/parseParams.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.d.ts +0 -6
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.d.ts +0 -34
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.d.ts +0 -4
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IPaginationParams.d.ts +0 -4
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js +0 -3
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js.map +0 -1
- package/dist/output-gateway/routers/v2/BuildingsRouter.d.ts +0 -10
- package/dist/output-gateway/routers/v2/BuildingsRouter.js +0 -26
- package/dist/output-gateway/routers/v2/BuildingsRouter.js.map +0 -1
- package/dist/output-gateway/routers/v2/V2DevicesRouter.d.ts +0 -7
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js +0 -41
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js.map +0 -1
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.d.ts +0 -7
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js +0 -41
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js.map +0 -1
- package/dist/output-gateway/transformations/BuildingTransformationFull.d.ts +0 -14
- package/dist/output-gateway/transformations/BuildingTransformationFull.js +0 -215
- package/dist/output-gateway/transformations/BuildingTransformationFull.js.map +0 -1
- package/dist/output-gateway/transformations/BuildingsTransformation.d.ts +0 -8
- package/dist/output-gateway/transformations/BuildingsTransformation.js +0 -38
- package/dist/output-gateway/transformations/BuildingsTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/DeviceDtoTransformation.d.ts +0 -8
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js +0 -43
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.d.ts +0 -9
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js +0 -64
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.d.ts +0 -9
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js +0 -36
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationBuildingModel.d.ts +0 -10
- package/dist/schema-definitions/models/OrganizationBuildingModel.js +0 -33
- package/dist/schema-definitions/models/OrganizationBuildingModel.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.d.ts +0 -16
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js +0 -44
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationsModel.d.ts +0 -21
- package/dist/schema-definitions/models/OrganizationsModel.js +0 -59
- package/dist/schema-definitions/models/OrganizationsModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.d.ts +0 -4
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.d.ts +0 -10
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.d.ts +0 -15
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js.map +0 -1
- package/docs/openapi-output.yaml +0 -834
|
@@ -1,36 +0,0 @@
|
|
|
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.OrganizationDtoTransformation = void 0;
|
|
13
|
-
const Links_1 = require("../constants/Links");
|
|
14
|
-
const Di_1 = require("../ioc/Di");
|
|
15
|
-
const ModuleContainerToken_1 = require("../ioc/ModuleContainerToken");
|
|
16
|
-
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
17
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
-
let OrganizationDtoTransformation = exports.OrganizationDtoTransformation = class OrganizationDtoTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
this.name = "OrganizationDtoTransformation";
|
|
22
|
-
this.transformInternal = (element) => {
|
|
23
|
-
return {
|
|
24
|
-
id: element.id,
|
|
25
|
-
name: element.name,
|
|
26
|
-
link: this.createLinkHelper.getLinkUrl(Links_1.ORGANIZATION_PATH, element.id),
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
this.createLinkHelper = Di_1.OGEnergeticsContainer.resolve(ModuleContainerToken_1.ModuleContainerToken.CreateLinkHelper);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.OrganizationDtoTransformation = OrganizationDtoTransformation = __decorate([
|
|
33
|
-
(0, tsyringe_1.injectable)(),
|
|
34
|
-
__metadata("design:paramtypes", [])
|
|
35
|
-
], OrganizationDtoTransformation);
|
|
36
|
-
//# sourceMappingURL=OrganizationDtoTransformation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationDtoTransformation.js","sourceRoot":"","sources":["../../../src/output-gateway/transformations/OrganizationDtoTransformation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAwD;AAExD,kCAAmD;AACnD,sEAAoE;AAGpE,6GAA0G;AAC1G,iEAAgE;AAGzD,IAAM,6BAA6B,2CAAnC,MAAM,6BAA8B,SAAQ,+CAA+D;IAI9G;QACI,KAAK,EAAE,CAAC;QAJL,SAAI,GAAW,+BAA+B,CAAC;QAQ5C,sBAAiB,GAAG,CAAC,OAAyB,EAAyB,EAAE;YAC/E,OAAO;gBACH,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,yBAAiB,EAAE,OAAO,CAAC,EAAE,CAAC;aACxE,CAAC;QACN,CAAC,CAAC;QATE,IAAI,CAAC,gBAAgB,GAAG,0BAAqB,CAAC,OAAO,CAAC,2CAAoB,CAAC,gBAAgB,CAAC,CAAC;IACjG,CAAC;CASJ,CAAA;wCAhBY,6BAA6B;IADzC,IAAA,qBAAU,GAAE;;GACA,6BAA6B,CAgBzC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
3
|
-
import { IOrganizationBuildingsModel } from "./interfaces/IOrganizationBuildingsModel";
|
|
4
|
-
export declare class OrganizationBuildingModel extends Model<OrganizationBuildingModel> implements IOrganizationBuildingsModel {
|
|
5
|
-
static TABLE_NAME: string;
|
|
6
|
-
organization_id: number;
|
|
7
|
-
building_id: number;
|
|
8
|
-
static attributeModel: ModelAttributes<OrganizationBuildingModel>;
|
|
9
|
-
static arrayJsonSchema: JSONSchemaType<IOrganizationBuildingsModel[]>;
|
|
10
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationBuildingModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class OrganizationBuildingModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.OrganizationBuildingModel = OrganizationBuildingModel;
|
|
8
|
-
OrganizationBuildingModel.TABLE_NAME = "organizations_buildings";
|
|
9
|
-
OrganizationBuildingModel.attributeModel = {
|
|
10
|
-
organization_id: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
13
|
-
allowNull: false,
|
|
14
|
-
},
|
|
15
|
-
building_id: {
|
|
16
|
-
primaryKey: true,
|
|
17
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
OrganizationBuildingModel.arrayJsonSchema = {
|
|
22
|
-
type: "array",
|
|
23
|
-
items: {
|
|
24
|
-
type: "object",
|
|
25
|
-
properties: {
|
|
26
|
-
organization_id: { type: "number" },
|
|
27
|
-
building_id: { type: "number" },
|
|
28
|
-
},
|
|
29
|
-
additionalProperties: false,
|
|
30
|
-
required: ["organization_id", "building_id"],
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=OrganizationBuildingModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationBuildingModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/OrganizationBuildingModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAIxF,MAAa,yBAA0B,SAAQ,iBAAgC;;AAA/E,8DA+BC;AA9BiB,oCAAU,GAAG,yBAAyB,CAAC;AAKvC,wCAAc,GAA+C;IACvE,eAAe,EAAE;QACb,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;KACnB;IACD,WAAW,EAAE;QACT,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;KACnB;CACJ,CAAC;AAEY,yCAAe,GAAkD;IAC3E,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACnC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAClC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;KAC/C;CACJ,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { IOrganizationResponsibleUsersModel } from "./interfaces/IOrganizationResponsibleUsersModel";
|
|
3
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
4
|
-
export declare class OrganizationResponsibleUsersModel extends Model<OrganizationResponsibleUsersModel> implements IOrganizationResponsibleUsersModel {
|
|
5
|
-
static TABLE_NAME: string;
|
|
6
|
-
id: number;
|
|
7
|
-
first_name: string | null;
|
|
8
|
-
last_name: string | null;
|
|
9
|
-
position: string | null;
|
|
10
|
-
phone: string | null;
|
|
11
|
-
mail: string | null;
|
|
12
|
-
company: string | null;
|
|
13
|
-
organization_id: number;
|
|
14
|
-
static attributeModel: ModelAttributes<OrganizationResponsibleUsersModel>;
|
|
15
|
-
static arrayJsonSchema: JSONSchemaType<IOrganizationResponsibleUsersModel[]>;
|
|
16
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationResponsibleUsersModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class OrganizationResponsibleUsersModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.OrganizationResponsibleUsersModel = OrganizationResponsibleUsersModel;
|
|
8
|
-
OrganizationResponsibleUsersModel.TABLE_NAME = "organization_responsible_users";
|
|
9
|
-
OrganizationResponsibleUsersModel.attributeModel = {
|
|
10
|
-
id: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
13
|
-
allowNull: false,
|
|
14
|
-
},
|
|
15
|
-
first_name: { type: sequelize_1.DataTypes.STRING(100) },
|
|
16
|
-
last_name: { type: sequelize_1.DataTypes.STRING(100) },
|
|
17
|
-
position: { type: sequelize_1.DataTypes.STRING(100) },
|
|
18
|
-
phone: { type: sequelize_1.DataTypes.STRING(50) },
|
|
19
|
-
mail: { type: sequelize_1.DataTypes.STRING(50) },
|
|
20
|
-
company: { type: sequelize_1.DataTypes.STRING(100) },
|
|
21
|
-
organization_id: {
|
|
22
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
23
|
-
allowNull: false,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
OrganizationResponsibleUsersModel.arrayJsonSchema = {
|
|
27
|
-
type: "array",
|
|
28
|
-
items: {
|
|
29
|
-
type: "object",
|
|
30
|
-
properties: {
|
|
31
|
-
id: { type: "number" },
|
|
32
|
-
first_name: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
33
|
-
last_name: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
34
|
-
position: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
35
|
-
phone: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
36
|
-
mail: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
37
|
-
company: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
38
|
-
organization_id: { type: "number" },
|
|
39
|
-
},
|
|
40
|
-
additionalProperties: false,
|
|
41
|
-
required: ["id", "organization_id"],
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=OrganizationResponsibleUsersModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationResponsibleUsersModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/OrganizationResponsibleUsersModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAIxF,MAAa,iCACT,SAAQ,iBAAwC;;AADpD,8EAmDC;AA/CiB,4CAAU,GAAG,gCAAgC,CAAC;AAW9C,gDAAc,GAAuD;IAC/E,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;KACnB;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AAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YACxE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YACvE,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAC1E,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACtC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC;KACtC;CACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { IOrganizationsModel } from "./interfaces/IOrganizationsModel";
|
|
3
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
4
|
-
export declare class OrganizationsModel extends Model<OrganizationsModel> implements IOrganizationsModel {
|
|
5
|
-
static TABLE_NAME: string;
|
|
6
|
-
id: number;
|
|
7
|
-
name: string | null;
|
|
8
|
-
label: string | null;
|
|
9
|
-
address_street: string | null;
|
|
10
|
-
address_house_number: string | null;
|
|
11
|
-
address_city: string | null;
|
|
12
|
-
address_country: string | null;
|
|
13
|
-
address_mail: string | null;
|
|
14
|
-
address_phone: string | null;
|
|
15
|
-
address_web_address: string | null;
|
|
16
|
-
category: string | null;
|
|
17
|
-
created_by_id: number | null;
|
|
18
|
-
grafana_url: string | null;
|
|
19
|
-
static attributeModel: ModelAttributes<OrganizationsModel>;
|
|
20
|
-
static arrayJsonSchema: JSONSchemaType<IOrganizationsModel[]>;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationsModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class OrganizationsModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.OrganizationsModel = OrganizationsModel;
|
|
8
|
-
OrganizationsModel.TABLE_NAME = "organizations";
|
|
9
|
-
OrganizationsModel.attributeModel = {
|
|
10
|
-
id: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
13
|
-
},
|
|
14
|
-
name: { type: sequelize_1.DataTypes.STRING(100) },
|
|
15
|
-
label: { type: sequelize_1.DataTypes.STRING(50) },
|
|
16
|
-
address_street: { type: sequelize_1.DataTypes.STRING(100) },
|
|
17
|
-
address_house_number: { type: sequelize_1.DataTypes.STRING(100) },
|
|
18
|
-
address_city: { type: sequelize_1.DataTypes.STRING(100) },
|
|
19
|
-
address_country: { type: sequelize_1.DataTypes.STRING(100) },
|
|
20
|
-
address_mail: { type: sequelize_1.DataTypes.STRING(100) },
|
|
21
|
-
address_phone: { type: sequelize_1.DataTypes.STRING(50) },
|
|
22
|
-
address_web_address: { type: sequelize_1.DataTypes.STRING(100) },
|
|
23
|
-
category: { type: sequelize_1.DataTypes.STRING(80) },
|
|
24
|
-
created_by_id: { type: sequelize_1.DataTypes.INTEGER },
|
|
25
|
-
grafana_url: { type: sequelize_1.DataTypes.STRING(255) },
|
|
26
|
-
};
|
|
27
|
-
OrganizationsModel.arrayJsonSchema = {
|
|
28
|
-
type: "array",
|
|
29
|
-
items: {
|
|
30
|
-
type: "object",
|
|
31
|
-
properties: {
|
|
32
|
-
id: { type: "number" },
|
|
33
|
-
name: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
34
|
-
label: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
35
|
-
address_street: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
36
|
-
address_house_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
37
|
-
address_city: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
38
|
-
address_country: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
39
|
-
address_mail: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
40
|
-
address_phone: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
41
|
-
address_web_address: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
42
|
-
category: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
43
|
-
created_by_id: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] },
|
|
44
|
-
grafana_url: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
45
|
-
},
|
|
46
|
-
additionalProperties: false,
|
|
47
|
-
required: [
|
|
48
|
-
"id",
|
|
49
|
-
"address_street",
|
|
50
|
-
"address_house_number",
|
|
51
|
-
"address_city",
|
|
52
|
-
"address_country",
|
|
53
|
-
"address_mail",
|
|
54
|
-
"address_phone",
|
|
55
|
-
"address_web_address",
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=OrganizationsModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationsModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/OrganizationsModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAIxF,MAAa,kBAAmB,SAAQ,iBAAyB;;AAAjE,gDAoEC;AAnEiB,6BAAU,GAAG,eAAe,CAAC;AAgB7B,iCAAc,GAAwC;IAChE,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,OAAO;KAC1B;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,E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AAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YAC3E,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;YACjF,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;SACjF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACN,IAAI;YACJ,gBAAgB;YAChB,sBAAsB;YACtB,cAAc;YACd,iBAAiB;YACjB,cAAc;YACd,eAAe;YACf,qBAAqB;SACxB;KACJ;CACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IOrganizationBuildingsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/models/interfaces/IOrganizationBuildingsModel.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IOrganizationResponsibleUsersModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface IOrganizationsModel {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string | null;
|
|
4
|
-
label: string | null;
|
|
5
|
-
address_street: string | null;
|
|
6
|
-
address_house_number: string | null;
|
|
7
|
-
address_city: string | null;
|
|
8
|
-
address_country: string | null;
|
|
9
|
-
address_mail: string | null;
|
|
10
|
-
address_phone: string | null;
|
|
11
|
-
address_web_address: string | null;
|
|
12
|
-
category: string | null;
|
|
13
|
-
created_by_id: number | null;
|
|
14
|
-
grafana_url: string | null;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IOrganizationsModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/models/interfaces/IOrganizationsModel.ts"],"names":[],"mappings":""}
|