@noeva/etl-core 1.0.0-next.3 → 1.0.0-next.4

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 (80) hide show
  1. package/README.md +5 -10
  2. package/deploy/deploy-ecr.sh +4 -7
  3. package/dist/cli.js +1 -1
  4. package/dist/connectors/mail.js +1 -1
  5. package/dist/connectors/process.js +1 -1
  6. package/dist/connectors/sendgrid.d.ts +1 -1
  7. package/dist/etl.config.js +7 -15
  8. package/dist/guida/404.html +2 -2
  9. package/dist/guida/GUIDA_SVILUPPO.html +3 -3
  10. package/dist/guida/TECHNICAL_OVERVIEW.html +3 -3
  11. package/dist/guida/assets/{app.lWZ5GK2m.js → app.CzIZwOrR.js} +1 -1
  12. package/dist/guida/assets/chunks/@localSearchIndexroot.08YFQ5n8.js +1 -0
  13. package/dist/guida/assets/chunks/{VPLocalSearchBox.C0h2R-Ih.js → VPLocalSearchBox.Cv9o56BQ.js} +1 -1
  14. package/dist/guida/assets/chunks/{theme.BYWumH0G.js → theme.CsUxYN72.js} +2 -2
  15. package/dist/guida/assets/{runbooks_deploy-ecr.md.6M67F85S.js → runbooks_deploy-ecr.md.4jQypInn.js} +2 -2
  16. package/dist/guida/assets/{runbooks_deploy-ecr.md.6M67F85S.lean.js → runbooks_deploy-ecr.md.4jQypInn.lean.js} +1 -1
  17. package/dist/guida/connectors/README.html +3 -3
  18. package/dist/guida/connectors/file.html +3 -3
  19. package/dist/guida/connectors/http.html +3 -3
  20. package/dist/guida/connectors/imap.html +3 -3
  21. package/dist/guida/connectors/jira.html +3 -3
  22. package/dist/guida/connectors/noeva.html +3 -3
  23. package/dist/guida/connectors/oauth.html +3 -3
  24. package/dist/guida/connectors/postgres.html +3 -3
  25. package/dist/guida/connectors/process.html +3 -3
  26. package/dist/guida/connectors/sendgrid.html +3 -3
  27. package/dist/guida/connectors/smtp.html +3 -3
  28. package/dist/guida/connectors/sqlserver.html +3 -3
  29. package/dist/guida/conventions/node-columns.html +3 -3
  30. package/dist/guida/conventions/node-descriptor.html +3 -3
  31. package/dist/guida/conventions/run-report.html +3 -3
  32. package/dist/guida/conventions/run-trace.html +3 -3
  33. package/dist/guida/conventions/variabili-del-core.html +3 -3
  34. package/dist/guida/conventions/versioni-di-pipeline.html +3 -3
  35. package/dist/guida/guide/claude-code/index.html +3 -3
  36. package/dist/guida/guide/claude-code/prompt.html +3 -3
  37. package/dist/guida/guide/claude-code/strumenti.html +3 -3
  38. package/dist/guida/guide/grafo.html +3 -3
  39. package/dist/guida/guide/usare/app-desktop.html +3 -3
  40. package/dist/guida/guide/usare/esito-di-una-run.html +3 -3
  41. package/dist/guida/guide/usare/index.html +3 -3
  42. package/dist/guida/hashmap.json +1 -1
  43. package/dist/guida/index.html +3 -3
  44. package/dist/guida/nodes/README.html +3 -3
  45. package/dist/guida/nodes/action.html +3 -3
  46. package/dist/guida/nodes/ai.html +3 -3
  47. package/dist/guida/nodes/join.html +3 -3
  48. package/dist/guida/nodes/lookup.html +3 -3
  49. package/dist/guida/nodes/pipeline.html +3 -3
  50. package/dist/guida/nodes/route.html +3 -3
  51. package/dist/guida/nodes/sink.html +3 -3
  52. package/dist/guida/nodes/source.html +3 -3
  53. package/dist/guida/nodes/task.html +3 -3
  54. package/dist/guida/nodes/transform.html +3 -3
  55. package/dist/guida/nodes/try-catch.html +3 -3
  56. package/dist/guida/nodes/union.html +3 -3
  57. package/dist/guida/pipelines/README.html +3 -3
  58. package/dist/guida/pipelines/crm-leads-sync.html +3 -3
  59. package/dist/guida/pipelines/cross-workspace-csv-merge.html +3 -3
  60. package/dist/guida/pipelines/movimenti-per-conto.html +3 -3
  61. package/dist/guida/pipelines/orders-enriched-daily.html +3 -3
  62. package/dist/guida/pipelines/test-posta.html +3 -3
  63. package/dist/guida/runbooks/aggiornamento-pm2.html +3 -3
  64. package/dist/guida/runbooks/deploy-ecr.html +5 -5
  65. package/dist/guida/runbooks/deployment.html +3 -3
  66. package/dist/guida/runbooks/etl-worker.html +3 -3
  67. package/dist/guida/runbooks/graph-server.html +3 -3
  68. package/dist/guida/runbooks/mask-key.html +3 -3
  69. package/dist/guida/runbooks/oauth-google-posta.html +3 -3
  70. package/dist/guida/runbooks/rollback-di-pipeline.html +3 -3
  71. package/dist/guida/runbooks/scd2-rehash.html +3 -3
  72. package/dist/guida/runbooks/sql-task-truncate-swap.html +3 -3
  73. package/dist/guida/runbooks/stato-incrementale.html +3 -3
  74. package/dist/guida/sub-pipelines/README.html +3 -3
  75. package/dist/guida/sub-pipelines/riepilogo-ordini.html +3 -3
  76. package/docs/.vitepress/lib/published-docs.ts +1 -7
  77. package/package.json +1 -1
  78. package/dist/chunk-5B2425TT.js +0 -1
  79. package/dist/chunk-ZCYSL5A6.js +0 -1
  80. package/dist/guida/assets/chunks/@localSearchIndexroot.B5zFGbAC.js +0 -1
@@ -54,13 +54,7 @@ export interface PendingDoc {
54
54
  * pipeline. Restano nel repository e fuori dalla guida. Ogni voce sparisce con
55
55
  * la sua pagina: il test fallisce se il percorso non esiste più.
56
56
  */
57
- export const PENDING_CLIENT_DOCS: readonly PendingDoc[] = [
58
- {
59
- path: "pipelines/canossa/",
60
- reason:
61
- "canossa-bilanci migra in noeva-etl-canossa-events (ETL-276, ADR-0097)",
62
- },
63
- ];
57
+ export const PENDING_CLIENT_DOCS: readonly PendingDoc[] = [];
64
58
 
65
59
  const matches = (path: string, prefixes: readonly string[]): boolean =>
66
60
  prefixes.some((prefix) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noeva/etl-core",
3
- "version": "1.0.0-next.3",
3
+ "version": "1.0.0-next.4",
4
4
  "description": "Code-first BI/ETL platform — Talend-style data integration in TypeScript",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import {k,l as l$1}from'./chunk-BPRH262Y.js';import {i,j}from'./chunk-H75NY6Z4.js';import {a}from'./chunk-PE2QKU34.js';function p(n){return {...n.name!==void 0?{name:n.name}:{},...n.instanceId!==void 0?{instanceId:n.instanceId}:{}}}a(p,"comuni");function l(n,i$1){let e={...p(i$1),mail:i$1.mail,merge:i$1.merge};return n.tipo==="smtp"?i(n.config,{...e,...n.opzioni!==void 0?{trasporto:n.opzioni}:{}}):k(n.config,{...e,...n.opzioni!==void 0?{trasporto:n.opzioni}:{}})}a(l,"mailAction");function s(n,i){let e={...p(i),mail:i.mail};return n.tipo==="smtp"?j(n.config,{...e,...n.opzioni!==void 0?{trasporto:n.opzioni}:{}}):l$1(n.config,{...e,...n.opzioni!==void 0?{trasporto:n.opzioni}:{}})}a(s,"mailSink");export{l as a,s as b};
@@ -1 +0,0 @@
1
- import {a,k,g as g$1}from'./chunk-PE2QKU34.js';import {mkdtemp,mkdir,writeFile,readdir,readFile,rm}from'fs/promises';import {tmpdir}from'os';import {join,dirname}from'path';import {spawn}from'child_process';var g="uscita";async function E(e){return mkdtemp(join(e,"noeva-processo-"))}a(E,"creaCartellaRecord");async function R(e,r,t){await mkdir(join(e,g));for(let o of r){let i=join(e,...$(o.nome,t));await mkdir(dirname(i),{recursive:true}),await writeFile(i,o.bytes);}}a(R,"preparaCartella");async function v(e){return w(join(e,g),[])}a(v,"raccogliUscita");async function w(e,r){let o=[...await readdir(e,{withFileTypes:true})].sort((s,a)=>s.name.localeCompare(a.name)),i=[];for(let s of o){let a=join(e,s.name),c=[...r,s.name];s.isDirectory()?i.push(...await w(a,c)):s.isFile()&&i.push({nome:c.join("/"),bytes:new Uint8Array(await readFile(a))});}return i}a(w,"leggiAlbero");function $(e,r){let t=e.split("/");if(!(!e.includes("\0")&&!e.includes("\\")&&t.every(i=>i!==""&&i!=="."&&i!=="..")))throw new k(`nome di file d'ingresso non ammesso: ${JSON.stringify(e)}`,{stage:r});return t}a($,"segmenti");function P(e){let r=e.ambiente??[];return {kind:"processo-esterno",details:[{label:"eseguibile",value:e.eseguibile},{label:"argomenti",value:JSON.stringify(e.argomenti??[])},...e.versione!==void 0?[{label:"versione",value:e.versione}]:[],{label:"timeout",value:`${e.timeoutMs} ms`},{label:"ambiente",value:r.length>0?r.join(", "):"nessuna variabile"}]}}a(P,"descrittoreProcesso");var I=2e3,f=1e6,A=process.platform!=="win32";function O(e){return new Promise((r,t)=>{let o=spawn(e.eseguibile,[...e.argomenti],{cwd:e.cwd,env:{...e.env},shell:false,stdio:["ignore","pipe","pipe"],detached:A,windowsHide:true}),i=N(o),s=F(o,e),a$1=false,c=a(()=>a$1?false:(a$1=true,s.annulla(),true),"chiudi");o.once("error",l=>{c()&&t(l);}),o.once("close",(l,h)=>{if(!c())return;let p=s.interruzione();r({exitCode:l,segnale:h,...i.lette(),...p!==void 0?{interruzione:p}:{}});});})}a(O,"esegui");function N(e){let r="",t=false,o="";return e.stdout?.setEncoding("utf8"),e.stdout?.on("data",i=>{t||(r+=i,r.length>f&&(r="",t=true));}),e.stderr?.setEncoding("utf8"),e.stderr?.on("data",i=>{o=(o+i).slice(-I);}),{lette:a(()=>({stdout:r,stdoutTroncato:t,stderr:o}),"lette")}}a(N,"raccogliUscite");function F(e,r){let t,o,i=a(c=>{t===void 0&&(t=c,b(e,"SIGTERM"),o=setTimeout(()=>b(e,"SIGKILL"),r.terminazioneMs));},"termina"),s=setTimeout(()=>i("timeout"),r.timeoutMs),a$1=a(()=>i("annullata"),"suAnnullamento");return r.signal.addEventListener("abort",a$1,{once:true}),r.signal.aborted&&i("annullata"),{interruzione:a(()=>t,"interruzione"),annulla:a(()=>{clearTimeout(s),clearTimeout(o),r.signal.removeEventListener("abort",a$1);},"annulla")}}a(F,"arrestoProgrammato");function b(e,r){if(!A||e.pid===void 0){e.kill(r);return}try{process.kill(-e.pid,r);}catch(t){t.code!=="ESRCH"&&e.kill(r);}}a(b,"segnala");var T=5e3,L=/^[A-Za-z_][A-Za-z0-9_]*$/;function j(e){let r=e.name??"processo-esterno";return Z(e,r),{name:r,descriptor:P(e),run:a((t,o)=>J(e,r,t,o),"run")}}a(j,"processoEsternoAction");async function J(e,r,t,o){if(o.signal.aborted)throw new k(`Run annullata: il processo "${r}" non \xE8 partito`,{stage:r});let i=e.ingresso(t),s=await E(e.cartellaBase??tmpdir());try{await R(s,i.file,r);let a=await B(r,G(e,i,s,o.signal)),c=K(r,a,e),l=await v(s);return e.merge(t,{riepilogo:c,file:l})}finally{await rm(s,{recursive:true,force:true}).catch(a=>{o.logger.warn("processo-esterno.cartella-non-cancellata",{processo:r,cartella:s,errore:C(a)});});}}a(J,"lancia");function Z(e,r){let t=a(i=>Number.isSafeInteger(i)&&i>0,"intero");if(e.eseguibile.trim()==="")throw new g$1(`processo "${r}": eseguibile vuoto`);if(!t(e.timeoutMs))throw new g$1(`processo "${r}": timeoutMs dev'essere un intero positivo, non ${e.timeoutMs}`);if(e.terminazioneMs!==void 0&&!t(e.terminazioneMs))throw new g$1(`processo "${r}": terminazioneMs dev'essere un intero positivo, non ${e.terminazioneMs}`);let o=(e.ambiente??[]).filter(i=>!L.test(i));if(o.length>0)throw new g$1(`processo "${r}": nomi di variabile non validi: ${o.join(", ")}`)}a(Z,"verificaConfigurazione");function G(e,r,t,o){return {eseguibile:e.eseguibile,argomenti:[...e.argomenti??[],...r.argomenti??[]],cwd:t,env:X(e.ambiente??[]),timeoutMs:e.timeoutMs,terminazioneMs:e.terminazioneMs??T,signal:o}}a(G,"parametri");function X(e){return Object.fromEntries(e.flatMap(r=>{let t=process.env[r];return t===void 0?[]:[[r,t]]}))}a(X,"ambienteDa");async function B(e,r){try{return await O(r)}catch(t){throw new k(`Impossibile avviare il processo "${e}": ${C(t)}`,{stage:e,details:{eseguibile:r.eseguibile}},{cause:t})}}a(B,"avvia");function H(e,r){if(e.interruzione==="timeout")return `ha superato il timeout di ${r} ms ed \xE8 stato terminato`;if(e.interruzione==="annullata")return "\xE8 stato terminato: run annullata";if(e.exitCode===null)return `\xE8 stato terminato dal segnale ${e.segnale??"?"}`;if(e.exitCode!==0)return `\xE8 terminato con exit code ${e.exitCode}`;if(e.stdoutTroncato)return `ha scritto su stdout pi\xF9 di ${f} caratteri`}a(H,"motivoDelFallimento");function K(e,r,t){let o=a((c,l={})=>new k(`Il processo "${e}" ${c}`,{stage:e,details:{exitCode:r.exitCode,segnale:r.segnale,stderr:r.stderr,...l}}),"fallisci"),i=H(r,t.timeoutMs);if(i!==void 0)throw o(i);let s;try{s=JSON.parse(r.stdout);}catch{throw o("non ha scritto su stdout un documento JSON")}let a$1=t.riepilogo.safeParse(s);if(!a$1.success)throw o("ha scritto un riepilogo non conforme allo schema",{campi:a$1.error.issues.map(c=>c.path.join(".")||"(radice)")});return a$1.data}a(K,"leggiRiepilogo");function C(e){return e instanceof Error?e.message:String(e)}a(C,"messaggio");export{g as a,I as b,f as c,T as d,j as e};