@opengis/fastify-table 2.0.140 → 2.0.141
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/dist/log/migration/dist-mbk_bc_dma-cls.json +1 -0
- package/dist/log/migration/dist-mbk_bc_dma-cls.sql +0 -0
- package/dist/module/core/select/core.user_mentioned.sql +1 -1
- package/dist/server/plugins/file/providers/fs.d.ts +1 -1
- package/dist/server/routes/file/controllers/export.d.ts.map +1 -1
- package/dist/server/routes/file/controllers/export.js +1 -0
- package/dist/server/routes/table/functions/getData.d.ts +2 -1
- package/dist/server/routes/table/functions/getData.d.ts.map +1 -1
- package/dist/server/routes/table/functions/getData.js +7 -4
- package/package.json +1 -1
- package/dist/module/core/cls/constraint_type.json +0 -14
- package/dist/module/core/cls/constraint_type_table.json +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name":"prc.application_id","module":"APPLICATION","type":"select","hash":"d5b27c80a2a4682e164c8713f36053fd","dbhash":"d5b27c80a2a4682e164c8713f36053fd","update":false},{"name":"prc.application_status.parent","module":"APPLICATION","type":"select","hash":"1d63a805e56b9b350f7a2ec7df26da3c","dbhash":"1d63a805e56b9b350f7a2ec7df26da3c","update":false},{"name":"prc.application_type","module":"APPLICATION","type":"select","hash":"fa2baf8fbb896363b740a74487281b6b","dbhash":"fa2baf8fbb896363b740a74487281b6b","update":false},{"name":"prc.parcel_purpose_id","module":"APPLICATION","type":"select","hash":"22e43518957449f90b63170033b4ae3b","dbhash":"22e43518957449f90b63170033b4ae3b","update":false},{"name":"prc.parcel_status.parent","module":"APPLICATION","type":"select","hash":"7310662b3e674b4dd3c3a0ae4bc76c80","dbhash":"7310662b3e674b4dd3c3a0ae4bc76c80","update":false},{"name":"addr.address_id","module":"LAND-CADASTRE","type":"select","hash":"19c0d463fa55a284d789bb15318f5ef7","dbhash":"19c0d463fa55a284d789bb15318f5ef7","update":false},{"name":"addr.address_id_full","module":"LAND-CADASTRE","type":"select","hash":"6257b7f173167b7057cc2ff1859a21c1","dbhash":"6257b7f173167b7057cc2ff1859a21c1","update":false},{"name":"addr.address_id_parent","module":"LAND-CADASTRE","type":"select","hash":"01b41b8690c6eb5ad3638d74ae4c007d","dbhash":"01b41b8690c6eb5ad3638d74ae4c007d","update":false},{"name":"addr.city_id","module":"LAND-CADASTRE","type":"select","hash":"a943aa5241a30a33c88e58d223d201db","dbhash":"a943aa5241a30a33c88e58d223d201db","update":false},{"name":"addr.district_id","module":"LAND-CADASTRE","type":"select","hash":"a811b43f9d0eb6e79a796e0a5b988294","dbhash":"a811b43f9d0eb6e79a796e0a5b988294","update":false},{"name":"addr.street_id_full","module":"LAND-CADASTRE","type":"select","hash":"d0e3db667578cf8017e69ca6c0c42b0f","dbhash":"d0e3db667578cf8017e69ca6c0c42b0f","update":false},{"name":"address_id","module":"LAND-CADASTRE","type":"select","hash":"e993b5c610baa695cbc8db8f5d20af5a","dbhash":"e993b5c610baa695cbc8db8f5d20af5a","update":false},{"name":"gis.srid_from_setting","module":"LAND-CADASTRE","type":"select","hash":"138a168c385a79ec7a3e949be4daef57","dbhash":"138a168c385a79ec7a3e949be4daef57","update":false},{"name":"prc.acc_id","module":"LAND-CADASTRE","type":"select","hash":"3ed8c88c51586b256b97743f07ca4821","dbhash":"3ed8c88c51586b256b97743f07ca4821","update":false},{"name":"prc.cad_zone_id","module":"LAND-CADASTRE","type":"select","hash":"1c53abf0fad143bbba6b331f9ddd8272","dbhash":"1c53abf0fad143bbba6b331f9ddd8272","update":false},{"name":"prc.decision_type","module":"LAND-CADASTRE","type":"select","hash":"f9490ca91fa59d256651f51262300a75","dbhash":"f9490ca91fa59d256651f51262300a75","update":false},{"name":"prc.doc_id","module":"LAND-CADASTRE","type":"select","hash":"185d98585e3e0be5d4ee929a19b03bfe","dbhash":"185d98585e3e0be5d4ee929a19b03bfe","update":false},{"name":"prc.doc_id_note","module":"LAND-CADASTRE","type":"select","hash":"c83b6536588cfa2ab7b5bac00f04bcd3","dbhash":"c83b6536588cfa2ab7b5bac00f04bcd3","update":false},{"name":"prc.doc_id_short","module":"LAND-CADASTRE","type":"select","hash":"29f98ae3fe10e834b542d53e2dcef592","dbhash":"29f98ae3fe10e834b542d53e2dcef592","update":false},{"name":"prc.parcel_id.full","module":"LAND-CADASTRE","type":"select","hash":"0a3846884fc21a87058d8943ae02df18","dbhash":"0a3846884fc21a87058d8943ae02df18","update":false},{"name":"prc.parcel_id","module":"LAND-CADASTRE","type":"select","hash":"7408a469d8994d4da3235c5e201f8b3a","dbhash":"7408a469d8994d4da3235c5e201f8b3a","update":false},{"name":"prc.techdoc_id","module":"LAND-CADASTRE","type":"select","hash":"1c4c2ebcf86244c5caf6ab345fb8707c","dbhash":"1c4c2ebcf86244c5caf6ab345fb8707c","update":false},{"name":"prc.techdoc_id_parent","module":"LAND-CADASTRE","type":"select","hash":"9f654d802ab549c406ea4b8b9db80a47","dbhash":"9f654d802ab549c406ea4b8b9db80a47","update":false},{"name":"user_id","module":"LAND-CADASTRE","type":"select","hash":"4339922d053e66ccd43e34f2838037b1","dbhash":"4339922d053e66ccd43e34f2838037b1","update":false},{"name":"core.roles","module":"management","type":"select","hash":"ed1290380ea5e5e7e48bd08b41cb7793","dbhash":"ed1290380ea5e5e7e48bd08b41cb7793","update":false},{"name":"core.user_uid","module":"management","type":"select","hash":"45f7d8a57ecbca5b433be7937be51d5c","dbhash":"45f7d8a57ecbca5b433be7937be51d5c","update":false},{"name":"prc.documents_id","module":"RENT","type":"select","hash":"bc5f97cd6c556fefac244b3ff8629be9","dbhash":"bc5f97cd6c556fefac244b3ff8629be9","update":false},{"name":"prc.lease_id.main","module":"RENT","type":"select","hash":"f53e8e47e8ad68572f966d95fcf88163","dbhash":"f53e8e47e8ad68572f966d95fcf88163","update":false},{"name":"prc.lease_id","module":"RENT","type":"select","hash":"3372135b6009a9f2170d18b664750db0","dbhash":"3372135b6009a9f2170d18b664750db0","update":false},{"name":"prc.parcel_parent_id","module":"RENT","type":"select","hash":"bb2617b27f3226757cf816b55011c2bd","dbhash":"bb2617b27f3226757cf816b55011c2bd","update":false},{"name":"core.user_mentioned","module":"core","type":"select","hash":"6687f073de73a3ec4b6e0811d9310e7e","dbhash":"6687f073de73a3ec4b6e0811d9310e7e","update":false},{"name":"prc.application_status","module":"APPLICATION","type":"cls","hash":"d67580fb015c51a6da5cb5c82b405149","dbhash":"d67580fb015c51a6da5cb5c82b405149","update":false},{"name":"prc.application_status_final","module":"APPLICATION","type":"cls","hash":"0c27260728c4beced279366bf5b8662d","dbhash":"0c27260728c4beced279366bf5b8662d","update":false},{"name":"addr.str_type","module":"LAND-CADASTRE","type":"cls","hash":"9c5a1d1cc9dbb53a888894bf4e2c0e34","dbhash":"9c5a1d1cc9dbb53a888894bf4e2c0e34","update":false},{"name":"prc.acc_type","module":"LAND-CADASTRE","type":"cls","hash":"8db9b5df034826fbf54e3c6eec61bf71","dbhash":"8db9b5df034826fbf54e3c6eec61bf71","update":false},{"name":"prc.acc_type_legal","module":"LAND-CADASTRE","type":"cls","hash":"dfd54768ed4ebc9703b157a930578f48","dbhash":"dfd54768ed4ebc9703b157a930578f48","update":false},{"name":"prc.act_type","module":"LAND-CADASTRE","type":"cls","hash":"d5eff799a96149aebcdd67253c0f15e6","dbhash":"d5eff799a96149aebcdd67253c0f15e6","update":false},{"name":"prc.area_determination_type","module":"LAND-CADASTRE","type":"cls","hash":"de9d7085ba3e411bbe7d2bd03845705a","dbhash":"de9d7085ba3e411bbe7d2bd03845705a","update":false},{"name":"prc.document_type","module":"LAND-CADASTRE","type":"cls","hash":"2edc45649c4fc9b84968ad9872efd0fb","dbhash":"2edc45649c4fc9b84968ad9872efd0fb","update":false},{"name":"prc.experise_required","module":"LAND-CADASTRE","type":"cls","hash":"2bbb6c3d6999fab6e0550a03378b956d","dbhash":"2bbb6c3d6999fab6e0550a03378b956d","update":false},{"name":"prc.expert_opinion","module":"LAND-CADASTRE","type":"cls","hash":"742f77e355cfecedfb1497b15bb1e383","dbhash":"742f77e355cfecedfb1497b15bb1e383","update":false},{"name":"prc.f6zem_id","module":"LAND-CADASTRE","type":"cls","hash":"130790407b88fbff11d3fe8e60f7f553","dbhash":"130790407b88fbff11d3fe8e60f7f553","update":false},{"name":"prc.isfinite_restriction","module":"LAND-CADASTRE","type":"cls","hash":"752f30bf64facf53da89d5169cce4fd1","dbhash":"752f30bf64facf53da89d5169cce4fd1","update":false},{"name":"prc.isfree_payment","module":"LAND-CADASTRE","type":"cls","hash":"0fc5499f9035ac2e2bb554225c5d2046","dbhash":"0fc5499f9035ac2e2bb554225c5d2046","update":false},{"name":"prc.kvzu_id","module":"LAND-CADASTRE","type":"cls","hash":"05c068bfe09eef1ddadf67497ad1d131","dbhash":"05c068bfe09eef1ddadf67497ad1d131","update":false},{"name":"prc.legal_mode_status","module":"LAND-CADASTRE","type":"cls","hash":"9706863470ce8c9697a7d228eca95b2e","dbhash":"9706863470ce8c9697a7d228eca95b2e","update":false},{"name":"prc.legal_mode_type","module":"LAND-CADASTRE","type":"cls","hash":"a9c4d94188748a06f455158ce9d25de2","dbhash":"a9c4d94188748a06f455158ce9d25de2","update":false},{"name":"prc.legal_mode_type_card","module":"LAND-CADASTRE","type":"cls","hash":"141e7f1de7ba62f7664c581e36027ba8","dbhash":"141e7f1de7ba62f7664c581e36027ba8","update":false},{"name":"prc.parcel_area_unit","module":"LAND-CADASTRE","type":"cls","hash":"1cf59c05fb8b62101493f46e57080066","dbhash":"1cf59c05fb8b62101493f46e57080066","update":false},{"name":"prc.parcel_category","module":"LAND-CADASTRE","type":"cls","hash":"88962a86df4c48b66a0845ec07128e82","dbhash":"88962a86df4c48b66a0845ec07128e82","update":false},{"name":"prc.parcel_location","module":"LAND-CADASTRE","type":"cls","hash":"1b608780bbbec4f0170dd56d42e5e607","dbhash":"1b608780bbbec4f0170dd56d42e5e607","update":false},{"name":"prc.parcel_ownership","module":"LAND-CADASTRE","type":"cls","hash":"19fbc136a3b902f501701c0e568d3a19","dbhash":"19fbc136a3b902f501701c0e568d3a19","update":false},{"name":"prc.parcel_part_unit","module":"LAND-CADASTRE","type":"cls","hash":"b6c6ae04b0d59bdca084c6799cfb4fa2","dbhash":"b6c6ae04b0d59bdca084c6799cfb4fa2","update":false},{"name":"prc.parcel_purpose","module":"LAND-CADASTRE","type":"cls","hash":"63ffa5cf27a069392cde707411aee8db","dbhash":"63ffa5cf27a069392cde707411aee8db","update":false},{"name":"prc.parcel_status","module":"LAND-CADASTRE","type":"cls","hash":"94689671b1e1de2f5bb7c55ba6b40549","dbhash":"94689671b1e1de2f5bb7c55ba6b40549","update":false},{"name":"prc.restriction_code","module":"LAND-CADASTRE","type":"cls","hash":"233ab49757f163bd9ae2ebc81088b0ad","dbhash":"233ab49757f163bd9ae2ebc81088b0ad","update":false},{"name":"prc.serv_period","module":"LAND-CADASTRE","type":"cls","hash":"46fda14a1bc9222e886f27d60643e9e2","dbhash":"46fda14a1bc9222e886f27d60643e9e2","update":false},{"name":"prc.serv_type","module":"LAND-CADASTRE","type":"cls","hash":"15ddb366e1e0adf2672932f2137885da","dbhash":"15ddb366e1e0adf2672932f2137885da","update":false},{"name":"prc.techdoc_path","module":"LAND-CADASTRE","type":"cls","hash":"fb52a616b0ece0ec9ac0ebc8f7e6ee34","dbhash":"fb52a616b0ece0ec9ac0ebc8f7e6ee34","update":false},{"name":"prc.techdoc_type","module":"LAND-CADASTRE","type":"cls","hash":"f607216be06fea28fafdee56b94d204f","dbhash":"f607216be06fea28fafdee56b94d204f","update":false},{"name":"prc.valuation_type","module":"LAND-CADASTRE","type":"cls","hash":"deffc6b334e24d72fc562dd6bca90839","dbhash":"deffc6b334e24d72fc562dd6bca90839","update":false},{"name":"yes_no","module":"LAND-CADASTRE","type":"cls","hash":"50c527053426248c20b0a2f112ff9046","dbhash":"50c527053426248c20b0a2f112ff9046","update":false},{"name":"users.user_type","module":"management","type":"cls","hash":"750ece56e1d55cd7a1e1b002df88ec91","dbhash":"750ece56e1d55cd7a1e1b002df88ec91","update":false},{"name":"dpo.lease_is_main","module":"RENT","type":"cls","hash":"6e5d9cffd9f4dbc31c1329d23143cbd0","dbhash":"6e5d9cffd9f4dbc31c1329d23143cbd0","update":false},{"name":"dpo.lease_status","module":"RENT","type":"cls","hash":"e3fb9ca8d294ceeb4d31b9b221608ace","dbhash":"e3fb9ca8d294ceeb4d31b9b221608ace","update":false},{"name":"dpo.lease_type","module":"RENT","type":"cls","hash":"2d87548b2f6b0b510329a8a8852501c6","dbhash":"2d87548b2f6b0b510329a8a8852501c6","update":false},{"name":"dpo.servitut_type","module":"RENT","type":"cls","hash":"647f2f55c4e9d508c45c8da498a50418","dbhash":"647f2f55c4e9d508c45c8da498a50418","update":false},{"name":"type_report","module":"RENT","type":"cls","hash":"a317e46b876b31598fbd9a39d21277ea","dbhash":"a317e46b876b31598fbd9a39d21277ea","update":false},{"name":"constraint_action","module":"core","type":"cls","hash":"1b7129eae9eb42106ed6e646223c806a","dbhash":"1b7129eae9eb42106ed6e646223c806a","update":false},{"name":"constraint_matchtype","module":"core","type":"cls","hash":"446ad903e69a391748a8a27bae2dc5cd","dbhash":"446ad903e69a391748a8a27bae2dc5cd","update":false},{"name":"constraint_type_full","module":"core","type":"cls","hash":"9e1cc580273f7e73fbc08ee553ad8f64","dbhash":"9e1cc580273f7e73fbc08ee553ad8f64","update":false},{"name":"core.user_type","module":"core","type":"cls","hash":"728bc9e0bcc88de83ec56d8dc7e7efff","dbhash":"728bc9e0bcc88de83ec56d8dc7e7efff","update":false}]
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
select uid, coalesce(sur_name,'')||coalesce(' '||user_name,'') as text, email from admin.users
|
|
1
|
+
select uid, coalesce(sur_name,'')||coalesce(' '||user_name,'') as text, email from admin.users
|
|
2
2
|
where enabled order by coalesce(sur_name,'')||coalesce(' '||user_name,'')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
export default function fsStorage(): {
|
|
3
3
|
deleteFile: (fp: string) => Promise<void>;
|
|
4
|
-
downloadFile: (fp: string, options?: Record<string, any>) => Promise<
|
|
4
|
+
downloadFile: (fp: string, options?: Record<string, any>) => Promise<NonSharedBuffer | fs.ReadStream | {
|
|
5
5
|
original: string;
|
|
6
6
|
full: string | null;
|
|
7
7
|
} | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../server/routes/file/controllers/export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgCzD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,wBAA8B,WAAW,CACvC,EACE,EAAqB,EACrB,OAAO,EACP,IAAI,EACJ,OAAO,EAAE,QAAQ,EACjB,GAAG,EACH,KAAU,EACV,IAAkB,EAClB,QAAQ,EACR,UAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,EACD,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../server/routes/file/controllers/export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgCzD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,wBAA8B,WAAW,CACvC,EACE,EAAqB,EACrB,OAAO,EACP,IAAI,EACJ,OAAO,EAAE,QAAQ,EACjB,GAAG,EACH,KAAU,EACV,IAAkB,EAClB,QAAQ,EACR,UAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,EACD,KAAK,EAAE,YAAY,gBAkZpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FastifyReply } from "fastify";
|
|
2
2
|
import type { ExtendedPG } from "../../../types/core.js";
|
|
3
|
-
export default function dataAPI({ pg, params, table, id, headers, query, user, contextQuery, sufix, filterList, actions: actionsParam, accessQuery: accessQueryParam, columns: columnsParam, }: {
|
|
3
|
+
export default function dataAPI({ pg, params, table, id, headers, query, user, contextQuery, sufix, filterList, actions: actionsParam, accessQuery: accessQueryParam, columns: columnsParam, isExport, }: {
|
|
4
4
|
pg?: ExtendedPG;
|
|
5
5
|
params?: {
|
|
6
6
|
id?: string;
|
|
@@ -18,5 +18,6 @@ export default function dataAPI({ pg, params, table, id, headers, query, user, c
|
|
|
18
18
|
actions?: string[];
|
|
19
19
|
accessQuery?: string;
|
|
20
20
|
columns?: string[];
|
|
21
|
+
isExport?: boolean;
|
|
21
22
|
}, reply1?: FastifyReply, called?: any): Promise<any>;
|
|
22
23
|
//# sourceMappingURL=getData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getData.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/functions/getData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4EzD,wBAA8B,OAAO,CACnC,EACE,EAAqB,EACrB,MAAM,EACN,KAAK,EACL,EAAE,EACF,OAAY,EACZ,KAAU,EACV,IAAS,EACT,YAAY,EACZ,KAAY,EACZ,UAAU,EACV,OAAO,EAAE,YAAY,EACrB,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"getData.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/functions/getData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA4EzD,wBAA8B,OAAO,CACnC,EACE,EAAqB,EACrB,MAAM,EACN,KAAK,EACL,EAAE,EACF,OAAY,EACZ,KAAU,EACV,IAAS,EACT,YAAY,EACZ,KAAY,EACZ,UAAU,EACV,OAAO,EAAE,YAAY,EACrB,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,YAAY,EACrB,QAAgB,GACjB,EAAE;IACD,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,MAAM,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,EACD,MAAM,CAAC,EAAE,YAAY,EACrB,MAAM,CAAC,EAAE,GAAG,gBAw1Bb"}
|
|
@@ -52,7 +52,7 @@ function getOrder(queryOrder, queryDesc, defaultOrder, columnList, iscalled = fa
|
|
|
52
52
|
const checkInline = {};
|
|
53
53
|
const maxLimit = 100;
|
|
54
54
|
const defaultLimit = 20;
|
|
55
|
-
export default async function dataAPI({ pg = pgClients.client, params, table, id, headers = {}, query = {}, user = {}, contextQuery, sufix = true, filterList, actions: actionsParam, accessQuery: accessQueryParam, columns: columnsParam, }, reply1, called) {
|
|
55
|
+
export default async function dataAPI({ pg = pgClients.client, params, table, id, headers = {}, query = {}, user = {}, contextQuery, sufix = true, filterList, actions: actionsParam, accessQuery: accessQueryParam, columns: columnsParam, isExport = false, }, reply1, called) {
|
|
56
56
|
const time = Date.now();
|
|
57
57
|
const timeArr = [Date.now()];
|
|
58
58
|
const { uid } = user;
|
|
@@ -193,7 +193,10 @@ export default async function dataAPI({ pg = pgClients.client, params, table, id
|
|
|
193
193
|
}
|
|
194
194
|
const columnList = dbColumns.map((el) => el.name || el).join(",");
|
|
195
195
|
const sqlTable = sql
|
|
196
|
-
?.filter?.((el) => !el?.disabled &&
|
|
196
|
+
?.filter?.((el) => !el?.disabled &&
|
|
197
|
+
!el.inline &&
|
|
198
|
+
el?.sql?.replace &&
|
|
199
|
+
!(isExport && el.export === false))
|
|
197
200
|
.map((el, i) => ` left join lateral (${el.sql.replace("{{uid}}", uid)}) ${el.name || `t${i}`} on 1=1 `)
|
|
198
201
|
?.join("") || "";
|
|
199
202
|
const cardSqlFiltered = objectId
|
|
@@ -205,7 +208,7 @@ export default async function dataAPI({ pg = pgClients.client, params, table, id
|
|
|
205
208
|
.join("\n") || ""
|
|
206
209
|
: "";
|
|
207
210
|
const sqlInline = loadTable?.sql
|
|
208
|
-
?.filter?.((el) => el.inline)
|
|
211
|
+
?.filter?.((el) => el.inline && !(isExport && el.export === false))
|
|
209
212
|
?.map((el) => `,(${el.sql})`)
|
|
210
213
|
?.join("") || "";
|
|
211
214
|
const { fields = [] } = !viewSql
|
|
@@ -326,7 +329,7 @@ export default async function dataAPI({ pg = pgClients.client, params, table, id
|
|
|
326
329
|
.join(",")}`
|
|
327
330
|
: ""}
|
|
328
331
|
from (select * ${sql
|
|
329
|
-
?.filter((el) => el.inline)
|
|
332
|
+
?.filter((el) => el.inline && !(isExport && el.export === false))
|
|
330
333
|
.map((el) => `,(${el.sql})`)
|
|
331
334
|
.join("") || ""} from ${viewSql ? `(${viewSql})` : table1} t ${sqlTable} ) t
|
|
332
335
|
|
package/package.json
CHANGED