-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
68 lines (68 loc) · 2.59 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
{
"name": "@sophos-factory/api-client",
"version": "3.3.0",
"description": "Official Sophos Factory API client library for JavaScript.",
"keywords": [
"Sophos",
"refactr",
"Sophos Factory",
"library",
"JavaScript",
"rest-api",
"rest-client",
"sdk",
"API",
"api-client",
"openapi"
],
"homepage": "https://github.com/sophos/factory-api-client/",
"license": "MIT",
"main": "dist/index.node.js",
"module": "dist/index.mjs",
"types": "./types",
"files": [
"examples/",
"package.json",
"dist",
"types",
"LICENSE",
"README.md"
],
"engines": {
"node": ">=18"
},
"dependencies": {
"axios": "^1.6.2"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.6",
"@openapitools/openapi-generator-cli": "^2.7.0",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-terser": "^0.4.4",
"rollup": "^2.79.1",
"typescript": "^4.9.5"
},
"scripts": {
"build": "rollup -c && tsc",
"fetch": "npm run fetch:api && npm run fetch:authApi",
"fetch:api": "mkdir -p spec && curl -s https://api.us-west-2.factory.sophos.com/v1/spec | jq '.' > ./spec/api.json",
"fetch:authApi": "mkdir -p spec && curl -s https://auth.us-west-2.factory.sophos.com/v1/spec | jq '.' > ./spec/authApi.json",
"fetch:dev": "npm run fetch:dev:api && npm run fetch:dev:authApi",
"fetch:dev:api": "mkdir -p spec && curl -s https://api.dev.factory.sophos.com/v1/spec | jq '.' > ./spec/api.json",
"fetch:dev:authApi": "mkdir -p spec && curl -s https://auth.dev.factory.sophos.com/v1/spec | jq '.' > ./spec/authApi.json",
"fetch:staging": "npm run fetch:staging:api && npm run fetch:staging:authApi",
"fetch:staging:api": "mkdir -p spec && curl -s https://api.staging.factory.sophos.com/v1/spec | jq '.' > ./spec/api.json",
"fetch:staging:authApi": "mkdir -p spec && curl -s https://auth.staging.factory.sophos.com/v1/spec | jq '.' > ./spec/authApi.json",
"generate": "npm run generate:api && npm run generate:authApi",
"generate:api": "openapi-generator-cli generate -i ./spec/api.json -g typescript-axios -o ./src/generated/api",
"generate:authApi": "openapi-generator-cli generate -i ./spec/authApi.json -g typescript-axios -o ./src/generated/authApi"
}
}