@enervance/insight-cim-model 1.0.12 → 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.
@@ -6,9 +6,9 @@ class ConductingEquipmentDao extends EquipmentDao_1.EquipmentDao {
6
6
  buildConductingEquipmentInsert() {
7
7
  return {
8
8
  sql: `
9
- insert into cim.conducting_equipment (uuid)
9
+ insert into cim.conducting_equipment (mrid)
10
10
  values (?)
11
- on conflict (uuid) do nothing
11
+ on conflict (mrid) do nothing
12
12
  `,
13
13
  params: [this.cimObject.getUUID()]
14
14
  };
@@ -6,9 +6,9 @@ class ConnectivityNodeContainerDao extends PowerSystemResourceDao_1.PowerSystemR
6
6
  buildConnectivityNodeContainerInsert() {
7
7
  return {
8
8
  sql: `
9
- insert into cim.connectivity_node_container (uuid)
9
+ insert into cim.connectivity_node_container (mrid)
10
10
  values (?)
11
- on conflict (uuid) do nothing
11
+ on conflict (mrid) do nothing
12
12
  `,
13
13
  params: [this.cimObject.getUUID()]
14
14
  };
@@ -6,9 +6,9 @@ class EquipmentContainerDao extends ConnectivityNodeContainerDao_1.ConnectivityN
6
6
  buildEquipmentContainerInsert() {
7
7
  return {
8
8
  sql: `
9
- insert into cim.equipment_container (uuid)
9
+ insert into cim.equipment_container (mrid)
10
10
  values (?)
11
- on conflict (uuid) do nothing
11
+ on conflict (mrid) do nothing
12
12
  `,
13
13
  params: [this.cimObject.getUUID()]
14
14
  };
@@ -7,11 +7,11 @@ class EquipmentDao extends PowerSystemResourceDao_1.PowerSystemResourceDao {
7
7
  return {
8
8
  sql: `
9
9
  insert into cim.equipment (
10
- uuid,
11
- equipment_container_uuid
10
+ mrid,
11
+ equipment_container_mrid
12
12
  ) values (?, ?)
13
- on conflict (uuid) do update
14
- set equipment_container_uuid = excluded.equipment_container_uuid
13
+ on conflict (mrid) do update
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
  }));
@@ -9,11 +9,11 @@ class FeederDao extends EquipmentContainerDao_1.EquipmentContainerDao {
9
9
  {
10
10
  sql: `
11
11
  insert into cim.feeder (
12
- uuid,
13
- normal_energizing_substation_uuid
12
+ mrid,
13
+ normal_energizing_substation_mrid
14
14
  ) values (?, ?)
15
- on conflict (uuid) do update
16
- set normal_energizing_substation_uuid = excluded.normal_energizing_substation_uuid
15
+ on conflict (mrid) do update
16
+ set normal_energizing_substation_mrid = excluded.normal_energizing_substation_mrid
17
17
  `,
18
18
  params: [
19
19
  this.cimObject.getUUID(),
@@ -7,11 +7,11 @@ class PowerSystemResourceDao extends IdentifiedObjectDao_1.IdentifiedObjectDao {
7
7
  return {
8
8
  sql: `
9
9
  insert into cim.power_system_resource (
10
- uuid,
11
- psr_type_uuid
10
+ mrid,
11
+ psr_type_mrid
12
12
  ) values (?, ?)
13
- on conflict (uuid) do update
14
- set psr_type_uuid = excluded.psr_type_uuid
13
+ on conflict (mrid) do update
14
+ set psr_type_mrid = excluded.psr_type_mrid
15
15
  `,
16
16
  params: [
17
17
  this.cimObject.getUUID(),
@@ -8,9 +8,9 @@ class PsrTypeDao extends IdentifiedObjectDao_1.IdentifiedObjectDao {
8
8
  this.buildIdentifiedObjectInsert(),
9
9
  {
10
10
  sql: `
11
- insert into cim.psr_type (uuid)
11
+ insert into cim.psr_type (mrid)
12
12
  values (?)
13
- on conflict (uuid) do nothing
13
+ on conflict (mrid) do nothing
14
14
  `,
15
15
  params: [this.cimObject.getUUID()]
16
16
  }
@@ -8,9 +8,9 @@ class SubGeographicalRegionDao extends IdentifiedObjectDao_1.IdentifiedObjectDao
8
8
  this.buildIdentifiedObjectInsert(),
9
9
  {
10
10
  sql: `
11
- insert into cim.sub_geographical_region (uuid)
11
+ insert into cim.sub_geographical_region (mrid)
12
12
  values (?)
13
- on conflict (uuid) do nothing
13
+ on conflict (mrid) do nothing
14
14
  `,
15
15
  params: [this.cimObject.getUUID()]
16
16
  }
@@ -9,12 +9,12 @@ class SubstationDao extends EquipmentContainerDao_1.EquipmentContainerDao {
9
9
  {
10
10
  sql: `
11
11
  insert into cim.substation (
12
- uuid,
12
+ mrid,
13
13
  number,
14
- sub_geographical_region_uuid
14
+ region_mrid
15
15
  ) values (?, ?)
16
- on conflict (uuid) do update
17
- set sub_geographical_region_uuid = excluded.sub_geographical_region_uuid
16
+ on conflict (mrid) do update
17
+ set region_mrid = excluded.region_mrid
18
18
  `,
19
19
  params: [
20
20
  this.cimObject.getUUID(),
@@ -9,10 +9,10 @@ class WNFeederDao extends FeederDao_1.FeederDao {
9
9
  {
10
10
  sql: `
11
11
  insert into cim.wnfeeder (
12
- uuid,
12
+ mrid,
13
13
  number
14
14
  ) values (?, ?)
15
- on conflict (uuid) do update
15
+ on conflict (mrid) do update
16
16
  set number = excluded.number
17
17
  `,
18
18
  params: [
@@ -9,13 +9,13 @@ class ACLineSegmentDao extends ConductingEquipmentDao_1.ConductingEquipmentDao {
9
9
  {
10
10
  sql: `
11
11
  insert into cim.ac_line_segment (
12
- uuid,
12
+ mrid,
13
13
  length,
14
14
  r,
15
15
  x,
16
16
  bch
17
17
  ) values (?, ?, ?, ?, ?)
18
- on conflict (uuid) do update
18
+ on conflict (mrid) do update
19
19
  set length = excluded.length,
20
20
  r = excluded.r,
21
21
  x = excluded.x,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enervance/insight-cim-model",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "CIM data model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",