@nsshunt/stsdatamanagement 1.18.193 → 1.18.195

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.
@@ -807,10 +807,10 @@ ALTER FUNCTION public.delete_stsresource_latest(character varying, character var
807
807
  CREATE TABLE public.stsentity
808
808
  (
809
809
  oid bigint NOT NULL DEFAULT nextval('stsentity_oid_seq'::regclass),
810
- resourceoid integer NOT NULL,
810
+ resourceoid bigint NOT NULL,
811
811
  entname character varying(128) COLLATE pg_catalog."default" NOT NULL,
812
812
  entvalue character varying(32768) COLLATE pg_catalog."default",
813
- envalue_jsonb jsonb,
813
+ entvalue_jsonb jsonb,
814
814
  vnum bigint NOT NULL,
815
815
  validfrom timestamp without time zone NOT NULL,
816
816
  validto timestamp without time zone,
@@ -867,10 +867,10 @@ AS $BODY$
867
867
  declare
868
868
  resoid bigint;
869
869
  __inserted_oid bigint;
870
- _envalue_jsonb JSONB;
870
+ _entvalue_jsonb JSONB;
871
871
  BEGIN
872
872
  begin
873
- _envalue_jsonb := _entvalue::jsonb;
873
+ _entvalue_jsonb := _entvalue::jsonb;
874
874
  exception
875
875
  when others then
876
876
  raise exception 'Invalid JSON string: %', _entvalue;
@@ -888,8 +888,8 @@ BEGIN
888
888
  -- RAISE EXCEPTION 'resname already exists within stsresource %', now();
889
889
  RAISE 'Duplicate entname within stsresource: %', _resname USING ERRCODE = 'unique_violation';
890
890
  else
891
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
892
- values (resoid, _entname, _entvalue, _envalue_jsonb, 1, 1, _dbactionuser, now())
891
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
892
+ values (resoid, _entname, _entvalue, _entvalue_jsonb, 1, 1, _dbactionuser, now())
893
893
  returning oid into __inserted_oid;
894
894
 
895
895
  return query
@@ -920,10 +920,10 @@ AS $BODY$
920
920
  declare
921
921
  resoid bigint;
922
922
  __inserted_oid bigint;
923
- _envalue_jsonb JSONB;
923
+ _entvalue_jsonb JSONB;
924
924
  BEGIN
925
925
  begin
926
- _envalue_jsonb := _entvalue::jsonb;
926
+ _entvalue_jsonb := _entvalue::jsonb;
927
927
  exception
928
928
  when others then
929
929
  raise exception 'Invalid JSON string: %', _entvalue;
@@ -941,8 +941,8 @@ BEGIN
941
941
  -- RAISE EXCEPTION 'resname already exists within stsresource %', now();
942
942
  RAISE 'Duplicate entname within stsresource: %', _resname USING ERRCODE = 'unique_violation';
943
943
  else
944
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
945
- values (resoid, _entname, _entvalue, _envalue_jsonb, 1, 1, _dbactionuser, now())
944
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
945
+ values (resoid, _entname, _entvalue, _entvalue_jsonb, 1, 1, _dbactionuser, now())
946
946
  returning oid into __inserted_oid;
947
947
 
948
948
  return query
@@ -980,10 +980,10 @@ declare
980
980
  resoid bigint;
981
981
  entoid bigint;
982
982
  __inserted_oid bigint;
983
- _envalue_jsonb JSONB;
983
+ _entvalue_jsonb JSONB;
984
984
  BEGIN
985
985
  begin
986
- _envalue_jsonb := _entvalue::jsonb;
986
+ _entvalue_jsonb := _entvalue::jsonb;
987
987
  exception
988
988
  when others then
989
989
  raise exception 'Invalid JSON string: %', _entvalue;
@@ -1016,8 +1016,8 @@ BEGIN
1016
1016
 
1017
1017
  update stsentity set validto = _now where oid = entoid;
1018
1018
 
1019
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1020
- values (resoid, _entname, _entvalue, _envalue_jsonb, _entvnum+1, 2, _dbactionuser, _now)
1019
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1020
+ values (resoid, _entname, _entvalue, _entvalue_jsonb, _entvnum+1, 2, _dbactionuser, _now)
1021
1021
  returning oid into __inserted_oid;
1022
1022
 
1023
1023
  return query
@@ -1051,10 +1051,10 @@ declare
1051
1051
  entoid bigint;
1052
1052
  __inserted_oid bigint;
1053
1053
  _entvnum integer;
1054
- _envalue_jsonb JSONB;
1054
+ _entvalue_jsonb JSONB;
1055
1055
  BEGIN
1056
1056
  begin
1057
- _envalue_jsonb := _entvalue::jsonb;
1057
+ _entvalue_jsonb := _entvalue::jsonb;
1058
1058
  exception
1059
1059
  when others then
1060
1060
  raise exception 'Invalid JSON string: %', _entvalue;
@@ -1094,8 +1094,8 @@ BEGIN
1094
1094
 
1095
1095
  update stsentity set validto = _now where oid = entoid;
1096
1096
 
1097
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1098
- values (resoid, _entname, _entvalue, _envalue_jsonb, _entvnum+1, 2, _dbactionuser, _now)
1097
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1098
+ values (resoid, _entname, _entvalue, _entvalue_jsonb, _entvnum+1, 2, _dbactionuser, _now)
1099
1099
  returning oid into __inserted_oid;
1100
1100
 
1101
1101
  return query
@@ -1158,7 +1158,7 @@ BEGIN
1158
1158
 
1159
1159
  update stsentity set validto = _now where oid = entoid;
1160
1160
 
1161
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1161
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1162
1162
  (select resoid, e.entname, e.entvalue, e.entvalue::jsonb, _entvnum+1, 3, _dbactionuser, _now
1163
1163
  from stsentity e where e.oid = entoid)
1164
1164
  returning oid into __inserted_oid;
@@ -1229,7 +1229,7 @@ BEGIN
1229
1229
 
1230
1230
  update stsentity set validto = _now where oid = entoid;
1231
1231
 
1232
- insert into stsentity(resourceoid, entname, entvalue, envalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1232
+ insert into stsentity(resourceoid, entname, entvalue, entvalue_jsonb, vnum, dbaction, dbactionuser, validfrom)
1233
1233
  (select resoid, e.entname, e.entvalue, e.entvalue::jsonb, _entvnum+1, 3, _dbactionuser, _now
1234
1234
  from stsentity e where e.oid = entoid)
1235
1235
  returning oid into __inserted_oid;
@@ -430,7 +430,7 @@ CREATE TABLE public.stsentity
430
430
  resourceoid integer NOT NULL,
431
431
  entname character varying(128) COLLATE pg_catalog."default" NOT NULL,
432
432
  entvalue character varying(32768) COLLATE pg_catalog."default",
433
- envalue_jsonb jsonb,
433
+ entvalue_jsonb jsonb,
434
434
  vnum bigint NOT NULL,
435
435
  validfrom timestamp without time zone NOT NULL,
436
436
  validto timestamp without time zone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsdatamanagement",
3
- "version": "1.18.193",
3
+ "version": "1.18.195",
4
4
  "description": "STS Data Management Modules, Utilities and Services",
5
5
  "type": "module",
6
6
  "main": "./dist/dbaccess.js",