@enervance/insight-cim-model 1.0.13 → 1.0.14

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.
@@ -8,10 +8,10 @@ class EquipmentDao extends PowerSystemResourceDao_1.PowerSystemResourceDao {
8
8
  sql: `
9
9
  insert into cim.equipment (
10
10
  mrid,
11
- equipment_container_uuid
11
+ equipment_container_mrid
12
12
  ) values (?, ?)
13
13
  on conflict (mrid) do update
14
- set equipment_container_uuid = excluded.equipment_container_uuid
14
+ set equipment_container_mrid = excluded.equipment_container_mrid
15
15
  `,
16
16
  params: [
17
17
  this.cimObject.getUUID(),
@@ -23,10 +23,10 @@ class EquipmentDao extends PowerSystemResourceDao_1.PowerSystemResourceDao {
23
23
  return [...this.cimObject.additionalEquipmentContainer.values()].map((container) => ({
24
24
  sql: `
25
25
  insert into cim.equipment_additional_equipment_container (
26
- equipment_uuid,
27
- equipment_container_uuid
26
+ equipment_mrid,
27
+ equipment_container_mrid
28
28
  ) values (?, ?)
29
- on conflict (equipment_uuid, equipment_container_uuid) do nothing
29
+ on conflict (equipment_mrid, equipment_container_mrid) do nothing
30
30
  `,
31
31
  params: [this.cimObject.getUUID(), container.getUUID()]
32
32
  }));
@@ -10,10 +10,10 @@ class FeederDao extends EquipmentContainerDao_1.EquipmentContainerDao {
10
10
  sql: `
11
11
  insert into cim.feeder (
12
12
  mrid,
13
- normal_energizing_substation_uuid
13
+ normal_energizing_substation_mrid
14
14
  ) values (?, ?)
15
15
  on conflict (mrid) do update
16
- set normal_energizing_substation_uuid = excluded.normal_energizing_substation_uuid
16
+ set normal_energizing_substation_mrid = excluded.normal_energizing_substation_mrid
17
17
  `,
18
18
  params: [
19
19
  this.cimObject.getUUID(),
@@ -8,10 +8,10 @@ class PowerSystemResourceDao extends IdentifiedObjectDao_1.IdentifiedObjectDao {
8
8
  sql: `
9
9
  insert into cim.power_system_resource (
10
10
  mrid,
11
- psr_type_uuid
11
+ psr_type_mrid
12
12
  ) values (?, ?)
13
13
  on conflict (mrid) do update
14
- set psr_type_uuid = excluded.psr_type_uuid
14
+ set psr_type_mrid = excluded.psr_type_mrid
15
15
  `,
16
16
  params: [
17
17
  this.cimObject.getUUID(),
@@ -11,10 +11,10 @@ class SubstationDao extends EquipmentContainerDao_1.EquipmentContainerDao {
11
11
  insert into cim.substation (
12
12
  mrid,
13
13
  number,
14
- sub_geographical_region_uuid
14
+ region_mrid
15
15
  ) values (?, ?)
16
16
  on conflict (mrid) do update
17
- set sub_geographical_region_uuid = excluded.sub_geographical_region_uuid
17
+ set region_mrid = excluded.region_mrid
18
18
  `,
19
19
  params: [
20
20
  this.cimObject.getUUID(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enervance/insight-cim-model",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "CIM data model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",