-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
207 lines (207 loc) · 12.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"name": "@pagopa/io-backend",
"version": "16.7.2",
"min_app_version": {
"ios": "2.3.0",
"android": "2.3.0"
},
"min_app_version_pagopa": {
"ios": "0.0.0",
"android": "0.0.0"
},
"description": "IO app and web backend",
"main": "index.js",
"engines": {
"node": "18.13.0"
},
"scripts": {
"watch": "tsc -w",
"prebuild": "yarn generate:proxy-models",
"build": "tsc",
"build-noemit": "tsc --noEmit",
"hot-reload": "nodemon --legacy-watch --watch ./dist/src --inspect=0.0.0.0:5859 --nolazy dist/src/server.js",
"lint": "eslint . -c .eslintrc.js --ext .ts,.tsx --cache",
"lint-autofix": "eslint . -c .eslintrc.js --ext .ts,.tsx --fix",
"prettify": "prettier --write \"./**/*.ts\"",
"test": "jest -i",
"test:coverage": "jest -i --coverage",
"start": "node dist/src/server.js",
"openapi:bundle": "./openapi/bundle.sh $npm_package_version",
"generate:dev-certs": "sh ./scripts/generate-test-certs.sh certs",
"generate:proxy-models": "npm-run-all generate:proxy:* generate:api:* generate:messages:* generate:lollipop-definitions generate:lollipop-first-sign",
"generate:proxy:api-models": "rimraf generated/backend && gen-api-models --api-spec api_backend.yaml --out-dir generated/backend",
"generate:proxy:api-parameters": "gen-api-models --api-spec api_parameters.yaml --out-dir generated/parameters",
"generate:proxy:auth-models": "rimraf generated/auth && gen-api-models --api-spec api_auth.yaml --out-dir generated/auth",
"generate:proxy:notification-models": "rimraf generated/notifications && gen-api-models --api-spec api_notifications.yaml --out-dir generated/notifications",
"generate:messages:notifications": "rimraf generated/messages && gen-api-models --api-spec notification_queue_messages.yaml --out-dir generated/messages",
"generate:proxy:myportal-models": "rimraf generated/myportal && gen-api-models --api-spec api_myportal.yaml --out-dir generated/myportal",
"generate:proxy:trial-system-models": "rimraf generated/trial-system && gen-api-models --api-spec api_trial_system.yaml --out-dir generated/trial-system",
"generate:api:trial-system": "rimraf generated/trial-system-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/trial-system/081d98c37a116c9d842f31c54a2fe641680c5424/infra/resources/modules/commons/api/ts_management/v1/_openapi.yaml --no-strict --out-dir generated/trial-system-api --request-types --response-decoders --client",
"generate:proxy:first-lc-models": "rimraf generated/first-lc-proxy-models && gen-api-models --api-spec api_lollipop_first_consumer.yaml --out-dir generated/first-lc-proxy-models",
"generate:proxy:public-models": "rimraf generated/public && gen-api-models --api-spec api_public.yaml --out-dir generated/public",
"generate:api:io-messages": "rimraf generated/io-messages-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-app-messages/v5.3.0/openapi/index.yaml --no-strict --out-dir generated/io-messages-api --request-types --response-decoders --client",
"generate:proxy:bonus-models": "rimraf generated/bonus && gen-api-models --api-spec api_bonus.yaml --out-dir generated/bonus",
"generate:proxy:cgn-models": "rimraf generated/cgn && gen-api-models --api-spec api_cgn.yaml --out-dir generated/cgn",
"generate:proxy:io-sign-models": "rimraf generated/io-sign && gen-api-models --api-spec api_io_sign.yaml --out-dir generated/io-sign",
"generate:proxy:io-fims-models": "rimraf generated/io-fims && gen-api-models --api-spec api_io_fims.yaml --out-dir generated/io-fims",
"generate:proxy:cgn-operator-search-models": "rimraf generated/cgn-operator-search && gen-api-models --api-spec api_cgn_operator_search.yaml --out-dir generated/cgn-operator-search",
"generate:api:io-bonus": "rimraf generated/io-bonus-api && gen-api-models --api-spec openapi/consumed/fn_bonus.yaml --no-strict --out-dir generated/io-bonus-api --request-types --response-decoders --client",
"generate:api:io-sign": "rimraf generated/io-sign-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-sign/0a9124b7c782b2569dd82c094496e50a17b418f4/apps/io-func-sign-user/openapi.yaml --no-strict --out-dir generated/io-sign-api --request-types --response-decoders --client",
"generate:api:io-fims": "rimraf generated/io-fims-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-fims/44c478f9b9ca024aa4db963873a85f8d9c37f5d3/apps/user-func/openapi.yaml --no-strict --out-dir generated/io-fims-api --request-types --response-decoders --client",
"generate:api:io-cgn-operator-search": "rimraf generated/io-cgn-operator-search-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-cgn/refs/tags/search-func@3.3.4/apps/search-func/openapi/index.yaml --no-strict --out-dir generated/io-cgn-operator-search-api --request-types --response-decoders --client",
"generate:api:pagopaproxy": "rimraf generated/pagopa-proxy && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-pagopa-proxy/v1.6.0/api-spec/api-for-io.yaml --no-strict --out-dir generated/pagopa-proxy --request-types --response-decoders --client",
"generate:api:lollipop": "rimraf generated/lollipop-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-functions-lollipop/724c3ba79d272d4e2555dbc2a8e1657bec9f84ce/openapi/internal.yaml --no-strict --out-dir generated/lollipop-api --request-types --response-decoders --client",
"generate:api:services-app-backend": "rimraf generated/services-app-backend && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-services-cms/d2afbdf73e5b4ffd24aa46b025729ff2a9ed3cce/apps/app-backend/api/internal.yaml --no-strict --out-dir generated/services-app-backend --request-types --response-decoders --client",
"generate:proxy:eucovidcert-models": "rimraf generated/eucovidcert && gen-api-models --api-spec api_eucovidcert.yaml --out-dir generated/eucovidcert",
"generate:proxy:third-party-service": "rimraf generated/third-party-service && gen-api-models --api-spec openapi/consumed/api-third-party.yaml --out-dir generated/third-party-service --request-types --response-decoders --client",
"generate:proxy:remote-content-service": "rimraf generated/remote-content-service && gen-api-models --api-spec openapi/consumed/api_remote_content.yaml --out-dir generated/remote-content-service --request-types --response-decoders --client",
"generate:proxy:piattaforma-notifiche": "rimraf generated/piattaforma-notifiche && gen-api-models --api-spec openapi/consumed/api-piattaforma-notifiche.yaml --out-dir generated/piattaforma-notifiche --request-types --response-decoders --client",
"generate:api:piattaforma-notifiche-courtesy": "rimraf generated/api_piattaforma-notifiche-courtesy && gen-api-models --api-spec api_pn.yaml --out-dir generated/api_piattaforma-notifiche-courtesy",
"generate:proxy:piattaforma-notifiche-courtesy": "rimraf generated/piattaforma-notifiche-courtesy && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/pn-user-attributes/13b91a353f6a219c60d5cdadc023cc18c4157554/docs/openapi/pn-address-book-b2b-external-io-v1.yaml --out-dir generated/piattaforma-notifiche-courtesy --request-types --response-decoders --client",
"generate:test-certs": "sh ./scripts/generate-test-certs.sh certs",
"generate:proxy:api-session": "rimraf generated/session && gen-api-models --api-spec api_session.yaml --out-dir generated/session",
"generate:lollipop-definitions": "rimraf generated/lollipop && gen-api-models --api-spec openapi/lollipop_definitions.yaml --out-dir generated/lollipop",
"generate:lollipop-first-sign": "rimraf generated/lollipop-first-consumer && gen-api-models --api-spec openapi/consumed/lollipop_first_consumer.yaml --out-dir generated/lollipop-first-consumer --request-types --response-decoders --client",
"generate:api:io-wallet": "rimraf generated/io-wallet-api && gen-api-models --api-spec https://raw.githubusercontent.com/pagopa/io-wallet/io-wallet-user-func@2.0.1/apps/io-wallet-user-func/openapi.yaml --no-strict --out-dir generated/io-wallet-api --request-types --response-decoders --client",
"generate:proxy:io-wallet-models": "rimraf generated/io-wallet && gen-api-models --api-spec api_io_wallet.yaml --out-dir generated/io-wallet",
"postversion": "git push && git push --tags",
"dist:modules": "modclean -r -n default:safe && yarn install --production",
"predeploy": "npm-run-all build dist:modules",
"preversion": "auto-changelog --config .auto-changelog.json --unreleased --commit-limit false --stdout --template preview.hbs",
"version": "npm-run-all bump:*",
"bump:openapi": "npm run openapi:bundle && git add openapi/generated/*",
"bump:changelog": "auto-changelog -p --config .auto-changelog.json --unreleased && git add CHANGELOG.md"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pagopa/io-backend.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/pagopa/io-backend/issues"
},
"homepage": "https://github.com/pagopa/io-backend#readme",
"dependencies": {
"@azure/data-tables": "^13.2.2",
"@azure/storage-queue": "^12.0.0",
"@pagopa/io-functions-app-sdk": "x",
"@pagopa/io-functions-cgn-sdk": "x",
"@pagopa/io-functions-commons": "^29.1.1",
"@pagopa/io-functions-eucovidcerts-sdk": "x",
"@pagopa/ts-commons": "^12.4.1",
"@pagopa/winston-ts": "^2.2.0",
"applicationinsights": "1.8.10",
"body-parser": "^1.19.2",
"bwip-js": "^2.0.6",
"date-fns": "^1.30.1",
"dotenv": "^6.0.0",
"express": "4.17.3",
"express-enforces-ssl": "1.1.0",
"fp-ts": "2.14.0",
"helmet": "3.23.3",
"http-graceful-shutdown": "^2.3.2",
"io-ts": "2.2.20",
"io-ts-types": "^0.5.16",
"monocle-ts": "^2.3.13",
"morgan": "^1.9.1",
"newtype-ts": "^0.3.5",
"node-fetch": "^2.6.1",
"passport": "^0.6.0",
"passport-auth-token": "^1.0.1",
"passport-http-bearer": "^1.0.1",
"passport-http-custom-bearer": "^1.0.15",
"passport-local": "^1.0.0",
"passport-strategy": "^1.0.0",
"qr-image": "^3.2.0",
"range_check": "^1.4.0",
"redis": "^4.5.1",
"ts-pattern": "^4.0.3",
"ulid": "^2.2.2",
"validator": "^10.8.0",
"winston": "^3.3.3"
},
"devDependencies": {
"@pagopa/eslint-config": "^3.0.0",
"@pagopa/openapi-codegen-ts": "^14.0.0",
"@types/dotenv": "^4.0.2",
"@types/express": "4.17.11",
"@types/express-enforces-ssl": "^1.1.1",
"@types/glob": "^5.0.35",
"@types/helmet": "^0.0.43",
"@types/jest": "^29.5.1",
"@types/jsonwebtoken": "7.2.7",
"@types/lolex": "2.1.3",
"@types/morgan": "^1.7.35",
"@types/node": "~18.13.0",
"@types/node-fetch": "^2.1.2",
"@types/passport": "^1.0.2",
"@types/passport-http-bearer": "^1.0.34",
"@types/passport-local": "^1.0.33",
"@types/passport-saml": "^1.1.1",
"@types/passport-strategy": "^0.2.35",
"@types/qr-image": "^3.2.2",
"@types/range_check": "^1.4.0",
"@types/request-ip": "^0.0.34",
"@types/superagent": "^3.8.4",
"@types/supertest": "^2.0.6",
"@types/swagger-parser": "^4.0.2",
"@types/validator": "^9.4.2",
"@types/xml2js": "^0.4.5",
"auto-changelog": "^2.2.1",
"dotenv-cli": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"lolex": "4.2.0",
"modclean": "^3.0.0-beta.1",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.3",
"prettier": "^2.8.8",
"shx": "^0.3.2",
"superagent": "^3.8.3",
"supertest": "^3.3.0",
"swagger-cli": "^2.3.1",
"swagger-parser": "^5.0.5",
"ts-jest": "^29.1.0",
"ts-node": "^7.0.1",
"typescript": "4.9.5"
},
"jest": {
"setupFiles": [
"<rootDir>/src/__mocks__/setupEnvVars.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/src/__mocks__/setup.ts"
],
"testEnvironment": "node",
"moduleFileExtensions": [
"ts",
"js",
"node"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/__tests__/*.ts"
],
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts",
"!src/clients/api/*.ts",
"!src/clients/api/models/*.ts",
"!src/clients/pagopa/*.ts",
"!src/clients/pagopa/models/*.ts",
"!src/types/api/*.ts",
"!src/**/*.d.ts"
]
},
"resolutions": {
"handlebars": "~4.5.3",
"applicationinsights": "1.8.10",
"@types/serve-static": "1.13.10",
"@types/express-serve-static-core": "4.17.34"
}
}