@enervance/insight-cim-model 1.0.11 → 1.0.12

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.
@@ -14,14 +14,14 @@ class IdentifiedObjectDao {
14
14
  return {
15
15
  sql: `
16
16
  insert into cim.identified_object (mrid, name, short_name, description, power_grid_id)
17
- values (?, ?, ?, ?, ?)) on conflict (mrid) do
18
- update set name = excluded.name, short_name = excluded.short_name, description = excluded.description `,
17
+ values (?, ?, ?, ?, ?) on conflict (mrid) do
18
+ update set name = excluded.name, short_name = excluded.short_name, description = excluded.description, power_grid_id = excluded.power_grid_id `,
19
19
  params: [
20
20
  this.cimObject.getUUID(),
21
21
  this.cimObject.name ?? null,
22
22
  this.cimObject.shortName ?? null,
23
23
  this.cimObject.description ?? null,
24
- this.powerGridId
24
+ this.powerGridId ?? null
25
25
  ]
26
26
  };
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IdentifiedObjectDao.js","sourceRoot":"","sources":["../../../src/database/core/IdentifiedObjectDao.ts"],"names":[],"mappings":";;;AAGA,MAAa,mBAAmB;IAMF;IAJ5B,sBAAsB;IACtB,kDAAkD;IAClD,WAAW,CAAS;IAEpB,YAA4B,SAAY,EAAE,WAAmB;QAAjC,cAAS,GAAT,SAAS,CAAG;QACtC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAGS,2BAA2B;QACnC,OAAO;YACL,GAAG,EAAE;;;kHAGuG;YAC5G,MAAM,EAAE;gBACN,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI;gBAC3B,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,IAAI;gBAChC,IAAI,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI;gBAClC,IAAI,CAAC,WAAW;aACjB;SACF,CAAC;IACJ,CAAC;CACF;AA1BD,kDA0BC"}
1
+ {"version":3,"file":"IdentifiedObjectDao.js","sourceRoot":"","sources":["../../../src/database/core/IdentifiedObjectDao.ts"],"names":[],"mappings":";;;AAGA,MAAa,mBAAmB;IAMF;IAJ5B,sBAAsB;IACtB,kDAAkD;IAClD,WAAW,CAAS;IAEpB,YAA4B,SAAY,EAAE,WAAmB;QAAjC,cAAS,GAAT,SAAS,CAAG;QACtC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAGS,2BAA2B;QACnC,OAAO;YACL,GAAG,EAAE;;;2JAGgJ;YACrJ,MAAM,EAAE;gBACN,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI;gBAC3B,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,IAAI;gBAChC,IAAI,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI;gBAClC,IAAI,CAAC,WAAW,IAAI,IAAI;aACzB;SACF,CAAC;IACJ,CAAC;CACF;AA1BD,kDA0BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enervance/insight-cim-model",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "CIM data model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",