Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SELC-5808][SELC-5809] feat: Added scripts for validation and import of PSP #1

Merged
merged 49 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
90a17ce
added node and dependencies
GabrieleMaiocchiFilippo Oct 22, 2024
d4fa351
added cli-progress and his types
GabrieleMaiocchiFilippo Oct 22, 2024
e3a532f
Added gitignore
giampieroferrara Oct 23, 2024
3362203
Added test contracts.csv
giampieroferrara Oct 24, 2024
43c9e7f
added some logic and a first script to log a mocked contract.csv file
GabrieleMaiocchiFilippo Oct 24, 2024
18b632c
added psp mapper and updated "import" script with the usage of the ne…
GabrieleMaiocchiFilippo Oct 24, 2024
4996d6d
Added validation into scripts
giampieroferrara Oct 29, 2024
7c20a2c
Added objects-to-csv
giampieroferrara Oct 29, 2024
10a11ea
Added ContractOutput
giampieroferrara Oct 29, 2024
52325f3
Fixed package-lock
giampieroferrara Oct 29, 2024
908b439
Added validation
giampieroferrara Oct 29, 2024
d9efa85
Added csvFileWriter
giampieroferrara Oct 29, 2024
8da7c22
added env varibles and started implementation of import psp api call.…
GabrieleMaiocchiFilippo Oct 29, 2024
e603350
Deleted folder from git
giampieroferrara Oct 29, 2024
c434755
Fixed name of project
giampieroferrara Oct 29, 2024
537004b
Fixed gitignore
giampieroferrara Oct 29, 2024
12e9e89
Added contractOutputMapper
giampieroferrara Oct 29, 2024
733fe3c
Added const for verify infocamere
giampieroferrara Oct 29, 2024
9a4eccb
Added api call to service
giampieroferrara Oct 29, 2024
2c204a9
Renamed function and fix foreach
giampieroferrara Oct 30, 2024
b9be2f9
Fixed verifyStatus
giampieroferrara Oct 30, 2024
11d8b09
Fixed verifyStatus
giampieroferrara Oct 30, 2024
fd9c5e7
Fixed validation
giampieroferrara Oct 30, 2024
921195b
Fixed values into ContractOutput
giampieroferrara Oct 30, 2024
c7c5faf
Fixed obj ContractOutput
giampieroferrara Oct 30, 2024
381041a
Added country into ContractOutput
giampieroferrara Oct 30, 2024
f46c787
Fixed parser for csv
giampieroferrara Oct 31, 2024
3653535
Fixed log into validation
giampieroferrara Oct 31, 2024
e82304a
Fixed exist of folder
giampieroferrara Oct 31, 2024
876597b
updated import script
GabrieleMaiocchiFilippo Oct 31, 2024
57703b7
Merge branch 'feature/integration-api' into dev
giampieroferrara Oct 31, 2024
c39364c
Merge remote-tracking branch 'origin/feature/integration-api' into Im…
GabrieleMaiocchiFilippo Oct 31, 2024
3591109
updated import of file
GabrieleMaiocchiFilippo Oct 31, 2024
6bd081f
updated genericFetch and removed cli-progress
GabrieleMaiocchiFilippo Oct 31, 2024
6b9eb36
Fixed validation
giampieroferrara Nov 4, 2024
1ffedee
Fixed msg and referente_fattura_email
giampieroferrara Nov 4, 2024
7e9d687
Refactored validation
giampieroferrara Nov 4, 2024
9c3e7a3
Fixed generichFetch
giampieroferrara Nov 4, 2024
2c52739
Added progress-cli
giampieroferrara Nov 4, 2024
a73a542
updated import with a control on api invocation
GabrieleMaiocchiFilippo Nov 4, 2024
d00ce30
Merge branch 'Import-script' of https://github.com/pagopa/selfcare-cl…
GabrieleMaiocchiFilippo Nov 4, 2024
ceedf40
Merge branch 'Import-script' into dev
giampieroferrara Nov 4, 2024
9eee8bd
Merge branch 'dev' into feature/integration-api
giampieroferrara Nov 4, 2024
72128a8
Merge branch 'feature/integration-api' into dev
giampieroferrara Nov 4, 2024
2454956
Fixed exclusion
giampieroferrara Nov 4, 2024
4bf398b
Merge branch 'bug-fix/exclusion-env' into dev
giampieroferrara Nov 4, 2024
fd00a51
Merge branch 'main' into dev
giampieroferrara Nov 5, 2024
2fdd8e4
Added env for auth token
giampieroferrara Nov 5, 2024
61709b1
Merge branch 'feature/token' into dev
giampieroferrara Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENV=LOCAL_DEV
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,48 @@

# macOS
.DS_Store

# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output
coverage.*

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
node_modules
node_modules/

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

typings/
lib/*.js
test/*.js
*.map

*.env
.env.*
25 changes: 25 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Command } from "commander";
import { Import } from "./src/scripts/import.js";
import { Validation } from "./src/scripts/validation.js";

const program = new Command();

program
.command("import")
.description("import psp")
.action(() => Import());

program
.command("validation")
.description("validation psp")
.action(() => Validation());

program
.command("validate-import")
.description("validation e poi import psp")
.action(() => {
Validation();
Import();
});

program.parse(process.argv);
Loading