-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
135 lines (135 loc) · 10.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
{
"name": "@mojaloop/api-snippets",
"version": "17.7.3",
"description": "Mojaloop API specification reusable snippets",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"audit:fix": "npm audit fix",
"audit:check": "npx audit-ci --config ./audit-ci.jsonc",
"build": "npm run build:openapi; npm run build:dto; npm run build:schemas; tsc -p ./tsconfig.build.json",
"build:dto": "npm run build:dto:v1.0; npm run build:dto:v1.1; npm run build:dto:v2.0; npm run build:dto:v2.0_ISO20022; npm run build:dto:thirdparty; npm run build:dto:sdk-scheme-adapter:v2.0.0; npm run build:dto:sdk-scheme-adapter:v2.1.0;",
"build:schemas": "npm run build:schemas:fspiop:v2.0; npm run build:schemas:fspiop:v2.0_ISO20022; npm run build:schemas:sdk-scheme-adapter:v2.0.0; npm run build:schemas:sdk-scheme-adapter:v2.1.0;",
"build:schemas:fspiop:v2.0": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/fspiop-rest-v2.0-openapi3-snippets.yaml src/fspiop/v2_0",
"build:schemas:fspiop:v2.0_ISO20022": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml src/fspiop/v2_0_ISO20022",
"build:schemas:sdk-scheme-adapter:v2.0.0": "npm run build:schemas:sdk-scheme-adapter:backend:v2.0.0; npm run build:schemas:sdk-scheme-adapter:outbound:v2.0.0;",
"build:schemas:sdk-scheme-adapter:v2.1.0": "npm run build:schemas:sdk-scheme-adapter:backend:v2.1.0; npm run build:schemas:sdk-scheme-adapter:outbound:v2.1.0;",
"build:dto:v1.0": "openapi-typescript docs/fspiop-rest-v1.0-openapi3-snippets.yaml --output src/fspiop/v1_0/openapi.ts",
"build:dto:v1.1": "openapi-typescript docs/fspiop-rest-v1.1-openapi3-snippets.yaml --output src/fspiop/v1_1/openapi.ts",
"build:dto:v2.0": "openapi-typescript docs/fspiop-rest-v2.0-openapi3-snippets.yaml --output src/fspiop/v2_0/openapi.ts",
"build:dto:v2.0_ISO20022": "openapi-typescript docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml --output src/fspiop/v2_0_ISO20022/openapi.ts",
"build:dto:thirdparty": "openapi-typescript docs/thirdparty-openapi3-snippets.yaml --output src/thirdparty/openapi.ts",
"build:dto:sdk-scheme-adapter:v2.0.0": "npm run build:dto:sdk-scheme-adapter:backend:v2.0.0; npm run build:dto:sdk-scheme-adapter:outbound:v2.0.0;",
"build:dto:sdk-scheme-adapter:v2.1.0": "npm run build:dto:sdk-scheme-adapter:backend:v2.1.0; npm run build:dto:sdk-scheme-adapter:outbound:v2.1.0;",
"build:dto:sdk-scheme-adapter:backend:v2.0.0": "openapi-typescript docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml --output src/sdk-scheme-adapter/v2_0_0/backend/openapi.ts",
"build:dto:sdk-scheme-adapter:outbound:v2.0.0": "openapi-typescript docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml --output src/sdk-scheme-adapter/v2_0_0/outbound/openapi.ts",
"build:dto:sdk-scheme-adapter:backend:v2.1.0": "openapi-typescript docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml --output src/sdk-scheme-adapter/v2_1_0/backend/openapi.ts",
"build:dto:sdk-scheme-adapter:outbound:v2.1.0": "openapi-typescript docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml --output src/sdk-scheme-adapter/v2_1_0/outbound/openapi.ts",
"build:openapi": "npm run build:v1.0; npm run build:v1.1; npm run build:refactor:fspiop:v1.1; npm run build:v2.0; npm run build:refactor:fspiop:v2.0; npm run build:v2.0_ISO20022; npm run build:refactor:fspiop:v2.0_ISO20022; npm run build:thirdparty; npm run build:sdk-scheme-adapter:v2.0.0; npm run build:sdk-scheme-adapter:v2.1.0;",
"build:v1.0": "openapi bundle --output docs/fspiop-rest-v1.0-openapi3-snippets.yaml --ext yaml fspiop/v1_0/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v1.0-openapi3-snippets.yaml",
"build:v1.1": "openapi bundle --output docs/fspiop-rest-v1.1-openapi3-snippets.yaml --ext yaml fspiop/v1_1/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v1.1-openapi3-snippets.yaml",
"build:v2.0": "openapi bundle --output docs/fspiop-rest-v2.0-openapi3-snippets.yaml --ext yaml fspiop/v2_0/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v2.0-openapi3-snippets.yaml",
"build:v2.0_ISO20022": "openapi bundle --output docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml --ext yaml fspiop/v2_0_ISO20022/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml",
"build:thirdparty": "openapi bundle --output docs/thirdparty-openapi3-snippets.yaml --ext yaml thirdparty/v1_0/openapi3/openapi.yaml && swagger-cli validate docs/thirdparty-openapi3-snippets.yaml",
"build:thirdparty-dfsp": "swagger-cli bundle -o ./thirdparty/v1_0/openapi3/thirdparty-dfsp-api.yaml -t yaml ./thirdparty/v1_0/openapi3/thirdparty-dfsp-api.template.yaml",
"build:thirdparty-pisp": "swagger-cli bundle -o ./thirdparty/v1_0/openapi3/thirdparty-pisp-api.yaml -t yaml ./thirdparty/v1_0/openapi3/thirdparty-pisp-api.template.yaml",
"build:sdk-scheme-adapter:v2.0.0": "npm run build:sdk-scheme-adapter:backend:v2.0.0; npm run build:sdk-scheme-adapter:outbound:v2.0.0;",
"build:sdk-scheme-adapter:v2.1.0": "npm run build:sdk-scheme-adapter:backend:v2.1.0; npm run build:sdk-scheme-adapter:outbound:v2.1.0;",
"build:sdk-scheme-adapter:backend:v2.0.0": "openapi bundle --output docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml --ext yaml sdk-scheme-adapter/v2_0_0/backend/openapi.yaml && swagger-cli validate docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml",
"build:sdk-scheme-adapter:outbound:v2.0.0": "openapi bundle --output docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml --ext yaml sdk-scheme-adapter/v2_0_0/outbound/openapi.yaml && swagger-cli validate docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml",
"build:sdk-scheme-adapter:backend:v2.1.0": "openapi bundle --output docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml --ext yaml sdk-scheme-adapter/v2_1_0/backend/openapi.yaml && swagger-cli validate docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml",
"build:sdk-scheme-adapter:outbound:v2.1.0": "openapi bundle --output docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml --ext yaml sdk-scheme-adapter/v2_1_0/outbound/openapi.yaml && swagger-cli validate docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml",
"build:schemas:sdk-scheme-adapter:backend:v2.0.0": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml src/sdk-scheme-adapter/v2_0_0/backend",
"build:schemas:sdk-scheme-adapter:outbound:v2.0.0": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml src/sdk-scheme-adapter/v2_0_0/outbound",
"build:schemas:sdk-scheme-adapter:backend:v2.1.0": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml src/sdk-scheme-adapter/v2_1_0/backend",
"build:schemas:sdk-scheme-adapter:outbound:v2.1.0": "npx ts-node --transpile-only src/scripts/json-schema-generator.ts docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml src/sdk-scheme-adapter/v2_1_0/outbound",
"build:refactor:fspiop:v1.1": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v1.1-openapi3-snippets.yaml docs/fspiop-rest-v1.1-openapi3-snippets.yaml",
"build:refactor:fspiop:v2.0": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v2.0-openapi3-snippets.yaml docs/fspiop-rest-v2.0-openapi3-snippets.yaml",
"build:refactor:fspiop:v2.0_ISO20022": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml",
"lint": "eslint --ext ts --ext js test src",
"lint:fix": "eslint --fix --ext ts --ext js test src",
"prepare": "husky install && npm run build",
"dep:check": "ncu -e 2",
"dep:update": "ncu -u",
"release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
"test": "npm run test:unit",
"test:unit": "jest --testMatch '**/test/dto/*.(test|spec).ts'",
"dev:watch": "browser-sync start --server 'docs' --cwd 'docs' --files '*.yaml'"
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mojaloop/api-snippets.git"
},
"bugs": {
"url": "https://github.com/mojaloop/api-snippets/issues"
},
"homepage": "https://github.com/mojaloop/api-snippets#readme",
"keywords": [
"api",
"snippets"
],
"author": "ModusBox",
"contributors": [
"ModusBox",
"Paweł Marzec <[email protected]>"
],
"license": "Apache-2.0",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^9.1.2",
"@redocly/openapi-core": "^1.5.0",
"commander": "^12.1.0",
"jest-ts-auto-mock": "^2.1.0",
"js-yaml": "^4.1.0",
"json-refs": "^3.0.15",
"openapi-types": "^12.1.3",
"openapi-typescript": "^7.4.2",
"ts-auto-mock": "^3.7.4"
},
"overrides": {
"@types/cacheable-request": "^6.0.2",
"@types/responselike": "^1.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@redocly/openapi-cli": "^1.0.0-beta.95",
"@redocly/cli": "^1.5.0",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^4.0.9",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"audit-ci": "^7.1.0",
"browser-sync": "^3.0.3",
"diff": "^7.0.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-cucumber": "^2.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-standard": "^5.0.0",
"husky": "9.1.6",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.10",
"npm-check-updates": "^17.1.9",
"prettier": "^3.3.3",
"standard-version": "^9.5.0",
"swagger-cli": "^4.0.4",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"ts-patch": "^3.2.1",
"tslib": "^2.8.0",
"typescript": "^5.6.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}