@enervance/insight-cim-model 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectPhase.d.ts +2 -1
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectPhase.js +32 -33
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectPhase.js.map +1 -1
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectStructure.d.ts +1 -2
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectStructure.js +1 -2
- package/dist/model/extensions/amprion/project/AMPRIONErpProjectStructure.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { IdentifiedObject } from '../../../core/IdentifiedObject';
|
|
1
2
|
import { AMPRIONErpProjectStructure } from './AMPRIONErpProjectStructure';
|
|
2
3
|
import { AmprionModel } from '../model/AmprionModel';
|
|
3
|
-
export declare class AMPRIONErpProjectPhase extends
|
|
4
|
+
export declare class AMPRIONErpProjectPhase extends IdentifiedObject {
|
|
4
5
|
startDate: string;
|
|
5
6
|
endDate: string;
|
|
6
7
|
projectPhaseType: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AMPRIONErpProjectPhase = void 0;
|
|
4
|
-
const
|
|
4
|
+
const IdentifiedObject_1 = require("../../../core/IdentifiedObject");
|
|
5
5
|
const utils_1 = require("../../../../util/utils");
|
|
6
6
|
const datatype_converter_1 = require("../../../../util/datatype-converter");
|
|
7
|
-
class AMPRIONErpProjectPhase extends
|
|
7
|
+
class AMPRIONErpProjectPhase extends IdentifiedObject_1.IdentifiedObject {
|
|
8
8
|
constructor(uuid, name, shortName, description) {
|
|
9
9
|
super(uuid, name, shortName, description);
|
|
10
10
|
}
|
|
@@ -40,36 +40,35 @@ class AMPRIONErpProjectPhase extends AMPRIONErpProjectStructure_1.AMPRIONErpProj
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
exports.AMPRIONErpProjectPhase = AMPRIONErpProjectPhase;
|
|
43
|
-
AMPRIONErpProjectPhase.sparqlQuery = `
|
|
44
|
-
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
45
|
-
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
46
|
-
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
47
|
-
PREFIX amp: <http://amprion.net/CIM/Extensions#>
|
|
48
|
-
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
49
|
-
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
50
|
-
|
|
51
|
-
SELECT (STRAFTER(str(?MRID), '#_') AS ?uuid)
|
|
52
|
-
?name ?shortName ?description
|
|
53
|
-
?startDate ?endDate ?projectPhaseType ?negotiations ?hexColor ?argbColor
|
|
54
|
-
(STRAFTER(str(?pUUID), '#_') AS ?projectUUID)
|
|
55
|
-
|
|
56
|
-
WHERE {
|
|
57
|
-
GRAPH <http://default/> {
|
|
58
|
-
OPTIONAL{?MRID rdf:type amp:AMPRIONErpProjectPhase .}
|
|
59
|
-
OPTIONAL{?MRID cim:IdentifiedObject.name ?name .}
|
|
60
|
-
OPTIONAL{?MRID entsoe:IdentifiedObject.shortName ?shortName .}
|
|
61
|
-
OPTIONAL{?MRID cim:IdentifiedObject.description ?description .}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.
|
|
65
|
-
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.
|
|
66
|
-
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.
|
|
67
|
-
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.
|
|
68
|
-
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
43
|
+
AMPRIONErpProjectPhase.sparqlQuery = `
|
|
44
|
+
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
45
|
+
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
46
|
+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
47
|
+
PREFIX amp: <http://amprion.net/CIM/Extensions#>
|
|
48
|
+
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
49
|
+
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
50
|
+
|
|
51
|
+
SELECT (STRAFTER(str(?MRID), '#_') AS ?uuid)
|
|
52
|
+
?name ?shortName ?description
|
|
53
|
+
?startDate ?endDate ?projectPhaseType ?negotiations ?hexColor ?argbColor
|
|
54
|
+
(STRAFTER(str(?pUUID), '#_') AS ?projectUUID)
|
|
55
|
+
|
|
56
|
+
WHERE {
|
|
57
|
+
GRAPH <http://default/> {
|
|
58
|
+
OPTIONAL{?MRID rdf:type amp:AMPRIONErpProjectPhase .}
|
|
59
|
+
OPTIONAL{?MRID cim:IdentifiedObject.name ?name .}
|
|
60
|
+
OPTIONAL{?MRID entsoe:IdentifiedObject.shortName ?shortName .}
|
|
61
|
+
OPTIONAL{?MRID cim:IdentifiedObject.description ?description .}
|
|
62
|
+
|
|
63
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.startDate ?startDate .}
|
|
64
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.endDate ?endDate .}
|
|
65
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.projectPhaseType ?projectPhaseType .}
|
|
66
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.negotiations ?negotiations .}
|
|
67
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.hexColor ?hexColor .}
|
|
68
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.argbColor ?argbColor .}
|
|
69
|
+
|
|
70
|
+
OPTIONAL{?MRID amp:AMPRIONErpProjectPhase.Project ?pUUID .}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
74
73
|
`;
|
|
75
74
|
//# sourceMappingURL=AMPRIONErpProjectPhase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AMPRIONErpProjectPhase.js","sourceRoot":"","sources":["../../../../../src/model/extensions/amprion/project/AMPRIONErpProjectPhase.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"AMPRIONErpProjectPhase.js","sourceRoot":"","sources":["../../../../../src/model/extensions/amprion/project/AMPRIONErpProjectPhase.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAIlE,kDAAkD;AAClD,4EAAgE;AAEhE,MAAa,sBAAuB,SAAQ,mCAAgB;IAa1D,YAAY,IAAa,EAAE,IAAa,EAAE,SAAkB,EAAE,WAAoB;QAChF,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;IAC5C,CAAC;IAGM,MAAM,CAAC,sBAAsB,CAAC,IAAS,EAAE,QAAsB;;QACpE,YAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,QAAQ,0CAAE,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;YAC9C,MAAM,QAAQ,GAAG,IAAI,sBAAsB,EAAE,CAAC;YAC9C,QAAQ,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;YAC5C,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC,EAAE;IACL,CAAC;IAEM,2BAA2B,CAAC,KAAU;QAC3C,KAAK,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,gBAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,gBAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC1C,IAAI,CAAC,gBAAgB,GAAG,gBAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY,GAAG,8BAAS,CAAC,gBAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,GAAG,gBAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,gBAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC9C,IAAI,CAAC,WAAW,GAAG,gBAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACpD,CAAC;IAEM,yBAAyB,CAAC,QAAsB;;QACrD,KAAK,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjE,MAAA,IAAI,CAAC,OAAO,0CAAE,eAAe,CAAC,IAAI,EAAE;IACtC,CAAC;IACM,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC3C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,OAAO,sBAAsB,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;SAClF;QACD,OAAO,sBAAsB,CAAC,WAAW,CAAC;IAC5C,CAAC;;AA/CH,wDAiFC;AAhCe,kCAAW,GAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BjC,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IdentifiedObject } from '../../../core/IdentifiedObject';
|
|
2
|
-
import { AMPRIONProjectPriorityKind } from './AMPRIONProjectPriorityKind';
|
|
3
2
|
import { AMPRIONErpProjectPhase } from './AMPRIONErpProjectPhase';
|
|
4
3
|
export declare abstract class AMPRIONErpProjectStructure extends IdentifiedObject {
|
|
5
|
-
priority:
|
|
4
|
+
priority: 1 | 2 | 3 | undefined;
|
|
6
5
|
accountablePerson: string;
|
|
7
6
|
accountableDepartment: string;
|
|
8
7
|
number: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AMPRIONErpProjectStructure = void 0;
|
|
4
4
|
const IdentifiedObject_1 = require("../../../core/IdentifiedObject");
|
|
5
|
-
const AMPRIONProjectPriorityKind_1 = require("./AMPRIONProjectPriorityKind");
|
|
6
5
|
const utils_1 = require("../../../../util/utils");
|
|
7
6
|
class AMPRIONErpProjectStructure extends IdentifiedObject_1.IdentifiedObject {
|
|
8
7
|
constructor(uuid, name, shortName, description) {
|
|
@@ -14,7 +13,7 @@ class AMPRIONErpProjectStructure extends IdentifiedObject_1.IdentifiedObject {
|
|
|
14
13
|
}
|
|
15
14
|
resolveAttributesFusekiJSON(value) {
|
|
16
15
|
super.resolveAttributesFusekiJSON(value);
|
|
17
|
-
this.priority =
|
|
16
|
+
this.priority = utils_1.getValue(value, 'priority');
|
|
18
17
|
this.accountablePerson = utils_1.getValue(value, 'accountablePerson');
|
|
19
18
|
this.accountableDepartment = utils_1.getValue(value, 'accountableDepartment');
|
|
20
19
|
this.number = utils_1.getValue(value, 'number');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AMPRIONErpProjectStructure.js","sourceRoot":"","sources":["../../../../../src/model/extensions/amprion/project/AMPRIONErpProjectStructure.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;
|
|
1
|
+
{"version":3,"file":"AMPRIONErpProjectStructure.js","sourceRoot":"","sources":["../../../../../src/model/extensions/amprion/project/AMPRIONErpProjectStructure.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAGlE,kDAAkD;AAElD,MAAsB,0BAA2B,SAAQ,mCAAgB;IAWvE,YAAsB,IAAa,EAAE,IAAa,EAAE,SAAkB,EAAE,WAAoB;QAC1F,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QAH5C,kBAAa,GAAwC,IAAI,GAAG,EAAE,CAAC;IAI/D,CAAC;IAED,eAAe,CAAC,KAA6B;QAC3C,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IAEM,2BAA2B,CAAC,KAAU;QAC3C,KAAK,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,gBAAQ,CAAC,KAAK,EAAE,UAAU,CAAqC,CAAC;QAChF,IAAI,CAAC,iBAAiB,GAAG,gBAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QAC9D,IAAI,CAAC,qBAAqB,GAAG,gBAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAC;QACtE,IAAI,CAAC,MAAM,GAAG,gBAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,gBAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,gBAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IACtD,CAAC;CACF;AA5BD,gEA4BC"}
|