@opengis/fastify-table 2.0.112 → 2.0.114

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.
Files changed (54) hide show
  1. package/dist/helper.d.ts +8 -0
  2. package/dist/helper.d.ts.map +1 -0
  3. package/dist/helper.js +34 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +6 -6
  6. package/dist/module/core/cls/constraint_action.json +10 -0
  7. package/dist/module/core/cls/constraint_matchtype.json +6 -0
  8. package/dist/module/core/cls/constraint_type.json +14 -0
  9. package/dist/module/core/cls/constraint_type_full.json +18 -0
  10. package/dist/module/core/cls/constraint_type_table.json +18 -0
  11. package/dist/module/core/cls/core.user_type.json +14 -0
  12. package/dist/module/core/pt/schemaItem.pt.hbs +18 -0
  13. package/dist/module/core/select/core.user_mentioned.sql +2 -0
  14. package/dist/script/dump.d.ts +2 -0
  15. package/dist/script/dump.d.ts.map +1 -0
  16. package/dist/script/dump.js +111 -130
  17. package/dist/script/dump.ts +213 -0
  18. package/dist/script/migrate.d.ts +2 -0
  19. package/dist/script/migrate.d.ts.map +1 -0
  20. package/dist/script/migrate.js +24 -25
  21. package/dist/script/migrate.ts +31 -0
  22. package/dist/server/plugins/sqlite/funcs/getSqlite.d.ts.map +1 -1
  23. package/dist/server/plugins/sqlite/funcs/getSqlite.js +1 -2
  24. package/dist/server/plugins/sqlite/sqliteClients.d.ts.map +1 -1
  25. package/dist/server/plugins/sqlite/sqliteClients.js +1 -2
  26. package/dist/server/plugins/table/funcs/getColumnCLS.d.ts.map +1 -1
  27. package/dist/server/plugins/table/funcs/getColumnCLS.js +18 -7
  28. package/dist/server/plugins/util/funcs/eventStream.d.ts +4 -1
  29. package/dist/server/plugins/util/funcs/eventStream.d.ts.map +1 -1
  30. package/dist/server/routes/table/controllers/dataInfo.d.ts +8 -1
  31. package/dist/server/routes/table/controllers/dataInfo.d.ts.map +1 -1
  32. package/dist/server/routes/table/controllers/dataInfo.js +7 -5
  33. package/dist/server/routes/table/functions/getData.js +1 -1
  34. package/dist/server/types/core.d.ts.map +1 -1
  35. package/dist/server/types/core.js +0 -1
  36. package/dist/test.setup.js +0 -1
  37. package/dist/utils.d.ts +2 -0
  38. package/dist/utils.d.ts.map +1 -1
  39. package/dist/utils.js +3 -0
  40. package/package.json +7 -4
  41. package/dist/log/migration/dist-geoname-cls.json +0 -1
  42. package/dist/log/migration/dist-geoname-cls.sql +0 -0
  43. package/dist/server/plugins/upload/finishUpload.d.ts +0 -9
  44. package/dist/server/plugins/upload/finishUpload.d.ts.map +0 -1
  45. package/dist/server/plugins/upload/finishUpload.js +0 -33
  46. package/dist/server/plugins/util/funcs/routeOptions.d.ts +0 -3
  47. package/dist/server/plugins/util/funcs/routeOptions.d.ts.map +0 -1
  48. package/dist/server/plugins/util/funcs/routeOptions.js +0 -2
  49. package/dist/server/routes/auth/controllers/2factor/generate.d.ts +0 -19
  50. package/dist/server/routes/auth/controllers/2factor/generate.d.ts.map +0 -1
  51. package/dist/server/routes/auth/controllers/2factor/generate.js +0 -38
  52. package/dist/server/routes/auth/controllers/2factor/toggle.d.ts +0 -18
  53. package/dist/server/routes/auth/controllers/2factor/toggle.d.ts.map +0 -1
  54. package/dist/server/routes/auth/controllers/2factor/toggle.js +0 -39
@@ -0,0 +1,213 @@
1
+ // Вигрузка схеми бд
2
+ // Usage examples:
3
+ // bun .\script\dump.js --table=bpmn.tasks
4
+ // bun .\script\dump.js --schema=bpmn
5
+
6
+ import { type ExtendedPG } from "../server/types/core.js";
7
+
8
+ import path from "node:path";
9
+ import { existsSync } from "node:fs";
10
+ import { mkdir, writeFile, rm } from "node:fs/promises";
11
+
12
+ import { config, handlebars, pgClients, getTemplate } from "../utils.js";
13
+
14
+ import { build, teardown } from "../helper.js";
15
+
16
+ if (import.meta.main) {
17
+ dumpMigrateSQL();
18
+ }
19
+
20
+ const debug = false;
21
+
22
+ export default async function dumpMigrateSQL() {
23
+ const app = build();
24
+ app.addHook("onClose", async () => teardown());
25
+
26
+ try {
27
+ // const { database, host, port, user, password } = config.pg;
28
+
29
+ if (!config.pg) {
30
+ console.error("empty config.pg, skip...");
31
+ return null;
32
+ }
33
+
34
+ if (!Bun.argv[2]) {
35
+ console.error("missing schema / table name, skip...");
36
+ }
37
+
38
+ const [key, value] = Bun.argv[2]?.substring?.(2)?.split?.("=") || [];
39
+ const tableName = key === "table" ? value : null;
40
+ const schemaName =
41
+ key === "schema" ? value : value?.split?.(".")?.shift?.();
42
+
43
+ const pg = pgClients.client;
44
+ // const pg = await getPGAsync({ database, host, port, user, password });
45
+ await pg.query(`select 1`);
46
+
47
+ const schemaExists = await pg
48
+ .query(
49
+ `SELECT 1 FROM information_schema.schemata WHERE schema_name = $1`,
50
+ [schemaName]
51
+ )
52
+ .then((el: any) => el.rowCount);
53
+
54
+ if (!schemaExists) {
55
+ console.error("Вказаної схеми не існує", config.pg?.database);
56
+ return null;
57
+ }
58
+
59
+ // if (tableName && !pg.pk?.[tableName]) {
60
+ // console.error('Вказаної таблиці не існує', config.pg?.database);
61
+ // return null;
62
+ // }
63
+
64
+ const dump = await schemaItem({
65
+ pg,
66
+ table: tableName,
67
+ schema: schemaName,
68
+ debug,
69
+ });
70
+
71
+ if (debug) {
72
+ console.log(dump);
73
+ return null;
74
+ }
75
+
76
+ const filepath = await saveFile(dump, tableName || schemaName || "");
77
+ console.log("success", filepath);
78
+ } catch (err) {
79
+ console.error(err);
80
+ } finally {
81
+ app.close();
82
+ }
83
+ }
84
+
85
+ async function saveFile(data: any, filename: string) {
86
+ if (!data) throw new Error(`no data - ${filename}`);
87
+
88
+ const filepath = path.join("log/dump", `${filename}.sql`);
89
+ const fileExists = existsSync(filepath);
90
+
91
+ // overwrite old file
92
+ if (fileExists) {
93
+ await rm(filepath, { force: true, recursive: true });
94
+ }
95
+
96
+ await mkdir(path.dirname(filepath), { recursive: true });
97
+ await writeFile(filepath, Buffer.from(data, "utf-8"));
98
+
99
+ return filepath;
100
+ }
101
+
102
+ async function schemaItem({
103
+ pg,
104
+ table,
105
+ schema,
106
+ debug,
107
+ }: {
108
+ pg: ExtendedPG;
109
+ table?: string | null;
110
+ schema?: string;
111
+ debug?: boolean;
112
+ }) {
113
+ if (!schema && !table) return new Error("param schema is required");
114
+
115
+ const { rows: schemaInfo } =
116
+ await pg.query(`select c.oid,relname,nspname,obj_description(c.oid) as description,
117
+ (
118
+ select json_agg(row_to_json(q))
119
+ from (
120
+ select
121
+ column_name,
122
+ case
123
+ when data_type='USER-DEFINED' AND udt_name='geometry' THEN 'geometry'
124
+ when data_type='ARRAY' AND udt_name='_text' THEN 'text[]'
125
+ when data_type='ARRAY' AND udt_name='_int4' THEN 'integer[]'
126
+ else data_type
127
+ end as data_type,
128
+ ordinal_position,
129
+ column_default,
130
+ is_nullable,
131
+ case
132
+ when column_name='uid' then 'ідентифікатор автора запису в БД'
133
+ when column_name='cdate' then 'Дата створення запису в БД'
134
+ when column_name='editor_id' then 'Ідентифікатор автора, який останій вніс зміни в запис'
135
+ when column_name='editor_date' then 'Час останії зміни в записі'
136
+ when column_name='files' then 'Системна колонка'
137
+ when column_name='doc_status' then 'Статус документа'
138
+ when column_name='reg_status' then 'Статус реєстрації'
139
+ when column_name='obj_version' then 'Версія запису'
140
+ else col_description(a.attrelid,ordinal_position)
141
+ end as description
142
+ from information_schema.columns col
143
+ LEFT JOIN pg_attribute a ON col.column_name=a.attname and c.oid = a.attrelid
144
+ where col.table_schema=nspname and col.table_name=relname
145
+ )q
146
+ ) as columns
147
+ from pg_class c
148
+ LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
149
+ where ${
150
+ table ? `nspname||'.'||relname='${table}'` : `'${schema}'=nspname`
151
+ } and relam=2
152
+ order by nspname,relname`);
153
+
154
+ if (!schemaInfo?.length) throw new Error("invalid params");
155
+
156
+ const { rows: constraints } =
157
+ await pg.query(`select con.conrelid::regclass as constraint_table, a.column_name,
158
+ con.conname as constraint_name,contype as constraint_type, con.confrelid::regclass as foreign_table,
159
+ con.confupdtype, con.confdeltype, con.confmatchtype, u.column_name as foreign_column,
160
+ case when contype='c' then pg_get_constraintdef(con.oid, true) else null end AS check_definition from pg_constraint con
161
+ left join pg_class c ON c.oid = con.conrelid
162
+ left join pg_namespace n ON n.oid = c.relnamespace
163
+ left join lateral (
164
+ select string_agg(a.attname,',') as column_name from pg_attribute a
165
+ where con.conrelid = a.attrelid and a.attnum = any(con.conkey) limit 1
166
+ )a on 1=1
167
+ left join lateral (
168
+ select column_name from information_schema.constraint_column_usage u
169
+ where conname=u.constraint_name limit 1
170
+ )u on 1=1
171
+ where ${
172
+ table ? `conrelid::regclass::text = '${table}'` : `nspname = '${schema}'`
173
+ }`);
174
+
175
+ // add table constraints, mermaid
176
+ schemaInfo?.forEach((row: any) => {
177
+ // constraint type to column
178
+ row?.columns?.forEach((col: any) => {
179
+ const { constraint_type } =
180
+ constraints?.find(
181
+ (con: any) =>
182
+ con?.column_name === col?.column_name &&
183
+ con.constraint_table === `${row.nspname}.${row.relname}`
184
+ ) || {};
185
+ Object.assign(col, { constraint_type });
186
+ });
187
+
188
+ // table relations
189
+ const tableConstraints = constraints
190
+ ?.filter(
191
+ (el: any) => el?.constraint_table === `${row.nspname}.${row.relname}`
192
+ )
193
+ ?.map((el: any) => ({
194
+ ...el,
195
+ check_definition: el.check_definition
196
+ ? new handlebars.SafeString(el.check_definition)
197
+ : null,
198
+ }));
199
+ Object.assign(row, { constraints: tableConstraints });
200
+ });
201
+
202
+ if (debug) return schemaInfo;
203
+
204
+ const body = await getTemplate("pt", "schemaItem.pt");
205
+
206
+ const schemaContent = await handlebars.compile(
207
+ typeof body === "string"
208
+ ? body
209
+ : body?.hbs || "template not found schemaItem.pt"
210
+ )({ nspname: schema, rows: schemaInfo, constraints });
211
+
212
+ return schemaContent.replace(/'/g, "'");
213
+ }
@@ -0,0 +1,2 @@
1
+ export default function migrate(): void;
2
+ //# sourceMappingURL=migrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../script/migrate.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,OAAO,SAiB9B"}
@@ -1,25 +1,24 @@
1
- import Fastify from 'fastify';
2
-
3
- import config from '../config.js';
4
- import plugin from '../index.js';
5
-
6
- const timeoutMs = +(config.migrationTimeout || 5000);
7
-
8
- process.env.PORT = process.env.PORT || config.port || 3000;
9
-
10
- const app = Fastify();
11
-
12
- app.register(plugin, config);
13
-
14
- app.listen({ host: '0.0.0.0', port: process.env.PORT }, (err) => {
15
- console.log(`Server started via port: ${process.env.PORT}`);
16
- setTimeout(() => {
17
- console.log('Server closed after timeout', timeoutMs);
18
- app.close();
19
- process.exit(0);
20
- }, timeoutMs);
21
- if (err) {
22
- console.error('migrations error', err.toString());
23
- process.exit(1);
24
- }
25
- });
1
+ import Fastify from "fastify";
2
+ import config from "../config.js";
3
+ import plugin from "../index.js";
4
+ const timeoutMs = +(config.migrationTimeout || 5000);
5
+ const port = process.env.PORT || config.port || 3000;
6
+ if (import.meta.main) {
7
+ migrate();
8
+ }
9
+ export default function migrate() {
10
+ const app = Fastify();
11
+ app.register(plugin, config);
12
+ app.listen({ host: "0.0.0.0", port }, (err) => {
13
+ console.log(`Server started via port: ${port}`);
14
+ setTimeout(() => {
15
+ console.log("Server closed after timeout", timeoutMs);
16
+ app.close();
17
+ process.exit(0);
18
+ }, timeoutMs);
19
+ if (err) {
20
+ console.error("migrations error", err.toString());
21
+ process.exit(1);
22
+ }
23
+ });
24
+ }
@@ -0,0 +1,31 @@
1
+ import Fastify from "fastify";
2
+
3
+ import config from "../config.js";
4
+ import plugin from "../index.js";
5
+
6
+ const timeoutMs = +(config.migrationTimeout || 5000);
7
+
8
+ const port = process.env.PORT || config.port || 3000;
9
+
10
+ if (import.meta.main) {
11
+ migrate();
12
+ }
13
+
14
+ export default function migrate() {
15
+ const app = Fastify();
16
+
17
+ app.register(plugin, config);
18
+
19
+ app.listen({ host: "0.0.0.0", port }, (err: any) => {
20
+ console.log(`Server started via port: ${port}`);
21
+ setTimeout(() => {
22
+ console.log("Server closed after timeout", timeoutMs);
23
+ app.close();
24
+ process.exit(0);
25
+ }, timeoutMs);
26
+ if (err) {
27
+ console.error("migrations error", err.toString());
28
+ process.exit(1);
29
+ }
30
+ });
31
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"getSqlite.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/sqlite/funcs/getSqlite.ts"],"names":[],"mappings":"AAeA,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,QAAgB,EAChB,aAAqB,EACrB,iBAAiB,EAAE,OAAe,GACnC,GAAE,GAAQ,OAqBV;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"getSqlite.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/sqlite/funcs/getSqlite.ts"],"names":[],"mappings":"AAcA,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,QAAgB,EAChB,aAAqB,EACrB,iBAAiB,EAAE,OAAe,GACnC,GAAE,GAAQ,OAqBV;AAED,eAAe,cAAc,CAAC"}
@@ -2,8 +2,7 @@ import path from "node:path";
2
2
  const { name: execName } = path.parse(process.argv0);
3
3
  // import Database from 'better-sqlite3'; // error with bun
4
4
  const { default: Database } = execName === "bun"
5
- ? // @ts-expect-error bun internal module
6
- { default: (await import("bun:sqlite")).Database }
5
+ ? { default: (await import("bun:sqlite")).Database }
7
6
  : await import("better-sqlite3");
8
7
  import config from "../../../../config.js";
9
8
  import sqliteClients from "../sqliteClients.js";
@@ -1 +1 @@
1
- {"version":3,"file":"sqliteClients.d.ts","sourceRoot":"","sources":["../../../../server/plugins/sqlite/sqliteClients.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,CAAC;AAkB9C,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"sqliteClients.d.ts","sourceRoot":"","sources":["../../../../server/plugins/sqlite/sqliteClients.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,CAAC;AAkB9C,eAAe,aAAa,CAAC"}
@@ -2,8 +2,7 @@ import path from "node:path";
2
2
  const { name: execName } = path.parse(process.argv0);
3
3
  // import Database from 'better-sqlite3';
4
4
  const { default: Database } = execName === "bun"
5
- ? // @ts-expect-error bun internal module
6
- { default: (await import("bun:sqlite")).Database }
5
+ ? { default: (await import("bun:sqlite")).Database }
7
6
  : await import("better-sqlite3");
8
7
  import config from "../../../config.js";
9
8
  import init from "./funcs/init.js";
@@ -1 +1 @@
1
- {"version":3,"file":"getColumnCLS.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/table/funcs/getColumnCLS.ts"],"names":[],"mappings":"AA2DA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,OAOjE"}
1
+ {"version":3,"file":"getColumnCLS.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/table/funcs/getColumnCLS.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,OA+BjE"}
@@ -3,17 +3,11 @@ import config from "../../../../config.js";
3
3
  import loadTemplate from "./loadTemplate.js";
4
4
  import getTemplates from "./getTemplates.js";
5
5
  import getTemplateSync from "./getTemplateSync.js";
6
- const cls = getTemplates("cls")
7
- .map((el) => el[0])
8
- .reduce((acc, curr) => ({ ...acc, [curr]: curr }), {});
9
- const select = getTemplates("select")
10
- .map((el) => el[0])
11
- .reduce((acc, curr) => ({ ...acc, [curr]: curr }), {});
12
6
  const exists = existsSync("module/cls.json");
7
+ const select = {};
13
8
  const json = exists
14
9
  ? JSON.parse(readFileSync("module/cls.json", "utf-8") || "{}")
15
10
  : {};
16
- Object.assign(json, cls, select);
17
11
  function getColumnCLSData(table, name) {
18
12
  const type = select[`${table}.${name}`] || select[name || ""]
19
13
  ? "select"
@@ -45,6 +39,23 @@ function getColumnCLSData(table, name) {
45
39
  : json;
46
40
  }
47
41
  export default function getColumnCLS(table, name) {
42
+ // init only
43
+ if (!Object.keys("select").length) {
44
+ const cls = getTemplates("cls")
45
+ .map((el) => el[0])
46
+ .reduce((acc, curr) => ({
47
+ ...acc,
48
+ [curr]: curr,
49
+ }), {});
50
+ const selects = getTemplates("select")
51
+ .map((el) => el[0])
52
+ .reduce((acc, curr) => ({
53
+ ...acc,
54
+ [curr]: curr,
55
+ }), {});
56
+ Object.assign(select, selects);
57
+ Object.assign(json, cls, select);
58
+ }
48
59
  const key = [name, table, "column-cls"].filter(Boolean).join("-");
49
60
  if (loadTemplate[key] && !config.local) {
50
61
  return loadTemplate[key];
@@ -1,2 +1,5 @@
1
- export default function eventStream(res: any): (message?: any, ...optionalParams: any[]) => void;
1
+ export default function eventStream(res: any): {
2
+ (...data: any[]): void;
3
+ (message?: any, ...optionalParams: any[]): void;
4
+ };
2
5
  //# sourceMappingURL=eventStream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eventStream.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/util/funcs/eventStream.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,GAAG,EAAE,GAAG,qDA0B3C"}
1
+ {"version":3,"file":"eventStream.d.ts","sourceRoot":"","sources":["../../../../../server/plugins/util/funcs/eventStream.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,GAAG,EAAE,GAAG;;;EA0B3C"}
@@ -8,5 +8,12 @@ export default function dataInfo({ pg, params, query, }: {
8
8
  query: {
9
9
  table?: string;
10
10
  };
11
- }, reply: FastifyReply): Promise<any>;
11
+ }, reply: FastifyReply): Promise<{
12
+ table: any;
13
+ columns: any;
14
+ rows: any;
15
+ cls: any;
16
+ sufix: boolean;
17
+ time: number;
18
+ }>;
12
19
  //# sourceMappingURL=dataInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataInfo.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/controllers/dataInfo.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAazD,wBAA8B,QAAQ,CACpC,EACE,EAAqB,EACrB,MAAW,EACX,KAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B,EACD,KAAK,EAAE,YAAY,gBA+DpB"}
1
+ {"version":3,"file":"dataInfo.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/controllers/dataInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAYzD,wBAA8B,QAAQ,CACpC,EACE,EAAqB,EACrB,MAAW,EACX,KAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B,EACD,KAAK,EAAE,YAAY;;;;;;;GA0EpB"}
@@ -5,12 +5,14 @@ import metaFormat from "../../../plugins/table/funcs/metaFormat/index.js";
5
5
  import getTemplatePath from "../../../plugins/table/funcs/getTemplatePath.js";
6
6
  import yml2json from "../../../plugins/yml/funcs/yml2json.js";
7
7
  const infoList = [];
8
- const infoTemplateList = getTemplatePath("info")?.filter?.((el, idx, arr) => arr.findIndex((item) => item[1] === el[1]) === idx);
9
- infoTemplateList?.forEach?.((el) => {
10
- const info = yml2json(readFileSync(el[1], "utf-8"));
11
- infoList.push(info);
12
- });
13
8
  export default async function dataInfo({ pg = pgClients.client, params = {}, query = {}, }, reply) {
9
+ if (!infoList.length) {
10
+ const infoTemplateList = getTemplatePath("info")?.filter?.((el, idx, arr) => arr.findIndex((item) => item[1] === el[1]) === idx);
11
+ infoTemplateList?.forEach?.((el) => {
12
+ const info = yml2json(readFileSync(el[1], "utf-8"));
13
+ infoList.push(info);
14
+ });
15
+ }
14
16
  const timeStart = Date.now();
15
17
  const { id } = params;
16
18
  const { table } = query;
@@ -231,7 +231,7 @@ export default async function dataAPI({ pg = pgClients.client, params, table, id
231
231
  const fData = checkFilter
232
232
  ? await getFilterSQL({
233
233
  pg,
234
- table: loadTable ? paramsTable : table1,
234
+ table: loadTable ? tokenData?.table || paramsTable : table1,
235
235
  filter: query?.filter,
236
236
  search: query?.search,
237
237
  state: query?.state,
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../server/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAM1B,QAAA,IAAI,QAAQ,EAAE,GAAG,CAAC;AAUlB,MAAM,WAAW,UAAW,SAAQ,IAAI;IACtC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC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MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -2,7 +2,6 @@ import path from "node:path";
2
2
  const { name: execName } = path.parse(process.argv0);
3
3
  let Database;
4
4
  if (execName === "bun") {
5
- // @ts-expect-error bun internal module
6
5
  const sqlite = await import("bun:sqlite");
7
6
  Database = sqlite.Database;
8
7
  }
@@ -1,5 +1,4 @@
1
1
  import { beforeEach, afterEach, afterAll } from "vitest";
2
- // @ts-expect-error required for unit tests only
3
2
  import { build, teardown } from "./helper.js";
4
3
  beforeEach(async () => {
5
4
  console.log("build after each bun test start...");
package/dist/utils.d.ts CHANGED
@@ -85,6 +85,8 @@ export { default as getUploadStatus } from "./server/plugins/upload/getUploadSta
85
85
  export { default as startUpload } from "./server/plugins/upload/startUpload.js";
86
86
  export { default as uploadChunk } from "./server/plugins/upload/uploadChunk.js";
87
87
  export { default as s3Client } from "./server/plugins/file/providers/s3/client.js";
88
+ export { default as dumpDatabase } from "./script/dump.js";
89
+ export { default as migrate } from "./script/migrate.js";
88
90
  declare const _default: null;
89
91
  export default _default;
90
92
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../utils.ts"],"names":[],"mapp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E,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8CAA8C,CAAC;AAGnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;;AAEzD,wBAAoB"}
package/dist/utils.js CHANGED
@@ -102,4 +102,7 @@ export { default as getUploadStatus } from "./server/plugins/upload/getUploadSta
102
102
  export { default as startUpload } from "./server/plugins/upload/startUpload.js";
103
103
  export { default as uploadChunk } from "./server/plugins/upload/uploadChunk.js";
104
104
  export { default as s3Client } from "./server/plugins/file/providers/s3/client.js";
105
+ // scripts
106
+ export { default as dumpDatabase } from "./script/dump.js";
107
+ export { default as migrate } from "./script/migrate.js";
105
108
  export default null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.112",
3
+ "version": "2.0.114",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -21,11 +21,14 @@
21
21
  "dist/*"
22
22
  ],
23
23
  "scripts": {
24
+ "dump": "bun ./script/dump.ts",
25
+ "migrate": "MIGRATE=true bun ./script/migrate.ts",
26
+ "dump1": "bun ./dist/script/dump.js",
27
+ "migrate1": "MIGRATE=true bun ./dist/script/migrate.js",
24
28
  "prepublishOnly": "npm run build",
25
29
  "clean": "tsc -b --clean",
26
- "build": "tsc -b --clean && tsc && copyfiles server/plugins/grpc/utils/*.proto dist && copyfiles server/migrations/*.sql dist && copyfiles server/templates/**/*.html dist && copyfiles server/templates/**/*.hbs dist && copyfiles script/* dist",
30
+ "build": "tsc -b --clean && tsc && copyfiles server/plugins/grpc/utils/*.proto dist && copyfiles server/migrations/*.sql dist && copyfiles server/templates/**/*.html dist && copyfiles server/templates/**/*.hbs dist && copyfiles script/* dist && copyfiles -u 2 module/core/*/* dist/module/core",
27
31
  "prod": "NODE_ENV=production bun dist/server",
28
- "migrate": "MIGRATE=true bun script/migrate",
29
32
  "patch": "npm version patch && git push && npm publish",
30
33
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
31
34
  "test": "npx vitest run",
@@ -69,7 +72,7 @@
69
72
  },
70
73
  "devDependencies": {
71
74
  "@types/better-sqlite3": "^7.6.13",
72
- "@types/bun": "^1.2.21",
75
+ "@types/bun": "^1.3.5",
73
76
  "@types/js-yaml": "^4.0.9",
74
77
  "@types/markdown-it": "^14.1.2",
75
78
  "@types/node": "^24.3.1",
@@ -1 +0,0 @@
1
- [{"name":"admin.user_id","module":"data","type":"select","hash":"29f728fe5e89fed0f2bec41657fae26e","dbhash":"29f728fe5e89fed0f2bec41657fae26e","update":false},{"name":"data.admin_statistic","module":"data","type":"select","hash":"8f0689a8995711c7693379a177ea4e92","dbhash":"8f0689a8995711c7693379a177ea4e92","update":false},{"name":"data.last_objects_all","module":"data","type":"select","hash":"f942c95781b420a837ae38c324cca7a9","dbhash":"f942c95781b420a837ae38c324cca7a9","update":false},{"name":"data.object_id","module":"data","type":"select","hash":"f5b4f8e86d5b3bf5da599b4e7d126ea2","dbhash":"f5b4f8e86d5b3bf5da599b4e7d126ea2","update":false},{"name":"data.site_statistic","module":"data","type":"select","hash":"fbc3b42fee3ef287b3a576bb1a0b43b4","dbhash":"fbc3b42fee3ef287b3a576bb1a0b43b4","update":false},{"name":"data_addition.change_status.parent","module":"data_addition","type":"select","hash":"517f0390a98a5642b94a62dbbd058441","dbhash":"517f0390a98a5642b94a62dbbd058441","update":false},{"name":"data_addition.deregistration.parent","module":"data_addition","type":"select","hash":"1dbbd6e0a48e52a9c23dedad368f06c3","dbhash":"1dbbd6e0a48e52a9c23dedad368f06c3","update":false},{"name":"data_addition.historical_name.parent","module":"data_addition","type":"select","hash":"3d42dee53b639fb594e9961492f577cc","dbhash":"3d42dee53b639fb594e9961492f577cc","update":false},{"name":"data_addition.national_lang_name.parent","module":"data_addition","type":"select","hash":"c3a9ac90dd38c02736503d003a0ca012","dbhash":"c3a9ac90dd38c02736503d003a0ca012","update":false},{"name":"data_addition.objects_atu.parent","module":"data_addition","type":"select","hash":"1629be10ba3bd71280621dc7e6737092","dbhash":"1629be10ba3bd71280621dc7e6737092","update":false},{"name":"data_addition.objects_countries.parent","module":"data_addition","type":"select","hash":"b389f543053bf35a5469580333cc1b0b","dbhash":"b389f543053bf35a5469580333cc1b0b","update":false},{"name":"data_addition.options_name.parent","module":"data_addition","type":"select","hash":"e5d02b5f8d64a18cf21b1daa448fe54e","dbhash":"e5d02b5f8d64a18cf21b1daa448fe54e","update":false},{"name":"data_addition.options_type.parent","module":"data_addition","type":"select","hash":"fb41e8f7b9cf18786611d8e880ff4051","dbhash":"fb41e8f7b9cf18786611d8e880ff4051","update":false},{"name":"data_addition.rename.parent","module":"data_addition","type":"select","hash":"c883a3baf1beb4a7d3d5bdb28062be69","dbhash":"c883a3baf1beb4a7d3d5bdb28062be69","update":false},{"name":"data_countries.object_id","module":"data_countries","type":"select","hash":"a6f120bea7bd0df1afcdb1b56484e516","dbhash":"a6f120bea7bd0df1afcdb1b56484e516","update":false},{"name":"dict.admin_status","module":"dict","type":"select","hash":"10452051e966f3051456226b78d1e11b","dbhash":"10452051e966f3051456226b78d1e11b","update":false},{"name":"dict.atu_countries","module":"dict","type":"select","hash":"c7368a1b9c10350e5709872d933a6ffb","dbhash":"c7368a1b9c10350e5709872d933a6ffb","update":false},{"name":"dict.atu_type","module":"dict","type":"select","hash":"376a4e7a7e77d5f9ee865b8a1fb25e07","dbhash":"376a4e7a7e77d5f9ee865b8a1fb25e07","update":false},{"name":"dict.community","module":"dict","type":"select","hash":"deb128826eb03dbca6762f058f49e980","dbhash":"deb128826eb03dbca6762f058f49e980","update":false},{"name":"dict.country_location","module":"dict","type":"select","hash":"333f3f56fc1a9f79f176f509d8aeca53","dbhash":"333f3f56fc1a9f79f176f509d8aeca53","update":false},{"name":"dict.district","module":"dict","type":"select","hash":"0d3a18d3fe4e6329567f5ba5cc360d53","dbhash":"0d3a18d3fe4e6329567f5ba5cc360d53","update":false},{"name":"dict.existence","module":"dict","type":"select","hash":"781bb2394e4f5eee87cbaf6ff1cc358e","dbhash":"781bb2394e4f5eee87cbaf6ff1cc358e","update":false},{"name":"dict.foreign_country","module":"dict","type":"select","hash":"dd4d5c31a9eea9abd538acdb952e99e9","dbhash":"dd4d5c31a9eea9abd538acdb952e99e9","update":false},{"name":"dict.info_source","module":"dict","type":"select","hash":"0ae17d8e43740078dea206cc7949151f","dbhash":"0ae17d8e43740078dea206cc7949151f","update":false},{"name":"dict.language","module":"dict","type":"select","hash":"fd1826c9ca150ef93bd251b923d6094e","dbhash":"fd1826c9ca150ef93bd251b923d6094e","update":false},{"name":"dict.object_type.adm","module":"dict","type":"select","hash":"0faeff4dc1c1f60996efe614d44a6e5f","dbhash":"0faeff4dc1c1f60996efe614d44a6e5f","update":false},{"name":"dict.object_type.geo","module":"dict","type":"select","hash":"34b82095969396e8a8497f93cda3dcc5","dbhash":"34b82095969396e8a8497f93cda3dcc5","update":false},{"name":"dict.object_type.pzf","module":"dict","type":"select","hash":"df2c1ced6405602aa8f262e437ac5062","dbhash":"df2c1ced6405602aa8f262e437ac5062","update":false},{"name":"dict.object_type.soc","module":"dict","type":"select","hash":"d60d3f993acb76e5782e4a3046756858","dbhash":"d60d3f993acb76e5782e4a3046756858","update":false},{"name":"dict.object_type","module":"dict","type":"select","hash":"9630e32f344f33580d5a90e305bf5cf2","dbhash":"9630e32f344f33580d5a90e305bf5cf2","update":false},{"name":"dict.region","module":"dict","type":"select","hash":"c1e0b38f520a004726694109398d5544","dbhash":"c1e0b38f520a004726694109398d5544","update":false},{"name":"dict.settlement_type","module":"dict","type":"select","hash":"49261c87bf6cd01e4ab32f65c94b5dbf","dbhash":"49261c87bf6cd01e4ab32f65c94b5dbf","update":false},{"name":"dict.source","module":"dict","type":"select","hash":"ac2bf8aca5c819e42b6529c73a7e1cb5","dbhash":"ac2bf8aca5c819e42b6529c73a7e1cb5","update":false},{"name":"dict.source_name","module":"dict","type":"select","hash":"9550cb3ad87783d7528c3c440be50a89","dbhash":"9550cb3ad87783d7528c3c440be50a89","update":false},{"name":"dict.source_type","module":"dict","type":"select","hash":"fee4eb12cd50344d2de7c49290238501","dbhash":"fee4eb12cd50344d2de7c49290238501","update":false},{"name":"core.accounts","module":"settings","type":"select","hash":"36eef3856f46bc0eecb61a6f911ced2e","dbhash":"36eef3856f46bc0eecb61a6f911ced2e","update":false},{"name":"core.menu_id","module":"settings","type":"select","hash":"3b08d360628afa15339f364f5e2ff211","dbhash":"3b08d360628afa15339f364f5e2ff211","update":false},{"name":"core.roles","module":"settings","type":"select","hash":"ed1290380ea5e5e7e48bd08b41cb7793","dbhash":"ed1290380ea5e5e7e48bd08b41cb7793","update":false},{"name":"core.routes.alias","module":"settings","type":"select","hash":"ac6afe9a8ebaf0b26236c4bae5297709","dbhash":"ac6afe9a8ebaf0b26236c4bae5297709","update":false},{"name":"core.routes","module":"settings","type":"select","hash":"306bddbe5b73b0628728a60f5335aaee","dbhash":"306bddbe5b73b0628728a60f5335aaee","update":false},{"name":"core.rules","module":"settings","type":"select","hash":"a86085f579f4abff5cf09e775e034ed3","dbhash":"a86085f579f4abff5cf09e775e034ed3","update":false},{"name":"core.user_mentioned","module":"settings","type":"select","hash":"6687f073de73a3ec4b6e0811d9310e7e","dbhash":"6687f073de73a3ec4b6e0811d9310e7e","update":false},{"name":"core.user_uid","module":"settings","type":"select","hash":"45f7d8a57ecbca5b433be7937be51d5c","dbhash":"45f7d8a57ecbca5b433be7937be51d5c","update":false},{"name":"data.exist_flag","module":"data","type":"cls","hash":"4cc57ff8d055dd194b51a6937d70f04c","dbhash":"4cc57ff8d055dd194b51a6937d70f04c","update":false},{"name":"data.latitude_dir","module":"data","type":"cls","hash":"542cd461818ff655002fec7bf23dcdb1","dbhash":"542cd461818ff655002fec7bf23dcdb1","update":false},{"name":"data.longitude_dir","module":"data","type":"cls","hash":"39f5c0554eab4f34ae25312d8dfafa78","dbhash":"39f5c0554eab4f34ae25312d8dfafa78","update":false},{"name":"data._type","module":"data","type":"cls","hash":"588c9b704054165dc6977f1262bbfee7","dbhash":"588c9b704054165dc6977f1262bbfee7","update":false},{"name":"access_type","module":"settings","type":"cls","hash":"e02065dbaed2ccb437a1722c00ed3fab","dbhash":"e02065dbaed2ccb437a1722c00ed3fab","update":false},{"name":"change_type","module":"settings","type":"cls","hash":"0fcaac1864fc81b9760075836c1bb2ac","dbhash":"0fcaac1864fc81b9760075836c1bb2ac","update":false},{"name":"core.actions","module":"settings","type":"cls","hash":"17862ea92ef5ad846a284fd68b4ff1f7","dbhash":"17862ea92ef5ad846a284fd68b4ff1f7","update":false},{"name":"core.column_type","module":"settings","type":"cls","hash":"8004d1fc1876e6f5a096b4f40a7f3775","dbhash":"8004d1fc1876e6f5a096b4f40a7f3775","update":false},{"name":"core.scope","module":"settings","type":"cls","hash":"c274693f6c7e9849704bbf4c46334871","dbhash":"c274693f6c7e9849704bbf4c46334871","update":false},{"name":"properties.site_status","module":"settings","type":"cls","hash":"2c2980706c5afe8808000d971b304cc9","dbhash":"2c2980706c5afe8808000d971b304cc9","update":false},{"name":"properties.widget_status","module":"settings","type":"cls","hash":"232f321af15895a9b33953c9bd500043","dbhash":"232f321af15895a9b33953c9bd500043","update":false},{"name":"users.user_type","module":"settings","type":"cls","hash":"9f6a303d48d2d33c68dbcd8e72ad0e83","dbhash":"9f6a303d48d2d33c68dbcd8e72ad0e83","update":false},{"name":"yes_no","module":"settings","type":"cls","hash":"50c527053426248c20b0a2f112ff9046","dbhash":"50c527053426248c20b0a2f112ff9046","update":false}]
File without changes
@@ -1,9 +0,0 @@
1
- export default function finishUpload({ host, id, }: {
2
- host?: string;
3
- id: string;
4
- }): Promise<{
5
- error?: string;
6
- success?: boolean;
7
- code: number;
8
- }>;
9
- //# sourceMappingURL=finishUpload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"finishUpload.d.ts","sourceRoot":"","sources":["../../../../server/plugins/upload/finishUpload.ts"],"names":[],"mappings":"AAMA,wBAA8B,YAAY,CAAC,EACzC,IAAI,EACJ,EAAE,GACH,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAqC/D"}