@nsshunt/stsdatamanagement 1.18.170 → 1.18.172
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/db-scripts/builddb.sql +26 -0
- package/package.json +12 -14
package/db-scripts/builddb.sql
CHANGED
|
@@ -58,6 +58,9 @@ CREATE TABLE stsresfhirlink (
|
|
|
58
58
|
COMPOSITE_HASH_EXACT BIGINT
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
+
CREATE INDEX idx_stsresfhirlink_type_id
|
|
62
|
+
ON stsresfhirlink (RES_TYPE, RES_ID);
|
|
63
|
+
|
|
61
64
|
CREATE INDEX idx_stsresfhirlink_identity
|
|
62
65
|
ON stsresfhirlink (SP_NAME, RES_TYPE);
|
|
63
66
|
|
|
@@ -91,6 +94,9 @@ CREATE TABLE stsresfhirstring (
|
|
|
91
94
|
COMPOSITE_HASH_EXACT BIGINT
|
|
92
95
|
);
|
|
93
96
|
|
|
97
|
+
CREATE INDEX idx_stsresfhirstring_type_id
|
|
98
|
+
ON stsresfhirstring (RES_TYPE, RES_ID);
|
|
99
|
+
|
|
94
100
|
CREATE INDEX idx_stsresfhirstring_hash_identity
|
|
95
101
|
ON stsresfhirstring (HASH_IDENTITY);
|
|
96
102
|
|
|
@@ -131,6 +137,9 @@ CREATE TABLE stsresfhirtoken (
|
|
|
131
137
|
COMPOSITE_HASH_EXACT BIGINT
|
|
132
138
|
);
|
|
133
139
|
|
|
140
|
+
CREATE INDEX idx_stsresfhirtoken_type_id
|
|
141
|
+
ON stsresfhirtoken (RES_TYPE, RES_ID);
|
|
142
|
+
|
|
134
143
|
CREATE INDEX idx_stsresfhirtoken_hash_identity
|
|
135
144
|
ON stsresfhirtoken (HASH_IDENTITY);
|
|
136
145
|
|
|
@@ -174,6 +183,9 @@ CREATE TABLE stsresfhirquantity (
|
|
|
174
183
|
COMPOSITE_HASH_EXACT BIGINT
|
|
175
184
|
);
|
|
176
185
|
|
|
186
|
+
CREATE INDEX idx_stsresfhirquantity_type_id
|
|
187
|
+
ON stsresfhirquantity (RES_TYPE, RES_ID);
|
|
188
|
+
|
|
177
189
|
CREATE INDEX idx_stsresfhirquantity_hash_identity
|
|
178
190
|
ON stsresfhirquantity (HASH_IDENTITY);
|
|
179
191
|
|
|
@@ -213,6 +225,9 @@ CREATE TABLE stsresfhirnumber (
|
|
|
213
225
|
COMPOSITE_HASH_EXACT BIGINT
|
|
214
226
|
);
|
|
215
227
|
|
|
228
|
+
CREATE INDEX idx_stsresfhirnumber_type_id
|
|
229
|
+
ON stsresfhirnumber (RES_TYPE, RES_ID);
|
|
230
|
+
|
|
216
231
|
CREATE INDEX idx_stsresfhirnumber_hash_identity
|
|
217
232
|
ON stsresfhirnumber (HASH_IDENTITY);
|
|
218
233
|
|
|
@@ -244,6 +259,9 @@ CREATE TABLE stsresfhiruri (
|
|
|
244
259
|
CREATE INDEX idx_stsresfhiruri_hash_identity
|
|
245
260
|
ON stsresfhiruri (HASH_IDENTITY);
|
|
246
261
|
|
|
262
|
+
CREATE INDEX idx_stsresfhiruri_type_id
|
|
263
|
+
ON stsresfhiruri (RES_TYPE, RES_ID);
|
|
264
|
+
|
|
247
265
|
CREATE INDEX idx_stsresfhiruri_hash_uri
|
|
248
266
|
ON stsresfhiruri (HASH_URI, SP_URI)
|
|
249
267
|
WHERE SP_URI IS NOT NULL;
|
|
@@ -274,6 +292,8 @@ CREATE TABLE stsresfhirdate (
|
|
|
274
292
|
COMPOSITE TEXT,
|
|
275
293
|
COMPOSITE_HASH_EXACT BIGINT
|
|
276
294
|
);
|
|
295
|
+
CREATE INDEX idx_stsresfhirdate_type_id
|
|
296
|
+
ON stsresfhirdate (RES_TYPE, RES_ID);
|
|
277
297
|
|
|
278
298
|
CREATE INDEX idx_stsresfhirdate_hash_identity
|
|
279
299
|
ON stsresfhirdate (HASH_IDENTITY);
|
|
@@ -310,6 +330,9 @@ CREATE TABLE stsresfhircoords (
|
|
|
310
330
|
CREATE INDEX idx_stsresfhircoords_hash_identity
|
|
311
331
|
ON stsresfhircoords (HASH_IDENTITY);
|
|
312
332
|
|
|
333
|
+
CREATE INDEX idx_stsresfhircoords_type_id
|
|
334
|
+
ON stsresfhircoords (RES_TYPE, RES_ID);
|
|
335
|
+
|
|
313
336
|
CREATE INDEX idx_stsresfhircoords_hash_identity_lat_long
|
|
314
337
|
ON stsresfhircoords (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE)
|
|
315
338
|
WHERE SP_LATITUDE IS NOT NULL AND SP_LONGITUDE IS NOT NULL;
|
|
@@ -334,6 +357,9 @@ CREATE TABLE stsresfhircombo (
|
|
|
334
357
|
UNIQUE (RES_ID, SP_NAME, IDX_STRING)
|
|
335
358
|
);
|
|
336
359
|
|
|
360
|
+
CREATE INDEX idx_stsresfhircombo_type_id
|
|
361
|
+
ON stsresfhircombo (RES_TYPE, RES_ID);
|
|
362
|
+
|
|
337
363
|
CREATE INDEX idx_stsresfhircombo_hash_identity
|
|
338
364
|
ON stsresfhircombo (HASH_IDENTITY);
|
|
339
365
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsshunt/stsdatamanagement",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.172",
|
|
4
4
|
"description": "STS Data Management Modules, Utilities and Services",
|
|
5
5
|
"main": "./dist/dbaccess.js",
|
|
6
6
|
"types": "./types/dbaccess.d.ts",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
16
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
17
|
-
"@nsshunt/stsconfig": "^1.27.
|
|
18
|
-
"@nsshunt/stsutils": "^1.19.
|
|
15
|
+
"@aws-sdk/client-dynamodb": "^3.1010.0",
|
|
16
|
+
"@aws-sdk/lib-dynamodb": "^3.1010.0",
|
|
17
|
+
"@nsshunt/stsconfig": "^1.27.54",
|
|
18
|
+
"@nsshunt/stsutils": "^1.19.90",
|
|
19
19
|
"axios": "^1.13.6",
|
|
20
20
|
"chalk": "^4.1.2",
|
|
21
21
|
"cli-progress": "^3.12.0",
|
|
@@ -24,27 +24,25 @@
|
|
|
24
24
|
"pg": "^8.20.0",
|
|
25
25
|
"pg-copy-streams": "^7.0.0",
|
|
26
26
|
"prompts": "^2.4.2",
|
|
27
|
-
"systeminformation": "^5.31.
|
|
27
|
+
"systeminformation": "^5.31.4",
|
|
28
28
|
"tiny-emitter": "^2.1.0",
|
|
29
29
|
"uuid": "^13.0.0",
|
|
30
30
|
"winston": "^3.19.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/cli-progress": "^3.11.6",
|
|
34
|
-
"@types/node": "^25.
|
|
34
|
+
"@types/node": "^25.5.0",
|
|
35
35
|
"@types/pg": "^8.18.0",
|
|
36
36
|
"@types/pg-copy-streams": "^1.2.5",
|
|
37
37
|
"@types/prompts": "^2.4.9",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
39
|
-
"@typescript-eslint/parser": "^8.
|
|
40
|
-
"eslint": "^
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
39
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
40
|
+
"eslint": "^10.0.3",
|
|
41
41
|
"globals": "^17.4.0",
|
|
42
|
-
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
43
|
-
"rollup-plugin-visualizer": "^6.0.5",
|
|
44
42
|
"testcontainers": "^11.12.0",
|
|
45
43
|
"typescript": "^5.9.3",
|
|
46
|
-
"vite": "^
|
|
47
|
-
"vitest": "^4.0
|
|
44
|
+
"vite": "^8.0.0",
|
|
45
|
+
"vitest": "^4.1.0"
|
|
48
46
|
},
|
|
49
47
|
"scripts": {
|
|
50
48
|
"lint": "eslint .",
|